<!--pages/login/index.wxml-->
<image class="bg-img" src="/images/bg.png" mode="aspectFill" />
<view class="v-div v-center form">
  <view class="item v-div v-center">
    <text class="title">“智慧鲜水”数字化平台</text>
    <view class="h-div v-center in-bg">
      <image src="/images/user_icon.png"></image>
      <input type="text" value="{{username}}" placeholder="请输入用户名" bindinput="inputMethed" data-type="username" />
    </view>
    <view class="h-div v-center in-bg">
      <image src="/images/pws-icon.png"></image>
      <input password type="text" value="{{password}}" placeholder="请输入密码" bindinput="inputMethed" data-type="password" />
    </view>

    <view catchtap="login" class="btn" data-type="{{1}}">登录</view>
    <!-- <text class="tag">或</text>
    <view catchtap="login" class="wx-login" data-type="{{2}}">微信登录</view> -->
  </view>
</view>

<!-- 绑定微信 -->
<view class="cu-modal {{showPop?'show':''}}">
  <view class="cu-dialog pop">
    <view class="cu-bar justify-end pop-header">
      <view class="content text-black" style="font-weight: bold;">绑定微信</view>
      <view class="action" bindtap="handlePop">
        <text class="cuIcon-close text-black"></text>
      </view>
    </view>
    <view class="pop-content">绑定之后可使用微信登录</view>
    <view catchtap="login" class="btn" data-type="{{2}}">一 键 绑 定</view>
  </view>
</view>