From 17efddc6a667670dca682bf36b51a43e99615e6d Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期三, 16 十月 2024 15:59:38 +0800
Subject: [PATCH] 代码初始化
---
h5/pages/auth/auth.vue | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/h5/pages/auth/auth.vue b/h5/pages/auth/auth.vue
index 14138b1..7015615 100644
--- a/h5/pages/auth/auth.vue
+++ b/h5/pages/auth/auth.vue
@@ -13,12 +13,12 @@
},
onLoad() {
const appID = 'wx4d7c10bdec51942b'
- const AppSecret = '922c93596d134fedf5bd22a9354b3bfe'
- // const scope = 'snsapi_userinfo'
- let uri = encodeURIComponent('http://xiaopiqiu2.natapp1.cc')
- let authURL =
- `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appID}&redirect_uri=${uri}&response_type=code&scope=snsapi_userinfo&state=123#wechat_redirect`
- window.location.href = authURL
+ const AppSecret = '922c93596d134fedf5bd22a9354b3bfe'
+ // const scope = 'snsapi_userinfo'
+ let uri = encodeURIComponent('https://xiaopiqiu2.natapp1.cc')
+ let authURL =
+ `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appID}&redirect_uri=${uri}&response_type=code&scope=snsapi_base&state=123#wechat_redirect`
+ window.location.href = authURL
}
}
</script>
--
Gitblit v1.9.3