"use client" import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card" import { Badge } from "@/components/ui/badge" import { Button } from "@/components/ui/button" import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs" import { DollarSign, TrendingUp, BarChart3, Calculator, Users, ArrowUpRight } from "lucide-react" import { Progress } from "@/components/ui/progress" export default function ValueAssessment() { const valueModels = [ { name: "RFM价值模型", description: "基于最近购买、购买频率、购买金额", totalValue: 8560000000, avgValue: 199.8, coverage: 92.5, status: "active", }, { name: "用户生命周期价值", description: "预测用户终身价值(LTV)", totalValue: 12580000000, avgValue: 293.5, coverage: 78.3, status: "active", }, { name: "行为价值模型", description: "基于用户行为数据评估", totalValue: 6780000000, avgValue: 158.2, coverage: 85.7, status: "training", }, ] const projectValues = [ { name: "美妆行业项目A", users: 45600000, value: 2856000000, growth: 15.8, level: "A" }, { name: "教育培训项目B", users: 32800000, value: 1968000000, growth: 12.3, level: "A" }, { name: "电商零售项目C", users: 58900000, value: 3534000000, growth: 18.5, level: "S" }, { name: "金融服务项目D", users: 28500000, value: 1995000000, growth: 8.7, level: "B" }, { name: "本地生活项目E", users: 19200000, value: 1152000000, growth: 6.5, level: "B" }, ] const wechatRanking = [ { name: "微信号001", users: 2856000, value: 168560000, avgValue: 59.0, rank: 1 }, { name: "微信号002", users: 2345000, value: 145780000, avgValue: 62.2, rank: 2 }, { name: "微信号003", users: 1980000, value: 128640000, avgValue: 65.0, rank: 3 }, { name: "微信号004", users: 1756000, value: 112340000, avgValue: 64.0, rank: 4 }, { name: "微信号005", users: 1520000, value: 95600000, avgValue: 62.9, rank: 5 }, ] const growthTrend = [ { month: "1月", value: 9850000000, growth: 8.5 }, { month: "2月", value: 10250000000, growth: 4.1 }, { month: "3月", value: 10850000000, growth: 5.9 }, { month: "4月", value: 11420000000, growth: 5.3 }, { month: "5月", value: 11980000000, growth: 4.9 }, { month: "6月", value: 12580000000, growth: 5.0 }, ] const formatNumber = (num: number): string => { if (num >= 1000000000) return `${(num / 1000000000).toFixed(1)}B` if (num >= 1000000) return `${(num / 1000000).toFixed(1)}M` if (num >= 1000) return `${(num / 1000).toFixed(1)}K` return num.toString() } const formatCurrency = (num: number): string => { if (num >= 100000000) return `${(num / 100000000).toFixed(1)}亿` if (num >= 10000) return `${(num / 10000).toFixed(1)}万` return num.toString() } const getLevelColor = (level: string) => { const colors = { S: "bg-purple-100 text-purple-700 border-purple-200", A: "bg-blue-100 text-blue-700 border-blue-200", B: "bg-green-100 text-green-700 border-green-200", C: "bg-yellow-100 text-yellow-700 border-yellow-200", D: "bg-gray-100 text-gray-700 border-gray-200", } return colors[level as keyof typeof colors] || colors.D } return (

价值评估

用户价值分析、项目价值统计与预测

平台总价值
¥{formatCurrency(12580000000)}
+5.0% 本月增长
人均价值
¥293.5
+2.8% 环比提升
价值覆盖率
85.5%
已评估用户占比
价值模型 项目价值 微信号排名 增长趋势 {valueModels.map((model, index) => (
{model.name}

{model.description}

{model.status === "active" ? "运行中" : "训练中"}
模型总价值
¥{formatCurrency(model.totalValue)}
人均价值
¥{model.avgValue}
覆盖率
{model.coverage}%
))}
{projectValues.map((project, index) => (
{project.name}
{project.level}级项目
+{project.growth}%
用户数
{formatNumber(project.users)}
项目价值
¥{formatCurrency(project.value)}
人均价值
¥{(project.value / project.users).toFixed(2)}
增长率
{project.growth}%
))}
{wechatRanking.map((wechat, index) => (
{wechat.rank}

{wechat.name}

{formatNumber(wechat.users)} 用户
¥{formatCurrency(wechat.value)}
人均 ¥{wechat.avgValue}
))}
价值增长趋势
{growthTrend.map((item, index) => (
{item.month}
¥{formatCurrency(item.value)}
+{item.growth}%
))}
) }