diff --git a/Touchkebao/src/pages/pc/ckbox/components/NavCommon/index.data.ts b/Touchkebao/src/pages/pc/ckbox/components/NavCommon/index.data.ts index bdc0fb8b..5404b4f6 100644 --- a/Touchkebao/src/pages/pc/ckbox/components/NavCommon/index.data.ts +++ b/Touchkebao/src/pages/pc/ckbox/components/NavCommon/index.data.ts @@ -8,18 +8,24 @@ export interface MenuItem { // 菜单列表数据 export const menuList: MenuItem[] = [ - { - id: "dashboard", - title: "数据面板", - icon: "📊", - path: "/pc/dashboard", - }, { id: "wechat", title: "微信管理", icon: "💬", path: "/pc/weChat", }, + { + id: "powerCenter", + title: "功能中心", + icon: "📊", + path: "/pc/powerCenter", + }, + { + id: "dashboard", + title: "数据面板", + icon: "📊", + path: "/pc/dashboard", + }, ]; // 抽屉菜单配置数据 @@ -29,10 +35,6 @@ export const drawerMenuData = { appName: "触客宝", appDesc: "AI智能营销系统", }, - primaryButton: { - title: "AI智能客服", - icon: "🔒", - }, footer: { balanceIcon: "⚡", balanceLabel: "算力余额", diff --git a/Touchkebao/src/pages/pc/ckbox/components/NavCommon/index.module.scss b/Touchkebao/src/pages/pc/ckbox/components/NavCommon/index.module.scss index 75333cfb..ceb7d1c3 100644 --- a/Touchkebao/src/pages/pc/ckbox/components/NavCommon/index.module.scss +++ b/Touchkebao/src/pages/pc/ckbox/components/NavCommon/index.module.scss @@ -142,7 +142,6 @@ .drawerBody { flex: 1; - padding: 20px; display: flex; flex-direction: column; gap: 16px; diff --git a/Touchkebao/src/pages/pc/ckbox/components/NavCommon/index.tsx b/Touchkebao/src/pages/pc/ckbox/components/NavCommon/index.tsx index e959e9b2..c3161f23 100644 --- a/Touchkebao/src/pages/pc/ckbox/components/NavCommon/index.tsx +++ b/Touchkebao/src/pages/pc/ckbox/components/NavCommon/index.tsx @@ -22,7 +22,6 @@ const NavCommon: React.FC = ({ const navigate = useNavigate(); const { userInfo } = useCkChatStore(); const { user } = useUserStore(); - console.log(user); // 处理菜单图标点击 const handleMenuClick = () => { @@ -54,12 +53,6 @@ const NavCommon: React.FC = ({
-
-
- {drawerMenuData.primaryButton.icon} -
- {drawerMenuData.primaryButton.title} -
{menuList.map((item, index) => (
{ + const navigate = useNavigate(); + + const featureCards: FeatureCard[] = [ + { + id: "precision-send", + title: "精准群发", + description: "基于客户标签和行为数据进行精准群发", + icon: , + color: "#ff6b35", + path: "/pc/ckbox/precision-send", + }, + { + id: "sop-send", + title: "SOP群发", + description: "使用触客宝SOP标准化流程进行批量消息发送", + icon: , + color: "#4285f4", + path: "/pc/ckbox/sop-send", + }, + { + id: "moments-marketing", + title: "朋友圈营销", + description: "AI智能生成朋友圈内容,提升品牌曝光度", + icon: , + color: "#34a853", + path: "/pc/ckbox/moments-marketing", + }, + { + id: "tag-management", + title: "标签管理", + description: "智能客户标签分类,精准用户画像分析", + icon: , + color: "#9c27b0", + path: "/pc/ckbox/tag-management", + }, + { + id: "customer-management", + title: "客户好友管理", + description: "统一管理客户信息和好友关系,提升服务效率", + icon: , + color: "#6366f1", + path: "/pc/ckbox/customer-management", + }, + { + id: "communication-record", + title: "沟通记录", + description: "完整记录客户沟通历史,支持多维度查询分析", + icon: , + color: "#06b6d4", + path: "/pc/ckbox/communication-record", + }, + { + id: "content-management", + title: "内容管理", + description: "素材管理、数据词汇库、关键词自动回复", + icon: , + color: "#f59e0b", + path: "/pc/ckbox/content-management", + }, + { + id: "ai-training", + title: "AI模型训练", + description: "自定义AI模型训练,打造专属智能客服助手", + icon: , + color: "#ec4899", + path: "/pc/ckbox/ai-training", + isNew: true, + }, + { + id: "auto-greeting", + title: "自动打招呼", + description: "智能识别新好友,自动发送个性化欢迎消息", + icon: , + color: "#10b981", + path: "/pc/ckbox/auto-greeting", + }, + ]; + + const handleCardClick = (card: FeatureCard) => { + if (card.path) { + navigate(card.path); + } + }; + + const tabItems = [ + { key: "all", label: "全部功能", active: true }, + { key: "marketing", label: "营销推广" }, + { key: "customer", label: "客户管理" }, + { key: "ai", label: "AI智能" }, + { key: "content", label: "内容管理" }, + { key: "data", label: "数据分析" }, + ]; + + return ( +
+ {/* 页面头部 */} +
+
+

功能中心

+

触客宝AI私域营销系统 - 所有功能一览

+
+
+ + {tabItems.map(item => ( + + ))} + +
+
+ + {/* 功能卡片网格 */} +
+ + {featureCards.map(card => ( + + handleCardClick(card)} + bodyStyle={{ padding: "24px" }} + > +
+
+
{card.icon}
+
+
+

+ {card.title} + {card.isNew && ( + 新功能 + )} +

+

{card.description}

+
+
+
+ + ))} +
+
+
+ ); +}; + +export default PowerCenter; diff --git a/Touchkebao/src/pages/pc/ckbox/weChat/components/ChatWindow/index.tsx b/Touchkebao/src/pages/pc/ckbox/weChat/components/ChatWindow/index.tsx index 143198f6..6077ff79 100644 --- a/Touchkebao/src/pages/pc/ckbox/weChat/components/ChatWindow/index.tsx +++ b/Touchkebao/src/pages/pc/ckbox/weChat/components/ChatWindow/index.tsx @@ -26,26 +26,6 @@ const ChatWindow: React.FC = ({ contract }) => { const onToggleProfile = () => { setShowProfile(!showProfile); }; - const chatMenu = ( - - }> - 查看资料 - - }> - 语音通话 - - }> - 视频通话 - - - 置顶聊天 - 消息免打扰 - - - 清空聊天记录 - - - ); return ( @@ -76,13 +56,6 @@ const ChatWindow: React.FC = ({ contract }) => { className={styles.headerButton} /> - -