<!--pages/mobileLogin/mobileLogin.wxml-->
<view class="contain">
  <view class="loginbox">
    <image src="https://img.applets.igandanyiyuan.com/applet/patient/static/logo1.png" class="logo"></image></view>
    <view class="iptbox">
      <view class="iptcell">
        <text>+86</text>
        <input type="number" value="{{phone}}" placeholder="请输入手机号"  bindinput="inputChange" data-id="phone"/>
      </view>
      <view class="iptcell">
        <input type="number" placeholder="请输入验证码" class="code"  value="{{code}}" bindinput="inputChange" data-id="code"/>
        <button class="{{codeActive?'active':''}}" plain disabled="{{isActive}}" bindtap="handleThrottle">{{msg}}</button>
      </view>
    </view>
    <view class="btnbox">
      <button plain="true" hover-class="none" disabled="{{disabled}}" bindtap="goLogin">登录</button>
      <view class="checkbox">
         <view> 
          <checkbox-group bindchange="checkboxChange">
             <checkbox class="check" ></checkbox>
          </checkbox-group>
           <image src="{{img_host+'/checkbox.png'}}"  wx:if="{{check == 0}}"></image>
           <image src="{{img_host+'/checkboxon.png'}}"  wx:else></image>
         </view>
         <text>我已阅读并同意协议<text class="navigator" bindtap="goAgreement" data-id="3">《肝胆相照用户注册及服务协议》、</text><text class="navigator" bindtap="goAgreement" data-id="2">《隐私协议》、</text><text class="navigator" bindtap="goAgreement"  data-id="1">《风险告知书》</text></text>
      </view>
   </view>
</view>
<van-dialog
  title="温馨提示"
  message="是否授权肝胆相照互联网医院？"
  show="{{ show }}"
  confirm-button-color="#3CC7C0"
  show-cancel-button
  confirm-button-open-type="getUserInfo"
  bind:close="onClose"
  bind:getuserinfo="getUserInfo"
>
  <image src="https://img.yzcdn.cn/1.jpg" />
</van-dialog>
