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}}

-