优化充值页面,删除冗余的调试日志

This commit is contained in:
jingrow 2026-01-14 15:45:46 +08:00
parent 3abdbf38c7
commit 8e89df0934
2 changed files with 9 additions and 4 deletions

View File

@ -68,7 +68,10 @@ export default {
}, },
methods: { methods: {
processAlipayPayment() { 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 // Optional: method to check payment status
@ -84,7 +87,7 @@ export default {
this.$emit('payment-success'); this.$emit('payment-success');
} }
}).catch(err => { }).catch(err => {
console.error('Error checking payment status:', err); // Error checking payment status
}); });
}, 3000); }, 3000);

View File

@ -101,7 +101,6 @@ export default {
} }
}, },
onSuccess(response) { onSuccess(response) {
console.log('WeChat Pay response:', response);
this.orderId = response.order_id; this.orderId = response.order_id;
this.qrCodeUrl = response.qr_code_url; this.qrCodeUrl = response.qr_code_url;
this.qrCodeImage = response.qr_code_image; this.qrCodeImage = response.qr_code_image;
@ -131,7 +130,10 @@ export default {
}, },
methods: { methods: {
processWeChatPayment() { 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() { startPaymentCheck() {