From 990ca3663e935185f0946a6752f1b3472676187b Mon Sep 17 00:00:00 2001 From: zzlgreat Date: Sat, 22 Nov 2025 07:24:55 +0800 Subject: [PATCH] update pay function --- src/components/Navbars/HomeNavbar.js | 7 +- src/views/AgentChat/index.js | 194 +++++++++++---------------- 2 files changed, 79 insertions(+), 122 deletions(-) diff --git a/src/components/Navbars/HomeNavbar.js b/src/components/Navbars/HomeNavbar.js index 4af73df8..2ad588e1 100644 --- a/src/components/Navbars/HomeNavbar.js +++ b/src/components/Navbars/HomeNavbar.js @@ -54,13 +54,11 @@ import { WatchlistMenu, FollowingEventsMenu } from './components/FeatureMenus'; import { useWatchlist } from '../../hooks/useWatchlist'; import { useFollowingEvents } from '../../hooks/useFollowingEvents'; -// Phase 7 优化: 提取的二级导航、资料完整性、右侧功能区组件 -import SecondaryNav from './components/SecondaryNav'; +// Phase 7 优化: 提取的资料完整性、右侧功能区组件 import ProfileCompletenessAlert from './components/ProfileCompletenessAlert'; import { useProfileCompleteness } from '../../hooks/useProfileCompleteness'; import NavbarActions from './components/NavbarActions'; -// Phase 7: SecondaryNav 组件已提取到 ./components/SecondaryNav/index.js // Phase 4: MoreNavMenu 和 NavItems 组件已提取到 Navigation 目录 export default function HomeNavbar() { @@ -207,9 +205,6 @@ export default function HomeNavbar() { /> - {/* 二级导航栏 - 显示当前页面所属的二级菜单 */} - {!isMobile && } - {/* 投资日历 Modal - 已移至 CalendarButton 组件内部 */} ); diff --git a/src/views/AgentChat/index.js b/src/views/AgentChat/index.js index aefca8af..6a1ce0e2 100644 --- a/src/views/AgentChat/index.js +++ b/src/views/AgentChat/index.js @@ -980,127 +980,89 @@ const AgentChatV4 = () => { {/* 主聊天区域 */} - {/* 聊天头部 */} - - - - - - - - - - 价小前投研 - - - - AI 深度分析 - - - - {AVAILABLE_MODELS.find(m => m.id === selectedModel)?.name || '智能模型'} - - - - - - } - size="sm" - variant="ghost" - color={goldAccent} - _hover={{ bg: 'rgba(255, 215, 0, 0.1)' }} - aria-label="历史对话" - onClick={toggleSidebar} - /> - } - size="sm" - variant="ghost" - color={textGray} - _hover={{ color: goldAccent, bg: 'rgba(255, 215, 0, 0.1)' }} - aria-label="清空对话" - onClick={handleClearChat} - /> - } - size="sm" - variant="ghost" - color={textGray} - _hover={{ color: goldAccent, bg: 'rgba(255, 215, 0, 0.1)' }} - aria-label="导出对话" - onClick={handleExportChat} - display={{ base: "none", sm: "inline-flex" }} - /> - } - size="sm" - variant="ghost" - color={goldAccent} - _hover={{ bg: 'rgba(255, 215, 0, 0.1)' }} - aria-label="设置" - onClick={toggleRightPanel} - /> - - - - {/* 进度条 */} - {isProcessing && ( - div': { - background: goldGradient, - }, - }} - isAnimated + {/* 左侧 - 标题和模型显示 */} + + } + size="sm" + variant="ghost" + color={goldAccent} + _hover={{ bg: 'rgba(255, 215, 0, 0.1)' }} + aria-label="历史对话" + onClick={toggleSidebar} /> - )} - + + 价小前 AI + + + {AVAILABLE_MODELS.find(m => m.id === selectedModel)?.name || '智能模型'} + + + + {/* 右侧 - 操作按钮 */} + + } + size="sm" + variant="ghost" + color={textGray} + _hover={{ color: goldAccent, bg: 'rgba(255, 215, 0, 0.1)' }} + aria-label="清空对话" + onClick={handleClearChat} + /> + } + size="sm" + variant="ghost" + color={textGray} + _hover={{ color: goldAccent, bg: 'rgba(255, 215, 0, 0.1)' }} + aria-label="导出对话" + onClick={handleExportChat} + /> + } + size="sm" + variant="ghost" + color={goldAccent} + _hover={{ bg: 'rgba(255, 215, 0, 0.1)' }} + aria-label="设置" + onClick={toggleRightPanel} + /> + + + + {/* 进度条 */} + {isProcessing && ( + div': { + background: goldGradient, + }, + }} + isAnimated + /> + )} {/* 消息列表 */}