From 264769cdd6f8ea39ca4941f2ab2b6baf0545c766 Mon Sep 17 00:00:00 2001 From: hly <2783385703@qq.com> Date: Fri, 22 Aug 2025 18:21:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(Walletflow):=20=E4=BF=AE=E5=A4=8D=E7=94=9F?= =?UTF-8?q?=E5=91=BD=E5=91=A8=E6=9C=9F=E9=92=A9=E5=AD=90=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E8=B0=83=E7=94=A8=E9=A1=BA=E5=BA=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复Walletflow页面onLoad和onShow生命周期钩子函数调用顺序,确保数据正确加载 修改recharge页面充值成功后的跳转逻辑和样式 --- pages_order/mine/Walletflow.vue | 5 +++++ pages_order/mine/recharge.vue | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/pages_order/mine/Walletflow.vue b/pages_order/mine/Walletflow.vue index 33f3375..5701fa2 100644 --- a/pages_order/mine/Walletflow.vue +++ b/pages_order/mine/Walletflow.vue @@ -93,8 +93,13 @@ }, onLoad() { this.getAccountBalance(); + }, + onShow() { this.getFlowList(); }, + onReachBottom() { + this.loadMore() + }, methods: { // 获取账户余额 getAccountBalance() { diff --git a/pages_order/mine/recharge.vue b/pages_order/mine/recharge.vue index f4d8878..8106699 100644 --- a/pages_order/mine/recharge.vue +++ b/pages_order/mine/recharge.vue @@ -188,14 +188,16 @@ uni.showToast({ title: `充值成功,获得${this.totalBeans}豆豆`, - icon: 'success' + icon: 'none' }) // 更新用户信息 this.$store.commit('getUserInfo') setTimeout(() => { - uni.navigateBack() + uni.reLaunch({ + url: '/pages/index/center' + }) }, 1500) } catch (error) { uni.showToast({ @@ -268,7 +270,7 @@ } .package-item { - width: calc(50% - 8rpx); + width: calc(50% - 16rpx); background: #f8f9ff; border: 2rpx solid #f0f0f0; border-radius: 16rpx;