<!--pages/login/login.wxml-->
<view class="contain">
   <view class="logobox">
     <image src="https://img.applets.igandanyiyuan.com/applet/patient/static/logo.png"></image>
     <text class="desc">你好！欢迎登录肝胆相照互联网医院</text>
   </view>
   <view class="btnbox">
    <button type="primary"  bindtap="handleAgree" wx:if="{{check==0}}">手机号快捷登录</button>
      <button type="primary" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" wx:else>手机号快捷登录</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 class="footer" bindtap="goMobile">输入手机号登录/注册</view>
</view>
<van-dialog
  use-slot
  title="温馨提示"
  show="{{ showEntryTip }}"
  show-cancel-button
  confirm-button-text="同意并继续"
  cancel-button-text="不同意"
  confirm-button-color="#3CC7C0"
  bind:confirm="onConfirmEntry"
  bind:cancel="onCloseEntry"
  before-close="{{beforeClose}}"
  confirm-button-open-type="agreePrivacyAuthorization"
>
<view class="entrymsg" >
 <view> 亲爱的用户，感谢您信任并使用肝胆相照互联网医院！我们依据最新法律法规的要求，制定了<text class="navigator" bindtap="goAgreement" data-id="2">《隐私协议》</text>。请您仔细阅《隐私协议》，并确认了解我们对您的个人信息处理原则。</view>
<view>如您同意《隐私协议》，请点击“同意”开始使用我们的产品和服务。</view>
</view>

</van-dialog>
<van-dialog
  title="温馨提示"
  show="{{ showEntryTip_second }}"
  message="很抱歉，如您不同意《隐私协议》，可能无法继续正常使用我们的服务，请您先同意哦~"
  show-cancel-button
  confirm-button-text="好的"
  cancel-button-text="不同意"
  confirm-button-color="#3CC7C0"
  bind:confirm="onConfirmEntry_second"
  bind:cancel="onCloseEntry_second"
>
</van-dialog>