<view>
  <van-popup
    show='{{ show }}'
    position='bottom'
    round
    onClose="onClose"
    overlay-style="background:rgba(0,0,0,0.4);"
    custom-style='height: auto;'>
    <view class="auth-popup-wrap">
      <view class="head-layout">
        <image mode="scaleToFill" src="/static/auth/icon-head.png" class="pic" />
        <text class="name">{{ name || '小程序名称' }}</text>
        <text class="shenqing">申请</text>
        <view style="flex:auto;"/>
        <view onTap='gotoInfo'>
          <text class="info">详情</text>
          <van-icon size="13px" color="#333333" name='arrow' custom-style="margin-top:4rpx;"/>
        </view>
      </view>
      <view class="title">获取以下权限</view>
      <view class="subtitle">用于为您提供本应用当前服务</view>
      <view class="content-layout"><text class="content">获取你的证件号、姓名和手机号码</text></view>
      <view class="confirm">同意<text style="color:#1677FF;" onTap="protocol" data-type="{{protocolEnum.authAgreement}}">《用户授权协议》</text></view>
      <view class="btn-layout">
        <button size="default" onTap="onClose">拒绝</button>
        <view style="flex:none;width:24rpx;"/>
        <button size="default" type="primary" onTap="getAuth">同意</button>
      </view>
    </view>
  </van-popup>
</view>