更新 front/templates/payPage.html
This commit is contained in:
parent
f5061b558e
commit
4d45e6a29b
|
@ -124,7 +124,7 @@
|
||||||
{{if eq .code 200 }}
|
{{if eq .code 200 }}
|
||||||
<body>
|
<body>
|
||||||
<!-- 页面内容 -->
|
<!-- 页面内容 -->
|
||||||
<div class="payment-info" id="payment-info" style="display: none;">
|
<div class="payment-info" id="payment-info">
|
||||||
<h2>订单支付</h2>
|
<h2>订单支付</h2>
|
||||||
<p>{{.desc}}</p>
|
<p>{{.desc}}</p>
|
||||||
<p>交易号:{{ .id }}</p>
|
<p>交易号:{{ .id }}</p>
|
||||||
|
@ -132,7 +132,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 支付方式选择区域 -->
|
<!-- 支付方式选择区域 -->
|
||||||
<div id="pay-container" style="display: none;">
|
<div id="pay-container">
|
||||||
<div id="pay"></div>
|
<div id="pay"></div>
|
||||||
<!-- 支付方式列表 -->
|
<!-- 支付方式列表 -->
|
||||||
<ul id="payment-list"></ul>
|
<ul id="payment-list"></ul>
|
||||||
|
@ -198,8 +198,8 @@
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default: // 其他状态(待支付/失败/关闭)
|
default: // 其他状态(待支付/失败/关闭)
|
||||||
fetchPaymentMethods();
|
|
||||||
closeLoading()
|
closeLoading()
|
||||||
|
fetchPaymentMethods();
|
||||||
// window.location.reload();
|
// window.location.reload();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -339,6 +339,7 @@
|
||||||
|
|
||||||
// 页面加载时执行
|
// 页面加载时执行
|
||||||
window.onload = function() {
|
window.onload = function() {
|
||||||
|
showLoading();
|
||||||
if (localStorage.getItem('auto-redirect') == 2) {
|
if (localStorage.getItem('auto-redirect') == 2) {
|
||||||
handlePaymentCallback(); // 如果是支付回调且不是自动跳转,处理支付结果
|
handlePaymentCallback(); // 如果是支付回调且不是自动跳转,处理支付结果
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue