<!--pages/login/login.wxml-->
<view class="content">
  <view class="logoimg">
    <image src="../../static/images/logo.jpg" mode="widthFix"></image>
  </view>
  <view class="forminput">
    <van-tabs type="card" color="#02BFFF"  active="{{ active }}" bind:change="onChangeActive">
      <van-tab title="管理端">
      <view class="mt-2">
        <van-cell-group>
          <van-field value="{{ username }}" left-icon="friends" placeholder="请输入用户名" border="{{ true }}"
            bind:change="onChange" />
          <van-field value="{{ password }}" left-icon="eye" placeholder="请输入密码" border="{{ true }}" type="password"
            bind:change="onChange1" />
        </van-cell-group>   
      </view>     
      </van-tab>
      <van-tab title="租客端">
      <view class="mt-2">
        <van-cell-group>
          <van-field value="{{ usernameOne }}" left-icon="friends" placeholder="请输入学号" border="{{ true }}"
            bind:change="onChange" />
          <van-field value="{{ passwordOne }}" left-icon="eye" placeholder="请输入密码" border="{{ true }}" type="password"
            bind:change="onChange1" />
        </van-cell-group>   
        </view>   
      </van-tab>
    </van-tabs>
    <checkbox-group bindchange="checkboxChange" class="mt-2 ml-2">
        <checkbox class="checked" checked="{{checked}}" icon-size="20px">记住密码</checkbox>
    </checkbox-group>
    <view class="formbutton" bindtap="loginIn">登录</view>
    <!-- <button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">登录</button> -->
  </view>
</view>