feat: 页面优化5
This commit is contained in:
parent
47c3a408a1
commit
a527a44e20
|
@ -200,12 +200,14 @@
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default: // 其他状态(待支付/失败/关闭)
|
default: // 其他状态(待支付/失败/关闭)
|
||||||
window.location.reload();
|
closeLoading();
|
||||||
|
// window.location.reload();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
console.error('订单状态查询失败:', error);
|
closeLoading();
|
||||||
window.location.reload();
|
alert('订单状态查询失败');
|
||||||
|
// window.location.reload();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -328,7 +330,6 @@
|
||||||
const no = getQueryParam('no');
|
const no = getQueryParam('no');
|
||||||
const selectedMethod = document.querySelector('input[name="paymentMethod"]:checked');
|
const selectedMethod = document.querySelector('input[name="paymentMethod"]:checked');
|
||||||
if (selectedMethod) {
|
if (selectedMethod) {
|
||||||
showLoading();
|
|
||||||
window.location.href = `/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 {
|
} else {
|
||||||
alert('请选择支付方式');
|
alert('请选择支付方式');
|
||||||
|
|
Loading…
Reference in New Issue