'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' import { getPlatformInfo } from '@/lib/platforms' // 模拟统计数据 const stats = { pendingReview: { script: 8, video: 4, }, pendingAppeal: 3, todayPassed: { script: 18, video: 10, }, inProgress: { script: 25, video: 20, }, } // 模拟紧急待办 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推广', platform: 'douyin', total: 20, submitted: 15, passed: 10, reviewingScript: 2, reviewingVideo: 1, needRevision: 2, }, { id: 'proj-002', name: '新品口红系列', platform: 'xiaohongshu', total: 12, submitted: 8, passed: 6, reviewingScript: 1, reviewingVideo: 0, needRevision: 1, }, { id: 'proj-003', name: '护肤品秋季活动', platform: 'bilibili', total: 15, submitted: 12, passed: 9, reviewingScript: 1, reviewingVideo: 1, needRevision: 1, }, ] // 模拟待审核任务列表 const pendingTasks = [ { id: 'task-001', videoTitle: '夏日护肤推广', creatorName: '小美护肤', brandName: 'XX品牌', platform: 'douyin', aiScore: 85, submittedAt: '2026-02-04 14:30', hasHighRisk: false, }, { id: 'task-002', videoTitle: '新品口红试色', creatorName: '美妆达人Lisa', brandName: 'XX品牌', platform: 'xiaohongshu', aiScore: 72, submittedAt: '2026-02-04 13:45', hasHighRisk: true, }, { id: 'task-003', videoTitle: '健身器材开箱', creatorName: '健身教练王', brandName: 'XX运动', platform: 'bilibili', 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.script + stats.pendingReview.video}
脚本 {stats.pendingReview.script} 视频 {stats.pendingReview.video}
待仲裁
{stats.pendingAppeal}
今日通过
{stats.todayPassed.script + stats.todayPassed.video}
脚本 {stats.todayPassed.script} 视频 {stats.todayPassed.video}
进行中
{stats.inProgress.script + stats.inProgress.video}
脚本 {stats.inProgress.script} 视频 {stats.inProgress.video}
{/* 紧急待办 */} 紧急待办 {urgentTodos.map((todo) => (
{todo.title}
{todo.description}
{todo.time}
))}
{/* 项目概览 */} 项目概览
{projectOverview.map((project) => { const totalReviewing = project.reviewingScript + project.reviewingVideo const projectPlatform = getPlatformInfo(project.platform) return (
{project.name} {projectPlatform && ( {projectPlatform.icon} {projectPlatform.name} )}
{project.submitted}/{project.total} 已提交
通过 {project.passed} 脚本审核 {project.reviewingScript} 视频审核 {project.reviewingVideo} 需修改 {project.needRevision}
) })}
{/* 待审核列表 */} 待审核任务
{pendingTasks.map((task) => { const platform = getPlatformInfo(task.platform) return ( ) })}
视频 平台 达人 品牌 AI评分 提交时间 操作
{task.videoTitle}
{task.hasHighRisk && ( 高风险 )}
{platform && ( {platform.icon} {platform.name} )} {task.creatorName} {task.brandName} = 80 ? 'text-accent-green' : task.aiScore >= 60 ? 'text-yellow-400' : 'text-accent-coral' }`}> {task.aiScore}分 {task.submittedAt}
) }