From 7d67e27d8515a7c39b33ba707208a5a7d6dd9283 Mon Sep 17 00:00:00 2001
From: dzl <786316265@qq.com>
Date: Thu, 11 Sep 2025 16:00:35 +0800
Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/App.vue | 2 +-
src/views/Beans.vue | 26 ++++++++++++++++++--------
src/views/Dashboard.vue | 4 ++--
3 files changed, 21 insertions(+), 11 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index 7a31b95..9bba7e8 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -156,7 +156,7 @@ body {
/* 统计卡片 */
.stat-card {
- background: linear-gradient(135deg, #ffc0c0 0%, #fff6a7 100%);
+ background: #ffffff;
color: white;
border: none;
transition: all 0.3s ease;
diff --git a/src/views/Beans.vue b/src/views/Beans.vue
index 81e5a42..b9fd2f1 100644
--- a/src/views/Beans.vue
+++ b/src/views/Beans.vue
@@ -9,31 +9,38 @@
{{ stats.totalTransfers || 0 }}
-
总交易数
+
转给系统的融豆总数
{{ stats.totalEarned || 0 }}
-
总获得融豆
+
转给代理的融豆总数
-
+
{{ stats.totalSpent || 0 }}
-
总消费融豆
+
转给直营代理的融豆总数
-
+
{{ stats.completedTransfers || 0 }}
-
已完成交易
+
转给直营的融豆总数
+
+
+
{{ stats.completedTransfers || 0 }}
+
提现总数
+
+
+
@@ -154,6 +161,7 @@ const loadStats = async () => {
try {
const {data} = await api.beans.getStats()
stats.value = data.data.stats
+ console.log('总览数据:',stats.value)
} catch (error) {
console.error('加载融豆统计失败:', error)
}
@@ -207,7 +215,8 @@ const getTransferTypeColor = (type) => {
const colors = {
user_to_system: 'warning',
user_to_agent: 'success',
- user_to_operated: 'info'
+ user_to_operated: 'primary',
+ agent_to_operated: 'info'
}
return colors[type] || 'info'
}
@@ -217,7 +226,8 @@ const getTransferTypeText = (type) => {
const texts = {
user_to_system: '用户转系统',
user_to_agent: '用户转代理',
- user_to_operated: '用户转分销'
+ user_to_operated: '用户转分销',
+ agent_to_operated: '代理转分销'
}
return texts[type] || type
}
diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue
index ba3e6e3..d6fff12 100644
--- a/src/views/Dashboard.vue
+++ b/src/views/Dashboard.vue
@@ -110,7 +110,7 @@
@@ -389,7 +389,7 @@ const stats = computed(() => [
},
{
key: 'avgTransferAmount',
- label: '平均订单金额',
+ label: '平台利润',
value: `¥${(statsData.value.avgTransferAmount || 0).toLocaleString()}`,
icon: 'ShoppingBag',
class: 'stat-warning',