更新 front/templates/payPage.html

This commit is contained in:
zhangguoping 2025-07-21 20:26:48 +08:00
parent eaed2d4a0b
commit 64d79d4f3e
1 changed files with 4 additions and 3 deletions

View File

@ -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 @@
<div class="payment-info" style="text-align: center;">
<h2 style="color: #ff0000;">支付异常</h2>
<p>{{.message}}</p>
<button onclick="window.location.href='/'">返回</button>
</div>
</body>