修改测试打包时地址重定向问题.

huipay-h5
游梦婷 1 year ago
parent 7609481755
commit 4b31da200b
  1. 2
      App.vue
  2. 3
      pages/welcome/welcome.vue

@ -6,9 +6,11 @@
// //
// url: 'https://pay.dctpay.com/crest', // url: 'https://pay.dctpay.com/crest',
// imgUrl: 'https://gratia-pay.obs.cn-southwest-2.myhuaweicloud.com', // imgUrl: 'https://gratia-pay.obs.cn-southwest-2.myhuaweicloud.com',
// redirectUrl:'https://pay.dctpay.com/cweb',
// //
url: 'https://gratia-pay.dctpay.com/crest', url: 'https://gratia-pay.dctpay.com/crest',
imgUrl: 'https://gratia-pay-test.obs.cn-east-3.myhuaweicloud.com', imgUrl: 'https://gratia-pay-test.obs.cn-east-3.myhuaweicloud.com',
redirectUrl:'https://gratia-pay.dctpay.com/cweb',
userInfo: "", userInfo: "",
openId: '', openId: '',
h5code: '', h5code: '',

@ -71,8 +71,9 @@
}); });
}, },
jumpcdx() { jumpcdx() {
let redirectUrl = app.globalData.redirectUrl;
location.href = 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`;
}, },
} }
} }

Loading…
Cancel
Save