From f0549872418f9107b18d710104d73d23f8b5b5c6 Mon Sep 17 00:00:00 2001 From: zzlgreat Date: Fri, 9 Jan 2026 08:01:53 +0800 Subject: [PATCH] =?UTF-8?q?heropanel=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Community/components/EventDailyStats.js | 15 +++ src/views/Community/components/HeroPanel.js | 107 +++++++++++++----- 2 files changed, 96 insertions(+), 26 deletions(-) diff --git a/src/views/Community/components/EventDailyStats.js b/src/views/Community/components/EventDailyStats.js index 740c6b7a..d59b5069 100644 --- a/src/views/Community/components/EventDailyStats.js +++ b/src/views/Community/components/EventDailyStats.js @@ -465,6 +465,21 @@ const EventDailyStats = () => { )} + {/* 今天按钮 - 仅在查看历史时显示 */} + {!isToday && ( + setSelectedDate('')} + > + 今天 + + )} { ); }; +/** + * 右侧 Tab 面板 - 连板情绪监测 / 综合日历 + */ +const RightPanelTabs = () => { + const [activeTab, setActiveTab] = useState('comet'); + + return ( + + {/* Tab 切换头 */} + + setActiveTab('comet')} + > + + + 连板情绪监测 + + + setActiveTab('calendar')} + > + + + 事件日历 + + + + + {/* Tab 内容区域 */} + + {activeTab === 'comet' ? ( + + ) : ( + + )} + + + ); +}; + /** * 使用说明弹窗组件 */ @@ -2710,36 +2785,16 @@ const HeroPanel = () => { - {/* AI舆情时空决策驾驶舱 - 左侧连板情绪,中间今日统计,右侧日历 */} + {/* AI舆情时空决策驾驶舱 - 左侧今日统计(2/5),右侧Tab切换(3/5) */} - {/* 左侧:连板情绪监测 */} - - { - // 当用户点击某个主题时,可以展示相关股票 - if (data?.stocks?.length > 0) { - setSelectedSectorInfo({ - name: data.theme.label, - count: data.stocks.length, - stocks: data.stocks.map((s) => ({ - ...s, - _continuousDays: parseInt(s.continuous_days) || 1, - })), - }); - setSectorStocksModalVisible(true); - } - }} - /> - - - {/* 中间:今日事件统计 */} - + {/* 左侧:今日事件统计 */} + - {/* 右侧:综合日历 */} - - + {/* 右侧:连板情绪 / 日历 Tab 切换 */} + +