From 2f580c3c1ffcde7c1eed3426b9d9ee9642d65959 Mon Sep 17 00:00:00 2001 From: zzlgreat Date: Wed, 3 Dec 2025 08:29:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DCommunity=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=BA=8B=E4=BB=B6=E5=8D=A1=E7=89=87=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=EF=BC=8C=E6=9B=BF=E6=8D=A2StockChangeIndicators=E4=B8=BAEventP?= =?UTF-8?q?riceDisplay?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - HorizontalDynamicNewsEventCard 使用 EventPriceDisplay 替换 StockChangeIndicators - 移除周涨幅、平均涨幅,改为显示最大超额和超预期得分 - 点击最大超额可切换显示平均超额 --- .../EventCard/HorizontalDynamicNewsEventCard.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/views/Community/components/EventCard/HorizontalDynamicNewsEventCard.js b/src/views/Community/components/EventCard/HorizontalDynamicNewsEventCard.js index b8228cad..ae7143c1 100644 --- a/src/views/Community/components/EventCard/HorizontalDynamicNewsEventCard.js +++ b/src/views/Community/components/EventCard/HorizontalDynamicNewsEventCard.js @@ -22,7 +22,7 @@ import dayjs from 'dayjs'; import ImportanceStamp from './ImportanceStamp'; import EventTimeline from './EventTimeline'; import EventFollowButton from './EventFollowButton'; -import StockChangeIndicators from '../../../../components/StockChangeIndicators'; +import EventPriceDisplay from './EventPriceDisplay'; import KeywordsCarousel from './KeywordsCarousel'; /** @@ -38,7 +38,6 @@ import KeywordsCarousel from './KeywordsCarousel'; * @param {Function} props.onToggleFollow - 切换关注事件 * @param {Object} props.timelineStyle - 时间轴样式配置 * @param {string} props.borderColor - 边框颜色 - * @param {string} props.indicatorSize - 涨幅指标尺寸 ('default' | 'comfortable' | 'large') * @param {string} props.layout - 布局模式 ('vertical' | 'four-row'),影响时间轴竖线高度 */ const HorizontalDynamicNewsEventCard = React.memo(({ @@ -52,7 +51,6 @@ const HorizontalDynamicNewsEventCard = React.memo(({ onToggleFollow, timelineStyle, borderColor: timelineBorderColor, - indicatorSize = 'comfortable', layout = 'vertical', }) => { const importance = getImportanceConfig(event.importance); @@ -245,12 +243,12 @@ const HorizontalDynamicNewsEventCard = React.memo(({ - {/* 第二行:涨跌幅数据 */} -