更新 front/templates/payPage.html

This commit is contained in:
zhangguoping 2025-07-21 20:55:21 +08:00
parent ac48291008
commit 072c094878
1 changed files with 2 additions and 1 deletions

View File

@ -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();
} }