From 1fe90a5ccf30582191731d49d7ed0d4220f1304e Mon Sep 17 00:00:00 2001 From: zhangguoping Date: Mon, 21 Jul 2025 18:27:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20front/templates/payPage.ht?= =?UTF-8?q?ml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/templates/payPage.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/front/templates/payPage.html b/front/templates/payPage.html index 70ce273..b70ce55 100644 --- a/front/templates/payPage.html +++ b/front/templates/payPage.html @@ -215,7 +215,6 @@ // 获取支付方式列表 function fetchPaymentMethods() { - alert(`id:${id}`); const id = getQueryParam('no'); if (id) { fetch(`/pay/front/api/v1/payPage/list?id=${id}`, { @@ -346,11 +345,9 @@ // 页面加载时执行 window.onload = function() { - if (localStorage.getItem('auto-redirect') == 2) { - alert("二次加载"); + if (localStorage.getItem('auto-redirect') && localStorage.getItem('auto-redirect') == 2) { handlePaymentCallback(); // 如果是支付回调且不是自动跳转,处理支付结果 } else { - alert("首次加载"); localStorage.setItem('auto-redirect', 1); // 设置自动跳转标记 fetchPaymentMethods(); // 获取支付方式 }