<view class="container">
  <image class="bg-image" src="/static/images/ic_scan_bg.png" mode="widthFix"></image>
  <view class="scan-body">
    <van-nav-bar title="扫描二维码" left-text="" left="" custom-class="nav-bar"></van-nav-bar>
    <view class="scan-content">
      <image class="bg-phone-image" src="/static/images/ic_phone_bg.png" mode="widthFix"></image>
      <text class="scan-tips">扫描成功后将跳转至睡眠控制主页</text>

      <view class="bottom-view-privacy">
        <van-checkbox use-icon-slot value="{{ checkedPrivacy }}" bind:change="onChangePrivacy">
          <view class="privacy-checkbox">
            <image class="privacy-checkbox-icon" slot="icon" src="{{ checkedPrivacy ? activeIcon : normalIcon }}" />
            <text class="privacy-detail-btn">我已阅读并同意</text>
          </view>
        </van-checkbox>
        <text class="privacy-detail-btn_tk" bindtap="showUserDetail">《舒眠大健康用户服务协议》</text>
        <text class="privacy-detail-btn" style="margin-left: 10rpx;">和</text>
        <text class="privacy-detail-btn_tk" bindtap="showPrivacyDetail">《舒眠大健康隐私保护政策》</text>
      </view>

      <view class="scan-btn-box" bindtap="tapScan">
        <image src="/static/icons/ic_scan.svg"></image>
        <text>点击扫码</text>
      </view>
    </view>

  </view>
  <authorized-login-dialog showDialog="{{showAuthorizedDialog}}"
    bind:authorizationSuccessful="authorizationSuccessful"></authorized-login-dialog>
  <van-popup show="{{ showTipsA }}" bind:close="onCloseTipsDialog" custom-style="background-color: transparent;">
    <view class="tips-box">
      <view class="tips-content">
        <image class="ic-tips" src="/static/index/icon/ic_zwqx1.png" mode="widthFix"></image>
        <text class="tips-title">暂无权限</text>
        <text
          class="tips-desc">{{'暂无权限的原因如下：\n1、您不是酒店住客或者爱眠客床垫用户，没有权限查看睡眠报告。\n2、您是酒店住客，但是没有获取到您的信息，请联系前台。\n3、您是爱眠客床垫用户，请联系客服。'}}</text>
      </view>
      <view class="tips-close-btn" bindtap="onCloseTipsDialog">
        <van-icon name="close" color="#FFFFFF" size="56rpx" />
      </view>
    </view>
  </van-popup>
</view>