feat: 页面优化5

This commit is contained in:
wolter 2025-07-21 16:25:55 +08:00
parent 47c3a408a1
commit a527a44e20
1 changed files with 5 additions and 4 deletions

View File

@ -200,12 +200,14 @@
}
break;
default: // 其他状态(待支付/失败/关闭)
window.location.reload();
closeLoading();
// window.location.reload();
}
})
.catch(error => {
console.error('订单状态查询失败:', error);
window.location.reload();
closeLoading();
alert('订单状态查询失败');
// window.location.reload();
});
}
@ -328,7 +330,6 @@
const no = getQueryParam('no');
const selectedMethod = document.querySelector('input[name="paymentMethod"]:checked');
if (selectedMethod) {
showLoading();
window.location.href = `/pay/front/api/v1/payPage/submit?pay_channel_id=${selectedMethod.value}&no=${no}`;
} else {
alert('请选择支付方式');