修复了停止轮询后 onShow 不恢复的问题,以及支付状态获取异常的问题

This commit is contained in:
2026-07-10 13:52:48 +08:00
parent 4b60ebbc10
commit 6f6dac422f
6 changed files with 89 additions and 6 deletions

View File

@@ -94,8 +94,17 @@ Component({
const app = getApp();
app.globalData.alipayQrImage = qrImage;
const pollUrl = encodeURIComponent('/yonghu/fkzffc');
const self = this;
wx.navigateTo({
url: `/pages/alipay-webview/alipay-webview?orderId=${orderId}&pollUrl=${pollUrl}`,
events: {
onAlipaySuccess: () => {
// 复用微信流成功逻辑:通知父组件刷新罚单列表并关闭弹窗
self.triggerEvent('success');
self.close();
wx.showToast({ title: '缴纳成功', icon: 'success' });
}
}
});
},