导航栏引用公共组件

This commit is contained in:
2025-10-28 22:10:35 +08:00
parent c485c7fd64
commit ce31b6914f
9 changed files with 113 additions and 32 deletions

View File

@@ -4,7 +4,7 @@ import Taro, { useDidShow, useReachBottom } from "@tarojs/taro";
import "./index.scss";
import { CommonPopup, EmptyState } from "@/components";
import httpService from "@/services/httpService";
import { withAuth } from "@/components";
import { withAuth, BackNavbar } from "@/components";
import { PopupPicker } from "@/components/Picker/index";
import { handleCustomerService } from "@/services/userService";
import img from "@/config/images";
@@ -460,7 +460,7 @@ const WalletPage: React.FC = () => {
return (
<View className="wallet_page">
{/* 导航栏 */}
<View className="custom-navbar">
{/* <View className="custom-navbar">
<View className="detail-navigator">
<View
className="detail-navigator-back"
@@ -475,7 +475,16 @@ const WalletPage: React.FC = () => {
<Text>{pageTitle}</Text>
</View>
</View>
</View>
</View> */}
{/* 顶部导航栏 */}
<BackNavbar
title={pageTitle}
showBackButton={true}
showAvatar={false}
onBack={() => {
Taro.navigateBack();
}}
/>
{/* 钱包主卡片 */}
<View className="wallet_main_card">
{/* 头部信息 */}