From 30fc156474702bff54b74bea1dd14761ff939768 Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Wed, 26 Nov 2025 16:23:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E5=8A=A8=E7=AB=AF=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E4=B8=AD=E5=BF=83=E4=BA=8B=E4=BB=B6=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../HorizontalDynamicNewsEventCard.js | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/src/views/Community/components/EventCard/HorizontalDynamicNewsEventCard.js b/src/views/Community/components/EventCard/HorizontalDynamicNewsEventCard.js index 5ed34b71..9d9b94a7 100644 --- a/src/views/Community/components/EventCard/HorizontalDynamicNewsEventCard.js +++ b/src/views/Community/components/EventCard/HorizontalDynamicNewsEventCard.js @@ -16,6 +16,7 @@ import { import { getImportanceConfig } from '../../../../constants/importanceLevels'; import { PROFESSIONAL_COLORS } from '../../../../constants/professionalTheme'; import { useDevice } from '@hooks/useDevice'; +import dayjs from 'dayjs'; // 导入子组件 import ImportanceStamp from './ImportanceStamp'; @@ -161,6 +162,33 @@ const HorizontalDynamicNewsEventCard = React.memo(({ onClick={() => onEventClick?.(event)} > + {/* 左上角:移动端时间显示 */} + {isMobile && ( + + + {dayjs(event.created_at).format('MM-DD HH:mm')} + + + )} + {/* 右上角:关注按钮 */} onTitleClick?.(e, event)} mt={1} paddingRight={titlePaddingRight} + paddingLeft={isMobile ? '70px' : undefined} >