登录信息获取

This commit is contained in:
shikong 2024-11-06 23:07:40 +08:00
parent 2ca6b119d8
commit 871137c592
Signed by: Shikong
GPG Key ID: BD85FF18B373C341

View File

@ -9,8 +9,28 @@ export default {
onlyAuthorize: true, //
success(loginRes){
console.log("登录信息", loginRes)
uni.getUserInfo({
provider: 'weixin',
lang: 'zh_CN',
success(userInfoRes){
console.log("用户信息", userInfoRes)
}
})
if(!uni.getUserProfile){
console.log("uni.getUserProfile is not supported")
} else {
uni.getUserProfile({
desc: '用于完善会员资料',
success(profileRes){
console.log("用户资料", profileRes)
}
})
}
}
});
//#endif
},
onShow: function () {
console.log('App Show')