From c98eb7406accbd307c302878e4d9d58ab9677f60 Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Wed, 23 Jul 2025 09:19:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=80=80=E5=87=BA=E7=99=BB?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 3 +- pages/login/login.vue | 469 +++++++++++++++++++++--------------------- 2 files changed, 239 insertions(+), 233 deletions(-) diff --git a/App.vue b/App.vue index 5fc3755..2740188 100644 --- a/App.vue +++ b/App.vue @@ -7,9 +7,8 @@ uni.login({ provider: 'weixin', success: async (data) => { - uni.cache.set('weixincode', data.code); let res = await Api.getminiuserinfo({ - code: uni.cache.get('weixincode') //临时登录凭证 + code: data.code }) uni.cache.set('open_id', res.data.openid) this.$isResolve() diff --git a/pages/login/login.vue b/pages/login/login.vue index 2144e30..a39ded6 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -1,18 +1,14 @@ \ No newline at end of file +} +