diff --git a/src/views/Concept/components/ConceptStatsPanel.js b/src/views/Concept/components/ConceptStatsPanel.js index 8c81a55a..7f49f4a4 100644 --- a/src/views/Concept/components/ConceptStatsPanel.js +++ b/src/views/Concept/components/ConceptStatsPanel.js @@ -38,14 +38,10 @@ import { import { FaArrowUp, FaArrowDown, - FaFire, FaChartLine, FaNewspaper, FaRocket, - FaBolt, - FaEye, FaCrown, - FaThermometerHalf, } from 'react-icons/fa'; import { BsLightningFill, BsGraphUp, BsGraphDown } from 'react-icons/bs'; @@ -153,13 +149,6 @@ const ConceptStatsPanel = ({ apiBaseUrl, onConceptClick }) => { { name: '钢铁冶炼', change_pct: -4.21, stock_count: 28, news_count: 9 }, { name: '纺织服装', change_pct: -3.98, stock_count: 15, news_count: 4 }, ], - active_concepts: [ - { name: '人工智能', news_count: 89, report_count: 15, total_mentions: 104 }, - { name: '芯片概念', news_count: 76, report_count: 12, total_mentions: 88 }, - { name: '新能源汽车', news_count: 65, report_count: 18, total_mentions: 83 }, - { name: '生物医药', news_count: 54, report_count: 9, total_mentions: 63 }, - { name: '量子科技', news_count: 41, report_count: 7, total_mentions: 48 }, - ], volatile_concepts: [ { name: '区块链', volatility: 23.45, avg_change: 3.21, max_change: 12.34 }, { name: '元宇宙', volatility: 21.87, avg_change: 2.98, max_change: 11.76 }, @@ -453,89 +442,6 @@ const ConceptStatsPanel = ({ apiBaseUrl, onConceptClick }) => { ), }, - { - label: '活跃榜', - icon: FaFire, - color: 'orange', - data: statsData.active_concepts, - renderItem: (item, index) => ( - onConceptClick?.(null, item.name)} - > - - - - {index + 1} - - {index === 0 && ( - - )} - - - - {item.name} - - - - - {item.news_count} - - · - - - {item.report_count} - - - - - - - {item.total_mentions} - - - ), - }, { label: '波动榜', icon: BsLightningFill, @@ -879,7 +785,7 @@ const ConceptStatsPanel = ({ apiBaseUrl, onConceptClick }) => { { - const tabNames = ['涨幅榜', '跌幅榜', '活跃榜', '波动榜', '连涨榜']; + const tabNames = ['涨幅榜', '跌幅榜', '波动榜', '连涨榜']; // 🎯 追踪Tab切换 trackTabChanged(index, tabNames[index]); setActiveTab(index); diff --git a/src/views/Concept/components/HierarchyView.js b/src/views/Concept/components/HierarchyView.js index c7281814..c61c199e 100644 --- a/src/views/Concept/components/HierarchyView.js +++ b/src/views/Concept/components/HierarchyView.js @@ -802,94 +802,56 @@ const HierarchyView = ({ right={isFullscreen ? 0 : 'auto'} bottom={isFullscreen ? 0 : 'auto'} zIndex={isFullscreen ? 1000 : 'auto'} - bg="slate.950" - bgGradient="linear(to-br, gray.900, slate.900, gray.900)" - p={{ base: 3, md: 5 }} - borderRadius={isFullscreen ? '0' : '3xl'} - overflow={isFullscreen ? 'auto' : 'hidden'} - minH="500px" + bg={isFullscreen ? 'slate.950' : 'transparent'} + bgGradient={isFullscreen ? 'linear(to-br, gray.900, slate.900, gray.900)' : undefined} + p={{ base: 0, md: 0 }} + borderRadius={isFullscreen ? '0' : '0'} + overflow={isFullscreen ? 'auto' : 'visible'} + minH="auto" > - {/* 极光背景 */} - + {/* 极光背景 - 仅全屏时显示 */} + {isFullscreen && } {/* 内容层 */} - {/* 工具栏 */} + {/* 简化的工具栏 - 仅显示功能按钮 */} - - + )} + + } + onClick={handleRefreshPrice} + isLoading={priceLoading} bg="whiteAlpha.100" - borderRadius="xl" - backdropFilter="blur(10px)" + color="white" border="1px solid" borderColor="whiteAlpha.200" - > - - - - - {getCurrentTitle()} - - - - {getLevelDesc()} · {currentData.length} 项 - - {tradeDate && ( - - {tradeDate} - - )} - - - {priceLoading && ( - - )} - + _hover={{ bg: 'whiteAlpha.200' }} + aria-label="刷新涨跌幅" + /> + - - - } - onClick={handleRefreshPrice} - isLoading={priceLoading} - bg="whiteAlpha.100" - color="white" - border="1px solid" - borderColor="whiteAlpha.200" - _hover={{ bg: 'whiteAlpha.200' }} - aria-label="刷新涨跌幅" - /> - - - - : } - onClick={toggleFullscreen} - bg="whiteAlpha.100" - color="white" - border="1px solid" - borderColor="whiteAlpha.200" - _hover={{ bg: 'whiteAlpha.200' }} - aria-label={isFullscreen ? '退出全屏' : '全屏'} - /> - - + + : } + onClick={toggleFullscreen} + bg="whiteAlpha.100" + color="white" + border="1px solid" + borderColor="whiteAlpha.200" + _hover={{ bg: 'whiteAlpha.200' }} + aria-label={isFullscreen ? '退出全屏' : '全屏'} + /> + {/* 面包屑导航 */} @@ -967,38 +929,6 @@ const HierarchyView = ({ ))} - {/* 统计信息 */} - - - 当前显示 {currentData.length} 个{getLevelDesc()} - - {currentLevel === 'lv1' && ( - - 共 {hierarchy.reduce((acc, h) => acc + h.concept_count, 0)} 个概念 - - )} - );