更新 front/templates/payPage.html
This commit is contained in:
parent
eaed2d4a0b
commit
64d79d4f3e
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue