登录信息获取
This commit is contained in:
parent
2ca6b119d8
commit
871137c592
20
src/App.vue
20
src/App.vue
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user