<!--pages/login/login.wxml-->
<view class="login_box">
    <image class="logo_img" src="../../assets/img/logo.png"></image>
    <view class="login_main">
        <text class="location_label">您的位置：</text>
        <view class="select_container">
            <select data="{{provinceOptions}}" data-type="province" rangeKey="name" current="{{provinceCurrent}}" bind:updateChange="updateAreaChange"></select>
            <select disabled="{{!params.provinceCode}}" data="{{cityOptions}}" data-type="city" rangeKey="name" current="{{cityCurrent}}" bind:updateChange="updateAreaChange"></select>
            <select disabled="{{!params.cityCode}}" data="{{districtOptions}}" data-type="district" rangeKey="name" current="{{districtCurrent}}" bind:updateChange="updateAreaChange"></select>
        </view>
        <text class="location_label">您的关注部门：</text>
        <view class="form_item {{formRules.tenantId.warning ? 'warning' : ''}}">
            <view class="value_box">
                <picker class="picker_box" bindchange="selectTenant" value="{{tenantCurrent}}" data-current="{{tenantCurrent}}" range="{{tenantOptions}}" range-key="name">
                    <view class="picker" wx:if="{{tenantId}}">
                        {{tenantOptions[tenantCurrent].name}}
                    </view>
                    <view wx:else class="picker" style="color: #A6A6A6; font-size: 26rpx;">请选择部门</view>
                    <image class="select_img" src="../../assets/first/select.png"></image>
                </picker>
            </view>
            <text class="tips">请选择部门</text>
        </view>
    </view>
    <view class="footer">
        <view class="enter_btn" bindtap="goHome">进入小程序</view>
    </view>
</view>