feat: 页面优化3
This commit is contained in:
parent
b40464ad36
commit
2cc8e3c248
|
@ -188,7 +188,7 @@
|
||||||
closeLoading();
|
closeLoading();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
alert(`no:${id}`);
|
||||||
// 查询订单状态
|
// 查询订单状态
|
||||||
fetch(`/pay/front/api/v1/payPage/query?no=${id}`, {
|
fetch(`/pay/front/api/v1/payPage/query?no=${id}`, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
|
@ -199,7 +199,7 @@
|
||||||
})
|
})
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
closeLoading();
|
closeLoading();
|
||||||
alert(data.status);
|
alert(`订单状态:${data}`);
|
||||||
switch (data.status) {
|
switch (data.status) {
|
||||||
case 2: // 处理中
|
case 2: // 处理中
|
||||||
handlePaymentCallback(); // 重查状态
|
handlePaymentCallback(); // 重查状态
|
||||||
|
@ -265,9 +265,9 @@
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
closeLoading();
|
closeLoading();
|
||||||
console.error("获取支付方式失败:", error);
|
console.error("获取支付方式失败:", error);
|
||||||
const pay = document.getElementById("pay");
|
// const pay = document.getElementById("pay");
|
||||||
pay.innerHTML =
|
// pay.innerHTML =
|
||||||
'<h3 style="color: red;">获取支付方式失败,请刷新重试</h3>';
|
// '<h3 style="color: red;">获取支付方式失败,请刷新重试</h3>';
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
closeLoading();
|
closeLoading();
|
||||||
|
@ -381,7 +381,6 @@
|
||||||
<div class="payment-info" style="text-align: center">
|
<div class="payment-info" style="text-align: center">
|
||||||
<h2 style="color: #ff0000">支付异常</h2>
|
<h2 style="color: #ff0000">支付异常</h2>
|
||||||
<p>{{.message}}</p>
|
<p>{{.message}}</p>
|
||||||
<button onclick="window.location.href='/'">返回</button>
|
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue