From ddf380600359aecb57c919a1115f766ff7277e05 Mon Sep 17 00:00:00 2001 From: wolter <11@gmail> Date: Tue, 22 Jul 2025 14:02:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A1=B5=E9=9D=A2=E4=BC=98=E5=8C=964?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/templates/payPage.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/front/templates/payPage.html b/front/templates/payPage.html index b9d37b7..be89c61 100644 --- a/front/templates/payPage.html +++ b/front/templates/payPage.html @@ -188,7 +188,7 @@ closeLoading(); return; } - alert(`no:${id}`); + // alert(`no:${id}`); // 查询订单状态 fetch(`/pay/front/api/v1/payPage/query?no=${id}`, { method: "POST", @@ -199,19 +199,19 @@ }) .then((data) => { closeLoading(); - alert(`订单状态:${data}`); + // alert(`订单状态:${data.status}`); switch (data.status) { case 2: // 处理中 handlePaymentCallback(); // 重查状态 break; case 3: // 支付成功 - alert(data.return_url); + // alert(data.return_url); if (data.return_url) { window.location.href = data.return_url; // 自动跳转 } break; default: // 其他状态(待支付/失败/关闭) - alert("其他状态(待支付"); + // alert("其他状态(待支付"); fetchPaymentMethods(); // window.location.reload(); } @@ -364,9 +364,9 @@ // 页面加载时执行 window.onload = function () { - alert(`return:${getQueryParam("return")}`); + // alert(`return:${getQueryParam("return")}`); if (getQueryParam("return")) { - alert("处理支付回调"); + // alert("处理支付回调"); handlePaymentCallback(); // 如果是支付回调且不是自动跳转,处理支付结果 } else { localStorage.setItem("auto-redirect", 1); // 设置自动跳转标记