From 760ce4d5e1e7c79a277330f58c1c95686476bf32 Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Mon, 27 Oct 2025 22:31:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B7=AF=E7=94=B1=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Home/HomePage.js | 70 ++++++++++++++++---------------------- 1 file changed, 30 insertions(+), 40 deletions(-) diff --git a/src/views/Home/HomePage.js b/src/views/Home/HomePage.js index cf5ad4f9..9c83f1af 100755 --- a/src/views/Home/HomePage.js +++ b/src/views/Home/HomePage.js @@ -51,11 +51,11 @@ export default function HomePage() { const coreFeatures = [ { id: 'news-catalyst', - title: '新闻催化分析', + title: '新闻中心', description: '实时新闻事件分析,捕捉市场催化因子', icon: '📊', color: 'yellow', - url: 'https://valuefrontier.cn/community', + url: '/community', badge: '核心', featured: true }, @@ -65,7 +65,7 @@ export default function HomePage() { description: '热门概念与主题投资分析追踪', icon: '🎯', color: 'purple', - url: 'https://valuefrontier.cn/concepts', + url: '/concepts', badge: '热门' }, { @@ -74,7 +74,7 @@ export default function HomePage() { description: '全面的个股基本面信息整合', icon: '📈', color: 'blue', - url: 'https://valuefrontier.cn/stocks', + url: '/stocks', badge: '全面' }, { @@ -83,7 +83,7 @@ export default function HomePage() { description: '涨停板数据深度分析与规律挖掘', icon: '🚀', color: 'green', - url: 'https://valuefrontier.cn/limit-analyse', + url: '/limit-analyse', badge: '精准' }, { @@ -92,7 +92,7 @@ export default function HomePage() { description: '个股全方位分析与投资决策支持', icon: '🧭', color: 'orange', - url: 'https://valuefrontier.cn/company?scode=688256', + url: '/company?scode=688256', badge: '专业' }, { @@ -106,15 +106,6 @@ export default function HomePage() { } ]; - // 个人中心配置 - // const personalCenter = { - // title: '个人中心', - // description: '账户管理与个人设置', - // icon: '👤', - // color: 'gray', - // url: 'https://valuefrontier.cn/home/center' - // }; - // @TODO 如何区分内部链接和外部链接? const handleProductClick = (url) => { if (url.startsWith('http')) { @@ -202,7 +193,7 @@ export default function HomePage() { )} - + {/* 主标题区域 */} @@ -225,7 +216,7 @@ export default function HomePage() { - {/* 新闻催化分析 - 突出显示 */} + {/* 新闻中心 - 突出显示 */} {coreFeatures.slice(1).map((feature) => ( - handleProductClick(feature.url)} - minH={{ base: 'auto', md: '180px' }} - > + handleProductClick(feature.url)} + minH={{ base: 'auto', md: '180px' }} + >