<!--pages/mobileLogin/mobileLogin.wxml-->
<navBar navName="登录"  myclass="myclass"></navBar>
<view class="page">
    <!-- <view class="zhuce" bind:tap="goRegister">注册</view> -->
    <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">
        <!-- <text>+86</text> -->
        <input type="number" value="{{mobile}}" placeholder="请输入手机号"  bindinput="inputChange" data-id="mobile"/>
      </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="number" placeholder="请输入短信验证码" class="code"  value="{{sms}}" bindinput="inputChange" data-id="sms"/>
        <button class="{{codeActive?'active':''}}" plain disabled="{{isActive}}" bindtap="handleThrottle">{{msg}}</button>
      </view>
    </view>
    <view class="buttonbox">
      <view plain="true" hover-class="none" class="btn" disabled="{{disabled}}" bindtap="goLogin">登录</view>
     
   </view>
   <view class="type">
     <view class="mobileLogin" bind:tap="goPwdLogin">密码登录</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="{{check}}">手机号快捷登录</button >
   </view>
   <!-- <view class="zhuce">注册</view> -->
   <view class="agree">
    <van-checkbox value="{{ check }}" bind:change="checkboxChange"></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>

<van-overlay show="{{ showEntryTip }}" zIndex="9999">
 <view class="wrapper">
  <view class="privacyBox">
  <view class="title">温馨提示</view>
  <view class="entrymsg">
    <view> 亲爱的用户，感谢您信任并使用人工肝病例登录系统！我们依据最新法律法规的要求，制定了<text class="navigator" bindtap="goAgreement" data-id="2">《隐私协议》</text>。请您仔细阅《隐私协议》，并确认了解我们对您的个人信息处理原则。</view>
    <view>如您同意《隐私协议》，请点击“同意”开始使用我们的产品和服务。</view>
  </view>
<view class="btnbox_xieyi">
   <view class="cancel" bindtap="onCloseEntry">不同意</view>
  <button id="agree-btn" 
  plain
  class="confirm" 
  open-type="agreePrivacyAuthorization" bindagreeprivacyauthorization="onConfirmEntry">同意并继续</button>
</view>
</view>
 </view>
</van-overlay> 

<van-overlay show="{{ showEntryTip_second }}" zIndex="99999">
 <view class="wrapper">
  <view class="privacyBox">
  <view class="title">温馨提示</view>
<view class="entrymsg" >
 <view> 很抱歉，如您不同意《隐私协议》，可能无法继续正常使用我们的服务，请您先同意哦~</view>
</view>
<view class="btnbox_xieyi">
   <view class="cancel" bindtap="onCloseEntry_second">不同意</view>
  <button id="agree-btn" 
  plain
  class="confirm" 
  bindtap="onConfirmEntry_second">好的</button>
</view>
</view>
 </view>
</van-overlay> 