1.修改正式数据

huipay-master
杨杰 1 year ago
parent a4ab29645d
commit ff9cd2faee
  1. 8
      App.vue
  2. 44
      pages/welcome/welcome.vue

@ -4,11 +4,11 @@
// url: 'http://192.168.3.4:9301/crest', // url: 'http://192.168.3.4:9301/crest',
// imgUrl: 'https://192.168.3.4:9301/filesystem/', // imgUrl: 'https://192.168.3.4:9301/filesystem/',
// //
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',
// //
// 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',
userInfo: "", userInfo: "",
openId: '', openId: '',
h5code: '', h5code: '',

@ -17,28 +17,28 @@
}, },
onLoad(options) { onLoad(options) {
let that = this; let that = this;
uni.reLaunch({ // uni.reLaunch({
url: '../tabBar/home/home' // url: '../tabBar/home/home'
})
// #ifdef H5
// let arr1 = window.location.href;
// let arr2 = arr1.split('=');
// if (arr2[2]) {
// var arr3 = arr2[2].split('&');
// if (arr3[0] != undefined && arr3[0]) {
// app.globalData.h5code = arr3[0];
// uni.setStorage({
// key: "h5code",
// data: arr3[0]
// }) // })
// } // #ifdef H5
// } else { let arr1 = window.location.href;
// // openid let arr2 = arr1.split('=');
// that.jumpcdx(); if (arr2[2]) {
// } var arr3 = arr2[2].split('&');
// if (app.globalData.h5code) { if (arr3[0] != undefined && arr3[0]) {
// that.getAccessToken(); app.globalData.h5code = arr3[0];
// } uni.setStorage({
key: "h5code",
data: arr3[0]
})
}
} else {
// openid
that.jumpcdx();
}
if (app.globalData.h5code) {
that.getAccessToken();
}
// #endif // #endif
}, },
methods: { methods: {
@ -71,7 +71,7 @@
}, },
jumpcdx() { jumpcdx() {
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=https://gratia-pay.dctpay.com/cweb&response_type=code&scope=snsapi_base#wechat_redirect';
}, },
} }
} }

Loading…
Cancel
Save