From 4b31da200ba50fe1079b8e62b636edec369a39bf Mon Sep 17 00:00:00 2001 From: youmengting <2080639302@qq.com> Date: Fri, 3 Nov 2023 17:36:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B5=8B=E8=AF=95=E6=89=93?= =?UTF-8?q?=E5=8C=85=E6=97=B6=E5=9C=B0=E5=9D=80=E9=87=8D=E5=AE=9A=E5=90=91?= =?UTF-8?q?=E9=97=AE=E9=A2=98.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 2 ++ pages/welcome/welcome.vue | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/App.vue b/App.vue index a778c6e..69cc782 100644 --- a/App.vue +++ b/App.vue @@ -6,9 +6,11 @@ //正式 // url: 'https://pay.dctpay.com/crest', // imgUrl: 'https://gratia-pay.obs.cn-southwest-2.myhuaweicloud.com', + // redirectUrl:'https://pay.dctpay.com/cweb', //测试 url: 'https://gratia-pay.dctpay.com/crest', imgUrl: 'https://gratia-pay-test.obs.cn-east-3.myhuaweicloud.com', + redirectUrl:'https://gratia-pay.dctpay.com/cweb', userInfo: "", openId: '', h5code: '', diff --git a/pages/welcome/welcome.vue b/pages/welcome/welcome.vue index d2ab096..1a7f46a 100644 --- a/pages/welcome/welcome.vue +++ b/pages/welcome/welcome.vue @@ -71,8 +71,9 @@ }); }, jumpcdx() { + let redirectUrl = app.globalData.redirectUrl; location.href = - 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxa075e8509802f826&redirect_uri=https://hsg.dctpay.com/wechat_authorize/?redirect_uri=https://pay.dctpay.com/cweb&response_type=code&scope=snsapi_base#wechat_redirect'; + `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxa075e8509802f826&redirect_uri=https://hsg.dctpay.com/wechat_authorize/?redirect_uri=${redirectUrl}&response_type=code&scope=snsapi_base#wechat_redirect`; }, } }