From 871137c592531413c101f4c381412d2a509eb85e Mon Sep 17 00:00:00 2001 From: shikong <919411476@qq.com> Date: Wed, 6 Nov 2024 23:07:40 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E4=BF=A1=E6=81=AF=E8=8E=B7?= =?UTF-8?q?=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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')