From cef577c6928c961b4c3e2d97748a232aac64b903 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 28 五月 2024 16:22:40 +0800
Subject: [PATCH] ''

---
 h5/pages/login/login.vue |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/h5/pages/login/login.vue b/h5/pages/login/login.vue
index 2cb32c7..732caac 100644
--- a/h5/pages/login/login.vue
+++ b/h5/pages/login/login.vue
@@ -62,14 +62,10 @@
         title: '瀵嗙爜涓嶈兘涓虹┖',
         icon: 'none'
       })
-      const appID = 'wx4d7c10bdec51942b'
-      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_userinfo&state=123#wechat_redirect`
-      window.location.href = authURL
-      loginPost(form).then(res => {
+      loginPost({
+        ...form,
+        openId: this.$store.state.openId
+      }).then(res => {
         console.log('res', res);
       })
     }

--
Gitblit v1.9.3