wxml
<button class="login-bn" type='primary' size="mini" bindtap='getUserProfile'>
<image src='/assets/images/me.png'></image>
<text>\n授权登录</text>
</button>
js
getUserProfile: function (e) {
wx.getUserProfile({
desc: '业务需要',
success: res => {
//拿到信息处理业务
}
})
},
- 以上就是本次登陆接口又又又又又被修改后的使用方式

VM22:1 Component "pages/wechatlogin/main" does not have a method "getUserProfile" to handle event "tap".
现在这个函数又不好用了,气晕了
整天TM的更新,害的迟迟项目不能上线!。选错了框架 改改改!!!!!!!
每次都要确认授权吗?已经授权过的能直接获取到信息吗