1
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user