From 1910e9f27373b8b4da75f076762025ceb3419965 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 12 六月 2025 15:40:50 +0800
Subject: [PATCH] fix: 暂时隐藏电信充值通道
---
packages/components/src/views/Mine/Dashboard.vue | 69 +++++-----------------------------
1 files changed, 10 insertions(+), 59 deletions(-)
diff --git a/packages/components/src/views/Mine/Dashboard.vue b/packages/components/src/views/Mine/Dashboard.vue
index 2dbf5c5..fcf6639 100644
--- a/packages/components/src/views/Mine/Dashboard.vue
+++ b/packages/components/src/views/Mine/Dashboard.vue
@@ -1,60 +1,4 @@
<template>
- <!-- <NutGrid :gutter="10" :column-num="3" square class="dashboard-view">
- <NutGridItem>
- <div class="pro-statistics-wrapper">
- <div class="pro-statistics-title">绱鏀舵</div>
- <div class="pro-statistics-content">
- {{ toThousand(topStatistics?.accumulatedReceipts ?? 0) }}
- </div>
- </div>
- </NutGridItem>
- <NutGridItem>
- <div class="pro-statistics-wrapper">
- <div class="pro-statistics-title">鏄ㄦ棩鏀舵</div>
- <div class="pro-statistics-content">
- {{ toThousand(topStatistics?.receiptsYesterday ?? 0) }}
- </div>
- </div>
- </NutGridItem>
- <NutGridItem>
- <div class="pro-statistics-wrapper">
- <div class="pro-statistics-title">绱鏀剁泭</div>
- <div class="pro-statistics-content">
- {{ toThousand(topStatistics?.accumulatedIncome ?? 0) }}
- </div>
- </div>
- </NutGridItem>
- <NutGridItem>
- <div class="pro-statistics-wrapper">
- <div class="pro-statistics-title">绱涓嬪崟</div>
- <div class="pro-statistics-content">{{ topStatistics?.accumulatedOrders ?? 0 }}</div>
- </div>
- </NutGridItem>
- <NutGridItem>
- <div class="pro-statistics-wrapper">
- <div class="pro-statistics-title">鏄ㄦ棩涓嬪崟</div>
- <div class="pro-statistics-content">{{ topStatistics?.ordersNumYesterday ?? 0 }}</div>
- </div>
- </NutGridItem>
- <NutGridItem>
- <div class="pro-statistics-wrapper">
- <div class="pro-statistics-title">鏄ㄦ棩鎴愬姛</div>
- <div class="pro-statistics-content">{{ topStatistics?.yesterdaySuccess ?? 0 }}</div>
- </div>
- </NutGridItem>
- <NutGridItem>
- <div class="pro-statistics-wrapper">
- <div class="pro-statistics-title">绱鐢ㄦ埛</div>
- <div class="pro-statistics-content">{{ topStatistics?.accumulatedUsers ?? 0 }}</div>
- </div>
- </NutGridItem>
- <NutGridItem>
- <div class="pro-statistics-wrapper">
- <div class="pro-statistics-title">鏄ㄦ棩娲昏穬</div>
- <div class="pro-statistics-content">{{ topStatistics?.yesterdayActiveUsers ?? 0 }}</div>
- </div>
- </NutGridItem>
- </NutGrid> -->
<div class="dashboard-view">
<Chunk title="鏍稿績鏁版嵁">
<DashboardLargeCell class="dashboard-large-cell1">
@@ -85,7 +29,7 @@
<DashboardItem
title="绱鏀剁泭"
:icon="IconDashboard5"
- :value="toThousand(topStatistics?.accumulatedIncome ?? 0)"
+ :value="toThousand(topStatistics?.accumulatedChannlesRakePrice ?? 0)"
need-symbol
/>
<DashboardItem
@@ -136,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(
{
@@ -148,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