This commit is contained in:
张成
2025-11-14 23:31:04 +08:00
parent 1226350099
commit 3c4897508a
6 changed files with 51 additions and 29 deletions

View File

@@ -5,7 +5,7 @@ import { check_login_status } from "@/services/loginService";
import { useUserActions } from "@/store/userStore";
import GuideBar from "@/components/GuideBar";
import { withAuth, GeneralNavbar } from "@/components";
import CustomerNavBar from "@/container/listCustomNavbar";
import HomeNavbar from "@/components/HomeNavbar";
import ListPageContent from "./components/ListPageContent";
import MessagePageContent from "./components/MessagePageContent";
import MyselfPageContent from "./components/MyselfPageContent";
@@ -113,9 +113,9 @@ const MainPage: React.FC = () => {
// 渲染自定义导航栏(参考原始页面的实现)
const renderCustomNavbar = () => {
if (currentTab === "list") {
// 列表页:使用 CustomerNavBar与原始列表页一致
// 列表页:使用 HomeNavbar与原始列表页一致
return (
<CustomerNavBar
<HomeNavbar
config={{
showInput: isShowInputCustomerNavBar,
}}
@@ -132,13 +132,12 @@ const MainPage: React.FC = () => {
<GeneralNavbar title="消息" />
);
} else if (currentTab === "personal") {
// 我的页:使用 CustomerNavBar 显示标题
// 我的页:使用 GeneralNavbar 显示标题
return (
<CustomerNavBar
config={{
showTitle: true,
title: "我的",
}}
<GeneralNavbar
title=""
titlePosition="left"
showBack={false}
/>
);
}