From da26eb5306f19a8cf517281a8b1d2651f3db3be5 Mon Sep 17 00:00:00 2001 From: Dev Date: Sat, 10 Oct 2026 17:53:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=88=E6=9D=83=E7=A1=AE=E8=AE=A4=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../miniapp/pages/usercenter/balance/index.js | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/frontend/miniapp/pages/usercenter/balance/index.js b/frontend/miniapp/pages/usercenter/balance/index.js index 427bc67..54d4a65 100644 --- a/frontend/miniapp/pages/usercenter/balance/index.js +++ b/frontend/miniapp/pages/usercenter/balance/index.js @@ -138,6 +138,17 @@ Page({ }); }, + // 刷新账户余额与明细:重置分页从头加载,确保能看到最新产生的记录 + refreshBalanceData() { + this.setData({ + list: [], + page: 1, + loadMoreStatus: 0 + }); + this.loadAccountInfo(); + this.loadList(); + }, + // 提现弹窗 onWithdraw() { this.setData({ showWithdrawDialog: true }); @@ -256,18 +267,12 @@ Page({ withdrawAmount: '', withdrawName: '' }); + //提现申请已受理:立即刷新余额与明细(重置分页从头加载),不依赖弹窗交互 + this.refreshBalanceData(); wx.showModal({ title: '提示', showCancel: false, - content: res.msg, - success: (re) => { - if (re.confirm) { - //提现之后,刷新数据 - this.loadAccountInfo(); - this.loadList(); - console.log('用户点击确定'); - } - } + content: res.msg }); } else { wx.showToast({ title: res.msg, icon: 'none' });