From 4bf908240986bd7483ad28b7215a7eeab6396e64 Mon Sep 17 00:00:00 2001 From: tcubic <123456> Date: Mon, 8 Aug 2022 18:06:38 +0800 Subject: [PATCH] update2 --- src/page/Home/Home.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/page/Home/Home.vue b/src/page/Home/Home.vue index 6ba58b5..381055b 100644 --- a/src/page/Home/Home.vue +++ b/src/page/Home/Home.vue @@ -236,8 +236,13 @@ const getCode2 = () => { }; const wxAuthGetCode = () => { - var appId = "wx35766a64d73d08a9"; - var REDIRECT_URI = 'https://test.szxgl.cn/zszq-celebration/activity/index.html'; + + // var appId = "wx35766a64d73d08a9"; + var appId = "wx41d80a1bb01f658d"; + + + + var REDIRECT_URI = window.location.href; window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid='+ appId +'&redirect_uri='+ REDIRECT_URI +'&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect'; // service