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