From f28efe8103a19b5aa8e411a0951da70ee0e3008a Mon Sep 17 00:00:00 2001 From: tcubic <123456> Date: Mon, 8 Aug 2022 18:11:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/Home/Home.vue | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/src/page/Home/Home.vue b/src/page/Home/Home.vue index 381055b..cae468d 100644 --- a/src/page/Home/Home.vue +++ b/src/page/Home/Home.vue @@ -242,21 +242,10 @@ const wxAuthGetCode = () => { - 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'; + var url = 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'; + window.location.href = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx35766a64d73d08a9&redirect_uri={{url}}&response_type=code&scope=snsapi_userinfo&state=123#wechat_redirect` - // service - // .post(process.env.VUE_APP_API + "/cms-activity/cms88/zsApi/xfhdAuthorize", { - // redirect_uri: redirect_uri, - // }) - // .then((res) => { - // let code = res.data.data; - // console.log("get code结果3", res); - // authCode.value = res.data.data; - // window.location.href = res.data.data; - // // location.href = res.data.data; - // // window.open(res.data.data) - // }); }; const getCode = () => {