This commit is contained in:
linfso 2025-06-20 08:42:04 +08:00
parent 9bb7670690
commit 6db992d73f

View File

@ -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,10 +254,6 @@ export default {
}); });
}, },
handleWeixinPay(){ handleWeixinPay(){
const ua = window.navigator.userAgent.toLowerCase();
if (!ua.match(/MicroMessenger/i)) {
this.isWx=false;
}else{
const params = new URLSearchParams(window.location.search); const params = new URLSearchParams(window.location.search);
let code=params.get('code'); let code=params.get('code');
let state=params.get('code'); let state=params.get('code');
@ -269,7 +266,6 @@ export default {
const authUrl = this.generateAuthUrl("https://oms.tanex56.com/onlinePay","snsapi_base",this.billNo); const authUrl = this.generateAuthUrl("https://oms.tanex56.com/onlinePay","snsapi_base",this.billNo);
window.location.href = authUrl; window.location.href = authUrl;
} }
}
}, },
requestPayment(code,state) { requestPayment(code,state) {
this.loadingVisible = true; this.loadingVisible = true;