auth-popup.axml 1.3 KB

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