update template/xcx/components/authorize/authorize.wxml.

修改小程序授权获取用户信息
This commit is contained in:
吴昊天 2021-04-06 16:33:44 +08:00 committed by Gitee
parent 155a8b822e
commit d607ae4aac

View File

@ -5,7 +5,9 @@
<view class='tip'>请授权头像等信息,以便为您提供更好的服务</view>
<view class='bottom flex'>
<view class='item' bindtap='close'>随便逛逛</view>
<button class='item grant' type="primary" open-type="getUserInfo" lang="zh_CN" bindgetuserinfo="setUserInfo">去授权</button>
<!-- 在高版本中获取用户信息已改成uni.getUserProfile-->
<button class='item grant' type="primary" wx:if="{{canIUseGetUserProfile}}" lang="zh_CN" bindtap="getUserProfile"> 去授权 </button>
<button class='item grant' type="primary" wx:else open-type="getUserInfo" lang="zh_CN" bindgetuserinfo="setUserInfo"> 去授权 </button>
</view>
</view>
<view class='mask' hidden='{{iShidden}}' catchtouchmove="true" bindtap='close'></view>