wxml:
<view class='headView'>
<view class='headImageView'>
</view>
<view class='titleText'>申请获取以下权限</view>
<view class='contentText'>获得你的公开信息(昵称,头像,手机等)</view>
<button class='authBtn' type='primary' open-type='getUserInfo' bindgetuserinfo='bindGetUserInfo'>授权登录</button>
</view>
js:
bindGetUserInfo:function(e){
console.log(e);
},
清理缓存后点击button还是直接返回{type: "getuserinfo", timeStamp: 4367, target: {…}, currentTarget: {…}, mark: {…}, …}未显示授权界面
小程序 最近做了调整,需要看看你当前基础库 版本 ,2.15.0+ 是 需要使用 getUserProfile 替代 getUserInfo。
这次变动,仅针对 open-type='getUserInfo' 并不影响 open-data 。以下是 此次微信变更说明地址:https://developers.weixin.qq.com/community/develop/doc/000cacfa20ce88df04cb468bc52801?highLine=login