From a527a44e20f6dee385f7f04d8821c70fb92dcacc Mon Sep 17 00:00:00 2001 From: wolter <11@gmail> Date: Mon, 21 Jul 2025 16:25:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A1=B5=E9=9D=A2=E4=BC=98=E5=8C=965?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/templates/payPage.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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('请选择支付方式');