更新 front/templates/payPage.html
This commit is contained in:
parent
ac48291008
commit
072c094878
|
@ -343,7 +343,8 @@
|
||||||
// 页面加载时执行
|
// 页面加载时执行
|
||||||
// 监听页面可见性变化
|
// 监听页面可见性变化
|
||||||
document.addEventListener('visibilitychange', function() {
|
document.addEventListener('visibilitychange', function() {
|
||||||
if (!document.hidden && localStorage.getItem('auto-redirect') == 1) {
|
alert('111')
|
||||||
|
if (!document.hidden && localStorage.getItem('auto-redirect') == 2) {
|
||||||
// 页面从后台返回且处于支付状态
|
// 页面从后台返回且处于支付状态
|
||||||
handlePaymentCallback();
|
handlePaymentCallback();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue