导航栏引用公共组件

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

@@ -7,6 +7,7 @@ import httpService from "@/services/httpService";
import { useUserInfo } from "@/store/userStore";
import { useKeyboardHeight } from "@/store/keyboardStore";
import img from "@/config/images";
import { BackNavbar } from "@/components";
interface FormFields {
phone?: string;
@@ -109,7 +110,7 @@ const ValidPhone: React.FC = () => {
return (
<View className="set-transaction-password-page">
{/* 导航栏 */}
<View className="custom-navbar">
{/* <View className="custom-navbar">
<View className="detail-navigator">
<View
className="detail-navigator-back"
@@ -124,7 +125,16 @@ const ValidPhone: React.FC = () => {
<Text>{pageTitle}</Text>
</View>
</View>
</View>
</View> */}
{/* 顶部导航栏 */}
<BackNavbar
title={pageTitle}
showBackButton={true}
showAvatar={false}
onBack={() => {
Taro.navigateBack();
}}
/>
<View className="form-item">
<Text className="form-label"></Text>
<Input defaultValue={formData.phone} type="number" disabled></Input>