From 5aebd4b113df0d75ebbef1fa28afc2503c6c4026 Mon Sep 17 00:00:00 2001
From: zdl <3489966805@qq.com>
Date: Fri, 24 Oct 2025 17:17:31 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E5=B0=86=20AppFooter=20=E9=9B=86?=
=?UTF-8?q?=E6=88=90=E5=88=B0=20MainLayout?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/layouts/MainLayout.js | 8 ++++++--
src/views/EventDetail/index.js | 21 ---------------------
src/views/Home/HomePage.js | 26 --------------------------
src/views/LimitAnalyse/index.js | 21 ---------------------
src/views/StockOverview/index.js | 21 ---------------------
src/views/TradingSimulation/index.js | 21 ---------------------
6 files changed, 6 insertions(+), 112 deletions(-)
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