'use client' import React, { useState } from 'react' import { useRouter } from 'next/navigation' import { CircleUser, Settings, BellRing, History, MessageCircleQuestion, ChevronRight, LogOut, Copy, Check, Building2, Users, FileCheck } from 'lucide-react' import { cn } from '@/lib/utils' import { useToast } from '@/components/ui/Toast' // 代理商数据 const mockAgency = { name: '星辰传媒', initial: '星', agencyId: 'AG789012', // 代理商ID companyName: '上海星辰文化传媒有限公司', role: '官方认证代理商', stats: { creators: 156, // 管理达人数 reviewed: 1280, // 累计审核数 passRate: 88, // 通过率 monthlyTasks: 45, // 本月任务 }, } // 菜单项数据 const menuItems = [ { id: 'company', icon: Building2, iconColor: 'text-accent-indigo', bgColor: 'bg-accent-indigo', title: '公司信息', subtitle: '公司名称、营业执照、联系方式', }, { id: 'personal', icon: CircleUser, iconColor: 'text-accent-blue', bgColor: 'bg-accent-blue', title: '个人信息', subtitle: '头像、昵称、负责人信息', }, { id: 'account', icon: Settings, iconColor: 'text-accent-green', bgColor: 'bg-accent-green', title: '账户设置', subtitle: '修改密码、账号安全', }, { id: 'notification', icon: BellRing, iconColor: 'text-accent-amber', bgColor: 'bg-accent-amber', title: '消息设置', subtitle: '通知开关、提醒偏好', }, { id: 'history', icon: History, iconColor: 'text-accent-coral', bgColor: 'bg-accent-coral', title: '审核历史', subtitle: '查看历史审核记录', }, { id: 'help', icon: MessageCircleQuestion, iconColor: 'text-text-secondary', bgColor: 'bg-bg-elevated', title: '帮助与反馈', subtitle: '常见问题、联系客服', }, ] // 代理商卡片组件 function AgencyCard() { const toast = useToast() const [copied, setCopied] = useState(false) // 复制代理商ID const handleCopyId = async () => { try { await navigator.clipboard.writeText(mockAgency.agencyId) setCopied(true) setTimeout(() => setCopied(false), 2000) } catch { toast.error('复制失败,请重试') } } return (
管理代理商账户信息和偏好设置