From 64d79d4f3e0c75dc3d9908d46e91f3c97f119409 Mon Sep 17 00:00:00 2001 From: zhangguoping Date: Mon, 21 Jul 2025 20:26:48 +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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/front/templates/payPage.html b/front/templates/payPage.html index 8f9fe40..4b7cb57 100644 --- a/front/templates/payPage.html +++ b/front/templates/payPage.html @@ -243,7 +243,8 @@ if(localStorage.getItem('auto-redirect') != 2){ // 否则设置自动跳转标记,并跳转 localStorage.setItem('auto-redirect', 2); - window.location.href = `/pay/front/api/v1/payPage/submit?pay_channel_id=${data.data[0].pay_channel_id}&no=${id}`; + window.location.replace(`/pay/front/api/v1/payPage/submit?pay_channel_id=${data.data[0].pay_channel_id}&no=${id}`); + // window.location.href = `/pay/front/api/v1/payPage/submit?pay_channel_id=${data.data[0].pay_channel_id}&no=${id}`; } } else { // 多种支付方式,展示支付界面 @@ -328,7 +329,8 @@ const no = getQueryParam('no'); const selectedMethod = document.querySelector('input[name="paymentMethod"]:checked'); if (selectedMethod) { - window.location.href = `/pay/front/api/v1/payPage/submit?pay_channel_id=${selectedMethod.value}&no=${no}`; + window.location.replace(`/pay/front/api/v1/payPage/submit?pay_channel_id=${selectedMethod.value}&no=${no}`); + // window.location.href = `/pay/front/api/v1/payPage/submit?pay_channel_id=${selectedMethod.value}&no=${no}`; } else { alert('请选择支付方式'); } @@ -360,7 +362,6 @@

支付异常

{{.message}}

-