微信小程序授权登陆 wx.getUserProfile
微信小程序授权登陆 wx.getUserProfile
链接: https://developers.weixin.qq.com/miniprogram/dev/api/open-api/user-info/wx.getUserProfile.html.
原流程不变但 wx.getUserProfile不能和wx.login一起使用 要分开写 或者wx.getUserProfile这个API必须写在事件的最上面
示例代码:
wxml:
<button bindtap="getUserInfo">
原创
2021-05-31 13:05:07 ·
865 阅读 ·
0 评论