feat: 页面优化3
This commit is contained in:
parent
b40464ad36
commit
2cc8e3c248
|
@ -188,7 +188,7 @@
|
|||
closeLoading();
|
||||
return;
|
||||
}
|
||||
|
||||
alert(`no:${id}`);
|
||||
// 查询订单状态
|
||||
fetch(`/pay/front/api/v1/payPage/query?no=${id}`, {
|
||||
method: "POST",
|
||||
|
@ -199,7 +199,7 @@
|
|||
})
|
||||
.then((data) => {
|
||||
closeLoading();
|
||||
alert(data.status);
|
||||
alert(`订单状态:${data}`);
|
||||
switch (data.status) {
|
||||
case 2: // 处理中
|
||||
handlePaymentCallback(); // 重查状态
|
||||
|
@ -265,9 +265,9 @@
|
|||
.catch((error) => {
|
||||
closeLoading();
|
||||
console.error("获取支付方式失败:", error);
|
||||
const pay = document.getElementById("pay");
|
||||
pay.innerHTML =
|
||||
'<h3 style="color: red;">获取支付方式失败,请刷新重试</h3>';
|
||||
// const pay = document.getElementById("pay");
|
||||
// pay.innerHTML =
|
||||
// '<h3 style="color: red;">获取支付方式失败,请刷新重试</h3>';
|
||||
});
|
||||
} else {
|
||||
closeLoading();
|
||||
|
@ -381,7 +381,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