diff --git a/src/layouts/MainLayout.js b/src/layouts/MainLayout.js index 78996173..04ffdf4d 100644 --- a/src/layouts/MainLayout.js +++ b/src/layouts/MainLayout.js @@ -5,6 +5,7 @@ import { Outlet } from "react-router-dom"; import { Box } from '@chakra-ui/react'; import HomeNavbar from "../components/Navbars/HomeNavbar"; import PageLoader from "../components/Loading/PageLoader"; +import AppFooter from "./AppFooter"; /** * MainLayout - 带导航栏的主布局 @@ -15,17 +16,20 @@ import PageLoader from "../components/Loading/PageLoader"; */ export default function MainLayout() { return ( - + {/* 导航栏 - 在所有页面间共享,不会重新渲染 */} {/* 页面内容区域 - 通过 Outlet 渲染当前路由对应的组件 */} {/* Suspense 只包裹内容区域,导航栏保持可见 */} - + }> + + {/* 页脚 - 在所有页面间共享 */} + ); } diff --git a/src/views/EventDetail/index.js b/src/views/EventDetail/index.js index da05c530..7c6ea891 100644 --- a/src/views/EventDetail/index.js +++ b/src/views/EventDetail/index.js @@ -39,7 +39,6 @@ import { Center, useToast, Skeleton, - Link, } from '@chakra-ui/react'; import { FiLock } from 'react-icons/fi'; import { @@ -823,26 +822,6 @@ const EventDetail = () => { - {/* Footer区域 */} - - - - - © 2024 价值前沿. 保留所有权利. - - - - 京公网安备11010802046286号 - - 京ICP备2025107343号-1 - - - - {/* 升级弹窗 */} - {/* 底部区域 */} - - - - - © 2024 价值前沿. 保留所有权利. - - - - 京公网安备11010802046286号 - - 京ICP备2025107343号-1 - - - - ); } \ No newline at end of file diff --git a/src/views/LimitAnalyse/index.js b/src/views/LimitAnalyse/index.js index 1716490a..8278dde9 100755 --- a/src/views/LimitAnalyse/index.js +++ b/src/views/LimitAnalyse/index.js @@ -23,7 +23,6 @@ import { StatArrow, Alert, AlertIcon, - Link, } from '@chakra-ui/react'; import { RepeatIcon, @@ -493,26 +492,6 @@ export default function LimitAnalyse() { - {/* Footer区域 */} - - - - - © 2024 价值前沿. 保留所有权利. - - - - 京公网安备11010802046286号 - - 京ICP备2025107343号-1 - - - - ); } \ No newline at end of file diff --git a/src/views/StockOverview/index.js b/src/views/StockOverview/index.js index 6e5a64e1..f2a968e7 100644 --- a/src/views/StockOverview/index.js +++ b/src/views/StockOverview/index.js @@ -48,7 +48,6 @@ import { Progress, Tag, TagLabel, - Link, Skeleton, SkeletonText, Popover, @@ -1055,26 +1054,6 @@ const StockOverview = () => { - {/* Footer区域 */} - - - - - © 2024 价值前沿. 保留所有权利. - - - - 京公网安备11010802046286号 - - 京ICP备2025107343号-1 - - - - ); }; diff --git a/src/views/TradingSimulation/index.js b/src/views/TradingSimulation/index.js index a1d8d03d..22058ab9 100644 --- a/src/views/TradingSimulation/index.js +++ b/src/views/TradingSimulation/index.js @@ -31,7 +31,6 @@ import { AlertIcon, AlertTitle, AlertDescription, - Link, } from '@chakra-ui/react'; import { useAuth } from '../../contexts/AuthContext'; import { logger } from '../../utils/logger'; @@ -389,26 +388,6 @@ export default function TradingSimulation() { )} - {/* Footer区域 */} - - - - - © 2024 价值前沿. 保留所有权利. - - - - 京公网安备11010802046286号 - - 京ICP备2025107343号-1 - - - - ); } \ No newline at end of file