From 6cf9dca324b6fc7fd1a86b0f9948bbc28de1be84 Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Thu, 15 Jan 2026 17:49:19 +0800 Subject: [PATCH] =?UTF-8?q?refactor(HomePage):=20=E6=9A=82=E6=97=B6?= =?UTF-8?q?=E7=A6=81=E7=94=A8=E5=B7=B2=E7=99=BB=E5=BD=95=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Home/HomePage.tsx | 95 +++++++++++++++++-------------------- 1 file changed, 44 insertions(+), 51 deletions(-) diff --git a/src/views/Home/HomePage.tsx b/src/views/Home/HomePage.tsx index 20260d3d..ebc0cc5e 100644 --- a/src/views/Home/HomePage.tsx +++ b/src/views/Home/HomePage.tsx @@ -16,7 +16,7 @@ import { FeaturedFeatureCard } from './components/FeaturedFeatureCard'; import { FeatureCard } from './components/FeatureCard'; import MiniProgramLauncher from '@/components/MiniProgramLauncher'; import { isMobileDevice } from '@/components/MiniProgramLauncher/hooks/useWechatEnvironment'; -import Center from '@views/Center'; +// [暂时禁用] import Center from '@views/Center'; import '@/styles/home-animations.css'; /** @@ -89,64 +89,57 @@ const HomePage: React.FC = () => { return null; } - // 已登录直接渲染个人中心 - if (isAuthenticated && user) { - return
; - } + // [暂时禁用] 已登录直接渲染个人中心(未来可能恢复) + // if (isAuthenticated && user) { + // return
; + // } // 未登录渲染首页内容 return ( {/* Hero Section - 深色科技风格,自适应容器高度 */} - - - - {/* 主标题区域 */} - + + + {/* 主标题区域 */} + - {/* 核心功能面板 */} - - - {/* 特色功能卡片 - 新闻中心 */} - + {/* 核心功能面板 */} + + + {/* 特色功能卡片 - 新闻中心 */} + - {/* 其他功能卡片 */} - - {regularFeatures.map((feature) => ( - - ))} - - - - - - + {/* 其他功能卡片 */} + + {regularFeatures.map((feature) => ( + + ))} + + + + + {/* 移动端右上角固定按钮 - 小程序入口 */} {isMobile && (