-
+
+
+

{
e.currentTarget.src =
"https://hebbkx1anhila5yf.public.blob.vercel-storage.com/image-api.png";
}}
/>
-
-
- {scenario.name}
-
-
-
- 今日获客: {scenario.count}
-
-
-
-
-
-
-
- {scenario.status === 1 ? "活跃" : "暂停"}
-
+
{scenario.name}
+ {scenario.description && (
+
+ {scenario.description}
-
+ )}
+
+
+ 今日: {scenario.count}
+
+
+
{scenario.growth}
-
+
))}
-
- {scenarios.length === 0 && !loading && (
-
-
📊
-
暂无场景数据
-
-
- )}
);
diff --git a/nkebao/src/pages/workspace/Workspace.tsx b/nkebao/src/pages/workspace/Workspace.tsx
index 81096f03..f8377905 100644
--- a/nkebao/src/pages/workspace/Workspace.tsx
+++ b/nkebao/src/pages/workspace/Workspace.tsx
@@ -1,15 +1,14 @@
import React from "react";
import { Link } from "react-router-dom";
-import { Card, NavBar, Badge, Progress } from "antd-mobile";
+import { Card, NavBar, Badge } from "antd-mobile";
import {
- ThumbsUpOutline,
+ LikeOutline,
MessageOutline,
SendOutline,
TeamOutline,
- ShareOutline,
+ LinkOutline,
AppOutline,
- BarChartOutline,
- LineChartOutline,
+ PieOutline,
ClockCircleOutline,
} from "antd-mobile-icons";
import Layout from "@/components/Layout/Layout";
@@ -33,7 +32,7 @@ const Workspace: React.FC = () => {
name: "自动点赞",
description: "智能自动点赞互动",
icon: (
-
+
),
path: "/workspace/auto-like",
bgColor: "#fff2f0",
@@ -77,7 +76,7 @@ const Workspace: React.FC = () => {
name: "流量分发",
description: "管理流量分发和分配",
icon: (
-
+
),
path: "/workspace/traffic-distribution",
bgColor: "#e6f7ff",
@@ -101,9 +100,7 @@ const Workspace: React.FC = () => {
id: "ai-analyzer",
name: "AI数据分析",
description: "智能分析客户行为特征",
- icon: (
-
- ),
+ icon:
,
path: "/workspace/ai-analyzer",
bgColor: "#f0f0ff",
isNew: true,
@@ -121,17 +118,17 @@ const Workspace: React.FC = () => {
id: "ai-forecast",
name: "AI销售预测",
description: "智能预测销售趋势",
- icon: (
-
- ),
+ icon:
,
path: "/workspace/ai-forecast",
bgColor: "#fffbe6",
},
];
+ // 进度条宽度
+ const progressPercent = Math.round(
+ (taskStats.inProgress / taskStats.total) * 100
+ );
+
return (
{
总任务数
{taskStats.total}
-
+
进行中: {taskStats.inProgress} / 已完成: {taskStats.completed}