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',
// imgUrl: 'https://192.168.3.4:9301/filesystem/',
//
url: 'https://pay.dctpay.com/crest',
imgUrl: 'https://gratia-pay.obs.cn-southwest-2.myhuaweicloud.com',
// url: 'https://pay.dctpay.com/crest',
// imgUrl: 'https://gratia-pay.obs.cn-southwest-2.myhuaweicloud.com',
//
// url: 'https://gratia-pay.dctpay.com/crest',
// imgUrl: 'https://gratia-pay-test.obs.cn-east-3.myhuaweicloud.com',
url: 'https://gratia-pay.dctpay.com/crest',
imgUrl: 'https://gratia-pay-test.obs.cn-east-3.myhuaweicloud.com',
userInfo: "",
openId: '',
h5code: '',

@ -17,28 +17,28 @@
},
onLoad(options) {
let that = this;
uni.reLaunch({
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]
// uni.reLaunch({
// url: '../tabBar/home/home'
// })
// }
// } else {
// // openid
// that.jumpcdx();
// }
// if (app.globalData.h5code) {
// that.getAccessToken();
// }
// #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]
})
}
} else {
// openid
that.jumpcdx();
}
if (app.globalData.h5code) {
that.getAccessToken();
}
// #endif
},
methods: {
@ -71,7 +71,7 @@
},
jumpcdx() {
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