优化充值页面,删除冗余的调试日志
This commit is contained in:
parent
3abdbf38c7
commit
8e89df0934
@ -68,7 +68,10 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
processAlipayPayment() {
|
||||
this.$resources.createAlipayOrder.submit();
|
||||
this.$resources.createAlipayOrder.submit().catch(err => {
|
||||
// Prevent "Uncaught (in promise)" error in console
|
||||
// The error is already displayed in the UI via the ErrorMessage component
|
||||
});
|
||||
},
|
||||
|
||||
// Optional: method to check payment status
|
||||
@ -84,7 +87,7 @@ export default {
|
||||
this.$emit('payment-success');
|
||||
}
|
||||
}).catch(err => {
|
||||
console.error('Error checking payment status:', err);
|
||||
// Error checking payment status
|
||||
});
|
||||
}, 3000);
|
||||
|
||||
|
||||
@ -101,7 +101,6 @@ export default {
|
||||
}
|
||||
},
|
||||
onSuccess(response) {
|
||||
console.log('WeChat Pay response:', response);
|
||||
this.orderId = response.order_id;
|
||||
this.qrCodeUrl = response.qr_code_url;
|
||||
this.qrCodeImage = response.qr_code_image;
|
||||
@ -131,7 +130,10 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
processWeChatPayment() {
|
||||
this.$resources.createWeChatPayOrder.submit();
|
||||
this.$resources.createWeChatPayOrder.submit().catch(err => {
|
||||
// Prevent "Uncaught (in promise)" error in console
|
||||
// The error is already displayed in the UI via the ErrorMessage component
|
||||
});
|
||||
},
|
||||
|
||||
startPaymentCheck() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user