更新 front/templates/payPage.html
This commit is contained in:
parent
1fe90a5ccf
commit
c30484e7f7
|
@ -202,7 +202,6 @@
|
|||
}
|
||||
break;
|
||||
default: // 其他状态(待支付/失败/关闭)
|
||||
alert("其他状态(待支付/失败/关闭)");
|
||||
fetchPaymentMethods();
|
||||
// window.location.reload();
|
||||
}
|
||||
|
@ -215,7 +214,9 @@
|
|||
|
||||
// 获取支付方式列表
|
||||
function fetchPaymentMethods() {
|
||||
|
||||
const id = getQueryParam('no');
|
||||
alert(id, 'zgp')
|
||||
if (id) {
|
||||
fetch(`/pay/front/api/v1/payPage/list?id=${id}`, {
|
||||
method: 'POST',
|
||||
|
@ -243,6 +244,7 @@
|
|||
alert(localStorage.getItem('auto-redirect'));
|
||||
if(localStorage.getItem('auto-redirect') == 2){
|
||||
// 如果有自动跳转标记,展示支付界面
|
||||
alert('afkldsjkl')
|
||||
renderPaymentMethods(data.data);
|
||||
}else{
|
||||
// 否则设置自动跳转标记,并跳转
|
||||
|
|
Loading…
Reference in New Issue