|
|
|
@ -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'; |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|