diff --git a/src/App.vue b/src/App.vue index c2c4bc6..c75ba62 100644 --- a/src/App.vue +++ b/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')