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`; }, } }