wx.getUserProfile({
lang: 'zh_CN',
desc: '登录', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
success: (res) => {
console.log(res, '用户信息');
this.store.commit('updateUserinfo', res.userInfo);
this.userinfo_login(res)
setTimeout(() => {
this.buying = false;
}, 1000)
},
fail: (res) => {
// this.logining = false
setTimeout(() => {
this.buying = false;
}, 1000)
}
})
https://developers.weixin.qq.com/community/develop/doc/00022c683e8a80b29bed2142b56c01?highLine=getUserProfile