From f855c18e98f354b7ce76c59760d2830ac11c34a4 Mon Sep 17 00:00:00 2001 From: ylj20011123 Date: Sat, 15 Nov 2025 21:57:54 +0800 Subject: [PATCH] update --- .../components/BrandDetail/BrandDetail.vue | 24 +++++++++---------- .../index/components/MemberMall/index.vue | 14 +++++------ .../supplierListBox/supplierListBox.vue | 21 +++++++++------- 3 files changed, 30 insertions(+), 29 deletions(-) diff --git a/src/page/index/components/BrandDetail/BrandDetail.vue b/src/page/index/components/BrandDetail/BrandDetail.vue index 625a9a7..4b21cb3 100644 --- a/src/page/index/components/BrandDetail/BrandDetail.vue +++ b/src/page/index/components/BrandDetail/BrandDetail.vue @@ -202,7 +202,7 @@ const handleGetTableData = async (BRAND_INDUSTRY: number) => { const data = await handleGetCombineBrandList(req) // brandListData.value = data.slice(0, 6) - return data.slice(0, 3) + return data.slice(0, 6) } // 切换tab @@ -229,15 +229,15 @@ onBeforeUnmount(() => { const handleSetConfig = (res: any) => { const option = { legend: { - // orient: 'vertical', // 图例纵向排列 - // left: 200, // 距离右侧5% - // top: 'center', // 垂直居中 - itemWidth: 12, // 图例标记宽度 - bottom: 'center', - left: 'center', - itemHeight: 12, // 图例标记高度 + orient: 'horizontal', // 图例横向排列 + bottom: 0, // 距离底部25px,增加与饼图的间隔 + left: 'center', // 水平居中 + itemWidth: 12, // 图例标记宽度 + itemHeight: 12, // 图例标记高度 + itemGap: 25, // 图例之间的间距,增加间隔 textStyle: { - color: '#fff', // 文字颜色 + color: '#fff', // 文字颜色 + fontSize: 12, rich: { // 可以在这里添加富文本样式 value: { @@ -252,8 +252,6 @@ const handleSetConfig = (res: any) => { const dataItem = res.pieData.find((item: any) => item.name === name); // 返回自定义格式 return `${name} ${dataItem?.value}%`; - - } }, tooltip: { // 新增 tooltip 配置 @@ -271,8 +269,8 @@ const handleSetConfig = (res: any) => { { name: 'Access From', type: 'pie', - radius: ['0%', '70%'], - center: ['25%', '50%'], + radius: ['0%', '70%'], // 恢复原来的饼图大小 + center: ['50%', '42%'], // 饼图水平居中,稍微偏上为底部图例留空间 avoidLabelOverlap: false, itemStyle: { color: function (params: any) { diff --git a/src/page/index/components/MemberMall/index.vue b/src/page/index/components/MemberMall/index.vue index f10e8b2..0e5cb9d 100644 --- a/src/page/index/components/MemberMall/index.vue +++ b/src/page/index/components/MemberMall/index.vue @@ -11,8 +11,8 @@ import SmallTitle from '../smallTitle/smallTitle.vue'
会员总数
-
12733
-
本月新增 56 个
+
15071
+
本月新增 146 个
@@ -21,22 +21,22 @@ import SmallTitle from '../smallTitle/smallTitle.vue'
-
94
+
270
新增会员数
-
2716
+
3203
打开次数
-
624
+
757
新增人数
-
884
+
1914
访问人数
@@ -97,7 +97,7 @@ import SmallTitle from '../smallTitle/smallTitle.vue'
23
-
1,205.83
+
diff --git a/src/page/index/components/supplierListBox/supplierListBox.vue b/src/page/index/components/supplierListBox/supplierListBox.vue index 8374f04..413656b 100644 --- a/src/page/index/components/supplierListBox/supplierListBox.vue +++ b/src/page/index/components/supplierListBox/supplierListBox.vue @@ -82,30 +82,33 @@ defineExpose({
-
经销商/家
-
{{ supplierObj?.dealer || "0" }} -
+
供应商/家
+ +
14
品牌方/家
-
{{ supplierObj?.brandSide || "0" + +
14
自有品牌水/家
-
{{ + +
2
零售批发类/家
-
{{ + +
28