'use client' import { useState } from 'react' import Link from 'next/link' import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/Card' import { Button } from '@/components/ui/Button' import { SuccessTag, PendingTag, WarningTag, ErrorTag } from '@/components/ui/Tag' import { AlertTriangle, Clock, CheckCircle, XCircle, ChevronRight, FileVideo, MessageSquare, TrendingUp } from 'lucide-react' // 模拟统计数据 const stats = { pendingReview: 12, pendingAppeal: 3, todayPassed: 28, inProgress: 45, } // 模拟紧急待办 const urgentTodos = [ { id: 'urgent-001', type: 'violation', title: '达人A视频 - 竞品露出', description: 'XX品牌618推广', time: '2小时前', level: 'high', }, { id: 'urgent-002', type: 'appeal', title: '达人B申诉 - 待仲裁', description: '对违禁词检测结果有异议', time: '30分钟前', level: 'medium', }, { id: 'urgent-003', type: 'ai_done', title: '达人C视频 - AI审核完成', description: '新品口红试色', time: '10分钟前', level: 'low', }, ] // 模拟项目概览 const projectOverview = [ { id: 'proj-001', name: 'XX品牌618推广', total: 20, submitted: 15, passed: 10, reviewing: 3, needRevision: 2, }, { id: 'proj-002', name: '新品口红系列', total: 12, submitted: 8, passed: 6, reviewing: 1, needRevision: 1, }, { id: 'proj-003', name: '护肤品秋季活动', total: 15, submitted: 12, passed: 9, reviewing: 2, needRevision: 1, }, ] // 模拟待审核任务列表 const pendingTasks = [ { id: 'task-001', videoTitle: '夏日护肤推广', creatorName: '小美护肤', brandName: 'XX品牌', aiScore: 85, submittedAt: '2026-02-04 14:30', hasHighRisk: false, }, { id: 'task-002', videoTitle: '新品口红试色', creatorName: '美妆达人Lisa', brandName: 'XX品牌', aiScore: 72, submittedAt: '2026-02-04 13:45', hasHighRisk: true, }, { id: 'task-003', videoTitle: '健身器材开箱', creatorName: '健身教练王', brandName: 'XX运动', aiScore: 68, submittedAt: '2026-02-04 14:50', hasHighRisk: true, }, ] function UrgentLevelIcon({ level }: { level: string }) { if (level === 'high') return if (level === 'medium') return return } export default function AgencyDashboard() { return (
{/* 页面标题 */}

代理商工作台

更新时间:{new Date().toLocaleString('zh-CN')}
{/* 统计卡片 */}
待审核
{stats.pendingReview}
待仲裁
{stats.pendingAppeal}
今日通过
{stats.todayPassed}
进行中
{stats.inProgress}
{/* 紧急待办 */} 紧急待办 {urgentTodos.map((todo) => (
{todo.title}
{todo.description}
{todo.time}
))}
{/* 项目概览 */} 项目概览
{projectOverview.map((project) => (
{project.name} {project.submitted}/{project.total} 已提交
通过 {project.passed} 审核中 {project.reviewing} 需修改 {project.needRevision}
))}
{/* 待审核列表 */} 待审核任务
{pendingTasks.map((task) => ( ))}
视频 达人 品牌 AI评分 提交时间 操作
{task.videoTitle}
{task.hasHighRisk && ( 高风险 )}
{task.creatorName} {task.brandName} = 80 ? 'text-accent-green' : task.aiScore >= 60 ? 'text-yellow-400' : 'text-accent-coral' }`}> {task.aiScore}分 {task.submittedAt}
) }