From 3f1212403ab7701d15894c988fe5ed67d1462213 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期二, 26 八月 2025 13:36:10 +0800
Subject: [PATCH] gx
---
src/views/HomeLoading/index.vue | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/views/HomeLoading/index.vue b/src/views/HomeLoading/index.vue
index 2b56715..f934974 100644
--- a/src/views/HomeLoading/index.vue
+++ b/src/views/HomeLoading/index.vue
@@ -36,7 +36,9 @@
})
}
onMounted(() => {
+ alert('请在微信中打开本小程序')
const token=Session.get('token')
+ alert('token='+token)
if (token && userInfo.info.openid!==''){
console.log('已经登录了')
getUserinfo()
@@ -46,6 +48,7 @@
const queryInfo=route.query
const {code}=queryInfo
console.log(code)
+ alert('code='+code)
if (code){// 得到code换取openid
ajaxGet('wechat/code',{code}).then((re)=>{
console.log(re,'获取openid')
@@ -67,6 +70,7 @@
})
}
else { // 没有code 就重新进入微信url获取code
+ alert('没有code,重新进入微信授权')
const appid = 'wx790bd67db6206070' // 微信APPid
const local = window.location.href
window.location.href =
--
Gitblit v1.8.0