From 964797d2e95138011eea682f09b1e12750d2b338 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 6 Feb 2026 17:40:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=8C=E5=96=84=E5=93=81=E7=89=8C?= =?UTF-8?q?=E6=96=B9=E5=92=8C=E4=BB=A3=E7=90=86=E5=95=86=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 品牌方功能: - 项目看板: 添加截止日期编辑功能 - 项目详情: 添加代理商管理、截止日期编辑、最近任务显示代理商 - 项目创建: 代理商选择支持搜索(名称/ID/公司名) - 代理商管理: 通过ID邀请、添加备注/分配项目/移除操作 - Brief配置: 新增项目级Brief和规则配置页面 - 系统设置: 完善账户安全(密码/2FA/邮箱/手机/设备管理)、数据导出、退出登录 代理商功能: - 个人中心: 新增代理商ID展示、公司信息(企业验证)、个人信息编辑 - 账户设置: 密码修改、手机/邮箱绑定、两步验证 - 通知设置: 分类型和渠道的通知开关 - 审核历史: 搜索筛选和统计展示 - 帮助反馈: FAQ分类搜索和客服联系 Co-Authored-By: Claude Opus 4.5 --- frontend/app/agency/help/page.tsx | 292 ++++++++ frontend/app/agency/profile/company/page.tsx | 674 ++++++++++++++++++ frontend/app/agency/profile/edit/page.tsx | 194 +++++ frontend/app/agency/profile/page.tsx | 292 ++++++++ frontend/app/agency/review/history/page.tsx | 291 ++++++++ frontend/app/agency/settings/account/page.tsx | 240 +++++++ .../app/agency/settings/notification/page.tsx | 244 +++++++ frontend/app/brand/agencies/page.tsx | 478 +++++++++++-- frontend/app/brand/page.tsx | 118 ++- .../app/brand/projects/[id]/config/page.tsx | 564 +++++++++++++++ frontend/app/brand/projects/[id]/page.tsx | 381 +++++++++- frontend/app/brand/projects/create/page.tsx | 124 +++- frontend/app/brand/settings/page.tsx | 610 +++++++++++++++- frontend/components/navigation/Sidebar.tsx | 1 + 14 files changed, 4349 insertions(+), 154 deletions(-) create mode 100644 frontend/app/agency/help/page.tsx create mode 100644 frontend/app/agency/profile/company/page.tsx create mode 100644 frontend/app/agency/profile/edit/page.tsx create mode 100644 frontend/app/agency/profile/page.tsx create mode 100644 frontend/app/agency/review/history/page.tsx create mode 100644 frontend/app/agency/settings/account/page.tsx create mode 100644 frontend/app/agency/settings/notification/page.tsx create mode 100644 frontend/app/brand/projects/[id]/config/page.tsx diff --git a/frontend/app/agency/help/page.tsx b/frontend/app/agency/help/page.tsx new file mode 100644 index 0000000..fe5b263 --- /dev/null +++ b/frontend/app/agency/help/page.tsx @@ -0,0 +1,292 @@ +'use client' + +import { useState } from 'react' +import { useRouter } from 'next/navigation' +import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/Card' +import { Button } from '@/components/ui/Button' +import { + ArrowLeft, + MessageCircleQuestion, + ChevronDown, + ChevronUp, + Search, + FileText, + Video, + Users, + BarChart3, + MessageSquare, + Headphones, + Mail, + Phone +} from 'lucide-react' + +// FAQ类型 +interface FAQ { + id: string + category: string + question: string + answer: string +} + +// FAQ数据 +const faqData: FAQ[] = [ + { + id: 'faq-1', + category: '审核相关', + question: '如何查看待审核的任务?', + answer: '进入"审核台"页面,您可以看到所有待审核的脚本和视频任务。系统会按照紧急程度和提交时间排序,优先显示即将超时的任务。', + }, + { + id: 'faq-2', + category: '审核相关', + question: 'AI审核标记的问题一定要处理吗?', + answer: 'AI审核结果仅供参考。作为代理商,您可以根据实际情况判断AI标记的问题是否需要驳回。如果您认为AI误判,可以直接通过该内容。', + }, + { + id: 'faq-3', + category: '达人管理', + question: '如何邀请新达人加入?', + answer: '进入"达人管理"页面,点击"邀请达人"按钮,输入达人的ID(CR开头的6位数字),系统会发送邀请通知给达人。达人确认后即可加入您的团队。', + }, + { + id: 'faq-4', + category: '达人管理', + question: '如何给达人分配项目?', + answer: '在达人管理列表中,点击达人卡片右侧的操作菜单,选择"分配项目",然后选择要分配的项目即可。', + }, + { + id: 'faq-5', + category: '申诉处理', + question: '达人申诉后多久需要处理?', + answer: '建议在24小时内处理达人的申诉请求。超时未处理的申诉会自动升级提醒。您可以在"申诉处理"页面查看所有待处理的申诉。', + }, + { + id: 'faq-6', + category: '申诉处理', + question: '申诉通过后会发生什么?', + answer: '申诉通过后,原审核问题会被撤销,任务状态会更新为"已通过",达人可以继续进行下一步操作。同时系统会通知达人申诉结果。', + }, + { + id: 'faq-7', + category: '数据报表', + question: '如何导出审核数据?', + answer: '进入"数据报表"页面,选择需要的时间范围,然后点击"导出报表"按钮。支持导出Excel、CSV和PDF格式。', + }, + { + id: 'faq-8', + category: '账号相关', + question: '如何修改代理商信息?', + answer: '进入"个人中心",点击"公司信息"可以修改公司名称、联系方式等信息。注意:公司全称和营业执照信息修改需要重新审核。', + }, +] + +// 分类图标配置 +const categoryIcons: Record = { + '审核相关': { icon: FileText, color: 'text-accent-indigo' }, + '达人管理': { icon: Users, color: 'text-accent-green' }, + '申诉处理': { icon: MessageSquare, color: 'text-accent-amber' }, + '数据报表': { icon: BarChart3, color: 'text-accent-blue' }, + '账号相关': { icon: Users, color: 'text-purple-400' }, +} + +// FAQ Item组件 +function FAQItem({ faq }: { faq: FAQ }) { + const [isOpen, setIsOpen] = useState(false) + const categoryConfig = categoryIcons[faq.category] || { icon: MessageCircleQuestion, color: 'text-text-secondary' } + const Icon = categoryConfig.icon + + return ( +
+ + {isOpen && ( +
+

{faq.answer}

+
+ )} +
+ ) +} + +export default function AgencyHelpPage() { + const router = useRouter() + const [searchQuery, setSearchQuery] = useState('') + const [selectedCategory, setSelectedCategory] = useState('全部') + + // 获取所有分类 + const categories = ['全部', ...Array.from(new Set(faqData.map(f => f.category)))] + + // 筛选FAQ + const filteredFAQ = faqData.filter(faq => { + const matchesSearch = searchQuery === '' || + faq.question.toLowerCase().includes(searchQuery.toLowerCase()) || + faq.answer.toLowerCase().includes(searchQuery.toLowerCase()) + const matchesCategory = selectedCategory === '全部' || faq.category === selectedCategory + return matchesSearch && matchesCategory + }) + + return ( +
+ {/* 顶部导航 */} +
+ +
+

帮助与反馈

+

常见问题解答和联系客服

+
+
+ +
+ {/* 左侧:FAQ */} +
+ {/* 搜索 */} +
+ + setSearchQuery(e.target.value)} + className="w-full pl-11 pr-4 py-3 border border-border-subtle rounded-xl bg-bg-card text-text-primary focus:outline-none focus:ring-2 focus:ring-accent-indigo" + /> +
+ + {/* 分类筛选 */} +
+ {categories.map((cat) => ( + + ))} +
+ + {/* FAQ列表 */} + + + + + 常见问题 + + + + {filteredFAQ.length > 0 ? ( + filteredFAQ.map((faq) => ( + + )) + ) : ( +
+ +

没有找到相关问题

+
+ )} +
+
+
+ + {/* 右侧:联系客服 */} +
+ {/* 在线客服 */} + + + + + 联系客服 + + + +

+ 如果您的问题未在FAQ中找到答案,可以通过以下方式联系我们 +

+ +
+
+
+ +
+
+

在线客服

+

工作日 9:00-18:00

+
+ +
+ +
+
+ +
+
+

客服热线

+

400-888-8888

+
+
+ +
+
+ +
+
+

邮件支持

+

support@miaosi.com

+
+
+
+
+
+ + {/* 意见反馈 */} + + + 意见反馈 + + +