authorize.wxml 803 B

12345678910111213
  1. <!--pages/authorize/authorize.wxml-->
  2. <view class='Popup' hidden='{{iShidden}}'>
  3. <image src='{{logo_url}}'></image>
  4. <view class='title'>授权提醒</view>
  5. <view class='tip'>请授权头像等信息,以便为您提供更好的服务</view>
  6. <view class='bottom flex'>
  7. <view class='item' bindtap='close'>随便逛逛</view>
  8. <!-- 在高版本中获取用户信息已改成uni.getUserProfile-->
  9. <button class='item grant' type="primary" wx:if="{{canIUseGetUserProfile}}" lang="zh_CN" bindtap="getUserProfile"> 去授权 </button>
  10. <button class='item grant' type="primary" wx:else open-type="getUserInfo" lang="zh_CN" bindgetuserinfo="setUserInfo"> 去授权 </button>
  11. </view>
  12. </view>
  13. <view class='mask' hidden='{{iShidden}}' catchtouchmove="true" bindtap='close'></view>