From 25d3bf4d95d1e1526e241bbdb80c216896af9373 Mon Sep 17 00:00:00 2001 From: zzlgreat Date: Fri, 7 Nov 2025 11:08:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E4=B8=AD=E5=BF=83UI=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/EventCard/DynamicNewsEventCard.js | 11 +++++------ src/views/Community/components/UnifiedSearchBox.js | 11 ++++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/views/Community/components/EventCard/DynamicNewsEventCard.js b/src/views/Community/components/EventCard/DynamicNewsEventCard.js index 71806135..cfc31d3a 100644 --- a/src/views/Community/components/EventCard/DynamicNewsEventCard.js +++ b/src/views/Community/components/EventCard/DynamicNewsEventCard.js @@ -193,8 +193,11 @@ const DynamicNewsEventCard = ({ const periodLabel = getPeriodLabel(tradingPeriod); return ( - - + + {/* 右上角:重要性印章(放在卡片外层) */} + + + {/* 事件卡片 */} onEventClick?.(event)} > - {/* 右上角:重要性印章 */} - - - {/* 时间标签 - 在卡片上方,宽度自适应,左对齐 */} 0) { - const importanceLabel = importance.map(imp => `${imp}级`).join(', '); + const importanceMap = { 'S': '极高', 'A': '高', 'B': '中', 'C': '低' }; + const importanceLabel = importance.map(imp => importanceMap[imp] || imp).join(', '); tags.push({ key: 'importance', label: `重要性: ${importanceLabel}` }); } @@ -681,10 +682,10 @@ const UnifiedSearchBox = ({ placeholder="全部" maxTagCount={3} > - - - - + + + +