diff --git a/front/templates/payPage.html b/front/templates/payPage.html
index e28cb1c..50a9e53 100644
--- a/front/templates/payPage.html
+++ b/front/templates/payPage.html
@@ -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('请选择支付方式');