md
This commit is contained in:
parent
fcbdc2ea8e
commit
aa571b57a1
@ -161,7 +161,7 @@ export default {
|
|||||||
wxPayQrImageUrl:null,
|
wxPayQrImageUrl:null,
|
||||||
|
|
||||||
isWx:false,
|
isWx:false,
|
||||||
payStatus:0,
|
payStatus:null,
|
||||||
|
|
||||||
loadingVisible: false,
|
loadingVisible: false,
|
||||||
paymentSuccess: false,
|
paymentSuccess: false,
|
||||||
@ -173,6 +173,8 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.payStatus=0;
|
||||||
|
|
||||||
const ua = window.navigator.userAgent.toLowerCase();
|
const ua = window.navigator.userAgent.toLowerCase();
|
||||||
if (ua.match(/MicroMessenger/i)) {
|
if (ua.match(/MicroMessenger/i)) {
|
||||||
this.isWx=true;
|
this.isWx=true;
|
||||||
@ -344,6 +346,7 @@ export default {
|
|||||||
},
|
},
|
||||||
verifyPaymentStatus() {
|
verifyPaymentStatus() {
|
||||||
this.loadingVisible = true;
|
this.loadingVisible = true;
|
||||||
|
this.payStatus==1;
|
||||||
// 调用后端API验证支付状态
|
// 调用后端API验证支付状态
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
// 实际项目中应该调用后端API验证支付状态
|
// 实际项目中应该调用后端API验证支付状态
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user