From c3c67ee9e88c579e8ac784821ab41f58d0372ebb Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 11 六月 2024 15:46:34 +0800
Subject: [PATCH] 最新版本

---
 h5/pages/notice/notice.vue |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/h5/pages/notice/notice.vue b/h5/pages/notice/notice.vue
index ddd051b..befb446 100644
--- a/h5/pages/notice/notice.vue
+++ b/h5/pages/notice/notice.vue
@@ -25,10 +25,22 @@
   },
   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({
         dictCode: 'SYSTEM',
         label: 'VISIT_NOTICE'

--
Gitblit v1.9.3