From d60dfe45aceda78144074e51749940c1045b7048 Mon Sep 17 00:00:00 2001 From: zzlgreat Date: Wed, 7 Jan 2026 12:28:18 +0800 Subject: [PATCH] =?UTF-8?q?community=E5=A2=9E=E5=8A=A0=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Community/components/HeroPanel.js | 23 ++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/src/views/Community/components/HeroPanel.js b/src/views/Community/components/HeroPanel.js index 9916c43b..a4d163e4 100644 --- a/src/views/Community/components/HeroPanel.js +++ b/src/views/Community/components/HeroPanel.js @@ -575,17 +575,26 @@ const DetailModal = ({ isOpen, onClose, selectedDate, ztDetail, events, loading title: '相关股票', dataIndex: 'related_stocks', key: 'stocks', - width: 100, + width: 120, render: (stocks) => { const hasStocks = stocks && stocks.length > 0; + if (!hasStocks) { + return ; + } + // 构建股票列表内容 + const stockContent = stocks.map(s => { + const code = s.stock_code || s.code || s; + const name = s.stock_name || s.name || code; + return `${name}(${code})`; + }).join('\n'); return ( ); }, @@ -706,12 +715,12 @@ const DetailModal = ({ isOpen, onClose, selectedDate, ztDetail, events, loading )} - {/* 投资事件 Tab */} + {/* 未来事件 Tab */} - 投资事件 ({events?.length || 0}) + 未来事件 ({events?.length || 0}) } key="event" @@ -1227,7 +1236,7 @@ const InfoModal = () => { 📅 综合日历 日历同时展示历史涨停数据和 - 未来投资事件, + 未来事件, 点击日期查看详细信息。 @@ -1240,7 +1249,7 @@ const InfoModal = () => { - 📊 投资事件 + 📊 未来事件 点击未来日期,查看事件详情,包括背景分析未来推演