<button open-type="getUserInfo" bindgetuserinfo="bindGetUserInfo"></button>
bindGetUserInfo: function (e) {
wx.getSetting({
success: function (res) {
if (res.authSetting['scope.userInfo']) {
wx.getUserInfo({
success: function (res22) {
}
})
}
}
})
相似问题