| | |
| | | <DashboardItem |
| | | title="累计收益" |
| | | :icon="IconDashboard5" |
| | | :value="toThousand(topStatistics?.accumulatedIncome ?? 0)" |
| | | :value="toThousand(topStatistics?.accumulatedChannlesRakePrice ?? 0)" |
| | | need-symbol |
| | | /> |
| | | <DashboardItem |
| | |
| | | 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( |
| | | { |
| | |
| | | ); |
| | | }, |
| | | placeholderData: () => ({} as TopStatisticsOutput), |
| | | enabled: computed(() => blLifeRecharge.accountModel.isBackClientUser), |
| | | enabled: computed(() => { |
| | | return ( |
| | | !!blLifeRecharge.accountModel.isBackClientUser && blLifeRecharge.accountModel.isGetUserInfo |
| | | ); |
| | | }), |
| | | }); |
| | | </script> |