From 0b354233fcfc629fd0fbd54b90d6cbd1b49facfd Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期五, 22 八月 2025 17:08:14 +0800 Subject: [PATCH] fix: 修改电信可充值区域 --- packages/components/src/views/Mine/Dashboard.vue | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/components/src/views/Mine/Dashboard.vue b/packages/components/src/views/Mine/Dashboard.vue index 3d624ad..fcf6639 100644 --- a/packages/components/src/views/Mine/Dashboard.vue +++ b/packages/components/src/views/Mine/Dashboard.vue @@ -29,7 +29,7 @@ <DashboardItem title="绱鏀剁泭" :icon="IconDashboard5" - :value="toThousand(topStatistics?.accumulatedIncome ?? 0)" + :value="toThousand(topStatistics?.accumulatedChannlesRakePrice ?? 0)" need-symbol /> <DashboardItem @@ -80,7 +80,10 @@ const { blLifeRecharge } = useLifeRechargeContext(); const { data: topStatistics } = useQuery({ - queryKey: ['lifePayServices/getTopStatistics', blLifeRecharge.accountModel.userChannles], + queryKey: [ + 'lifePayServices/getTopStatistics', + computed(() => blLifeRecharge.accountModel.userChannles), + ], queryFn: async () => { return await blLifeRecharge.services.getTopStatistics( { @@ -92,6 +95,10 @@ ); }, placeholderData: () => ({} as TopStatisticsOutput), - enabled: computed(() => blLifeRecharge.accountModel.isBackClientUser), + enabled: computed(() => { + return ( + !!blLifeRecharge.accountModel.isBackClientUser && blLifeRecharge.accountModel.isGetUserInfo + ); + }), }); </script> -- Gitblit v1.9.1