From 4cdff25609300b4613aa2539c8b04976df65bc33 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期三, 05 六月 2024 18:28:33 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/dmvisit
---
h5/pages/notice/notice.vue | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/h5/pages/notice/notice.vue b/h5/pages/notice/notice.vue
index ddd051b..b114ef8 100644
--- a/h5/pages/notice/notice.vue
+++ b/h5/pages/notice/notice.vue
@@ -25,8 +25,20 @@
},
onLoad() {
this.getInfo()
+ if(!this.$store.state.openId){
+ this.initToken()
+ }
+
},
methods: {
+ initToken() {
+ const appID = 'wxac2a80c2144c4ee0'
+ // const AppSecret = '922c93596d134fedf5bd22a9354b3bfe'
+ let uri = encodeURIComponent('http://xiaopiqiu2.natapp1.cc/static/redirect.html')
+ 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
+ },
getInfo() {
// 鍏ュ満椤荤煡璇︽儏
getSystemDictData({
--
Gitblit v1.9.3