From d7f27e428b2aa57df433ce143dd7ebbba7e53c7d Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Wed, 5 Nov 2025 09:06:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8E=BB=E6=8E=89=E5=B8=82=E5=9C=BA?= =?UTF-8?q?=E5=A4=8D=E7=9B=98=E7=9B=B8=E5=85=B3=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Community/index.js | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/src/views/Community/index.js b/src/views/Community/index.js index de907466..d7c01dde 100644 --- a/src/views/Community/index.js +++ b/src/views/Community/index.js @@ -17,7 +17,6 @@ import { // 导入组件 import EventTimelineCard from './components/EventTimelineCard'; import DynamicNewsCard from './components/DynamicNewsCard'; -import MarketReviewCard from './components/MarketReviewCard'; import HotEventsSection from './components/HotEventsSection'; import EventModals from './components/EventModals'; @@ -26,13 +25,6 @@ import { useEventData } from './hooks/useEventData'; import { useEventFilters } from './hooks/useEventFilters'; import { useCommunityEvents } from './hooks/useCommunityEvents'; -// 导入时间工具函数 -import { - getCurrentTradingTimeRange, - getMarketReviewTimeRange, - filterEventsByTimeRange -} from '../../utils/tradingTimeUtils'; - import { logger } from '../../utils/logger'; import { useNotification } from '../../contexts/NotificationContext'; import { usePostHogTrack } from '../../hooks/usePostHogRedux'; @@ -82,21 +74,6 @@ const Community = () => { const { events, pagination, loading, lastUpdateTime } = useEventData(filters); - // 计算市场复盘的时间范围和过滤后的事件 - const marketReviewData = useMemo(() => { - const timeRange = getMarketReviewTimeRange(); - const filteredEvents = filterEventsByTimeRange(events, timeRange.startTime, timeRange.endTime); - logger.debug('Community', '市场复盘时间范围', { - description: timeRange.description, - rangeType: timeRange.rangeType, - eventCount: filteredEvents.length - }); - return { - events: filteredEvents, - timeRange - }; - }, [events]); - // 加载热门关键词和热点事件(动态新闻由 DynamicNewsCard 内部管理) useEffect(() => { dispatch(fetchPopularKeywords()); @@ -203,17 +180,6 @@ const Community = () => { onViewDetail={handleViewDetail} /> - {/* 市场复盘 - 左右布局 */} - {/* {}} - /> */} - {/* 实时事件 - 原纵向列表 */} {/*