md
This commit is contained in:
parent
9bb7670690
commit
6db992d73f
@ -149,6 +149,7 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.reset();
|
this.reset();
|
||||||
|
const ua = window.navigator.userAgent.toLowerCase();
|
||||||
if (!ua.match(/MicroMessenger/i)) {
|
if (!ua.match(/MicroMessenger/i)) {
|
||||||
this.isWx=false;
|
this.isWx=false;
|
||||||
}
|
}
|
||||||
@ -253,23 +254,18 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleWeixinPay(){
|
handleWeixinPay(){
|
||||||
const ua = window.navigator.userAgent.toLowerCase();
|
const params = new URLSearchParams(window.location.search);
|
||||||
if (!ua.match(/MicroMessenger/i)) {
|
let code=params.get('code');
|
||||||
this.isWx=false;
|
let state=params.get('code');
|
||||||
}else{
|
// 如果是微信回调,拉起微信支付
|
||||||
const params = new URLSearchParams(window.location.search);
|
if (code) {
|
||||||
let code=params.get('code');
|
this.requestPayment(code,state);
|
||||||
let state=params.get('code');
|
}
|
||||||
// 如果是微信回调,拉起微信支付
|
else{
|
||||||
if (code) {
|
this.billNo = this.$route.query.bid;
|
||||||
this.requestPayment(code,state);
|
const authUrl = this.generateAuthUrl("https://oms.tanex56.com/onlinePay","snsapi_base",this.billNo);
|
||||||
}
|
window.location.href = authUrl;
|
||||||
else{
|
}
|
||||||
this.billNo = this.$route.query.bid;
|
|
||||||
const authUrl = this.generateAuthUrl("https://oms.tanex56.com/onlinePay","snsapi_base",this.billNo);
|
|
||||||
window.location.href = authUrl;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
requestPayment(code,state) {
|
requestPayment(code,state) {
|
||||||
this.loadingVisible = true;
|
this.loadingVisible = true;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user