|
|
@ -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 |
|
|
|
// #ifdef H5 |
|
|
|
// let arr1 = window.location.href; |
|
|
|
let arr1 = window.location.href; |
|
|
|
// let arr2 = arr1.split('='); |
|
|
|
let arr2 = arr1.split('='); |
|
|
|
// if (arr2[2]) { |
|
|
|
if (arr2[2]) { |
|
|
|
// var arr3 = arr2[2].split('&'); |
|
|
|
var arr3 = arr2[2].split('&'); |
|
|
|
// if (arr3[0] != undefined && arr3[0]) { |
|
|
|
if (arr3[0] != undefined && arr3[0]) { |
|
|
|
// app.globalData.h5code = arr3[0]; |
|
|
|
app.globalData.h5code = arr3[0]; |
|
|
|
// uni.setStorage({ |
|
|
|
uni.setStorage({ |
|
|
|
// key: "h5code", |
|
|
|
key: "h5code", |
|
|
|
// data: arr3[0] |
|
|
|
data: arr3[0] |
|
|
|
// }) |
|
|
|
}) |
|
|
|
// } |
|
|
|
} |
|
|
|
// } else { |
|
|
|
} else { |
|
|
|
// // 获取openid |
|
|
|
// 获取openid |
|
|
|
// that.jumpcdx(); |
|
|
|
that.jumpcdx(); |
|
|
|
// } |
|
|
|
} |
|
|
|
// if (app.globalData.h5code) { |
|
|
|
if (app.globalData.h5code) { |
|
|
|
// that.getAccessToken(); |
|
|
|
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'; |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|