<!--case/pages/pwdLogin/pwdLogin.wxml-->
<navBar navName="登录"  myclass="myclass"></navBar>
<view class="page">
    <view class="logobox">
     <image src="../../../static/title_bg.png" class="logobg"></image>
     <text class="desc">欢迎登录</text>
     <text class="desc" style="margin-top: 20rpx;">人工肝病例登记系统</text>
   </view>
   <view class="iptbox">
     <view class="iptcell">
        <input type="text" placeholder="请输入手机号" value="{{mobile}}" data-id="mobile" bindinput="inputChange"/>
     </view>
     <view class="iptcell">
        <input type="text" placeholder="请输入图形验证码" class="code"  value="{{captchaCode}}" bindinput="inputChange" data-id="captchaCode"/>
       <image src="{{imgCode}}" mode="aspectFit" class="imgCode" bind:tap="handleGetCaptcha"/>
      </view>
     <view class="iptcell">
        <input type="text" 
        password="{{isPwd}}" bindinput="inputChange" placeholder="请输入密码" value="{{pwd}}" data-id="pwd"/>
        <view class="eyebox" bind:tap="toggleEye">
            <image src="../../../static/eye_close.png" alt="" class="eye"  wx:if="{{isPwd}}"/>
        <image src="../../../static/eye_open.png" alt="" class="eye"  wx:else />
        </view>
     </view>
   </view>
   <view class="buttonbox">
        <view class="btn" bind:tap="handlePwdLogin">登录</view>
   </view>
   <view class="type">
     <view class="mobileLogin" bind:tap="goMobile">手机验证码登录</view>
     <view class="zhuce" bind:tap="goRegister">注册</view>
   </view>
   <view class="wechatbox">
     <view class="chatmsg">- 手机号快捷登录 -</view>
     <image src="../../../static/wechat.png" mode="" class="wecaht" bind:tap="handleAgree"/>
     <button type="primary"  class="mobileAuth" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" wx:if="{{checked}}">手机号快捷登录</button >
   </view>
   <view class="agree">
    <van-checkbox value="{{ checked }}" bind:change="onChange"></van-checkbox>
    我已阅读并同意<text class="link" bind:tap="goAgreement">《隐私协议》</text>
   </view>
</view>

<dialog showDialog="{{showSuccess}}"  bind:confirm="onConfirmSuccess" bind:cancel="onCancelSuccess" title="提示" confirmText="完善" message="{{message}}"></dialog>
