This commit is contained in:
张成
2025-11-15 23:51:38 +08:00
parent 6519cb8eec
commit 4b5c677856
14 changed files with 78 additions and 32 deletions

View File

@@ -2,8 +2,9 @@ import { View, Image, Text } from "@tarojs/components";
import { Input } from "@nutui/nutui-react-taro";
import { useEffect, useMemo, useRef } from "react";
import { useListState } from "@/store/listStore";
import { useGlobalState } from "@/store/global";
import { withAuth, GeneralNavbar } from "@/components";
import img from "@/config/images";
import { withAuth } from "@/components";
import "./index.scss";
import Taro from "@tarojs/taro";
@@ -23,6 +24,10 @@ const ListSearch = () => {
isShowSuggestion,
} = useListState()?.searchPageState || {};
const ref = useRef<any>(null);
// 获取导航栏高度信息
const { statusNavbarHeightInfo } = useGlobalState();
const { totalHeight = 0 } = statusNavbarHeightInfo || {};
useEffect(() => {
getSearchHistory();
@@ -113,7 +118,15 @@ const ListSearch = () => {
return (
<>
<View className="listSearchContainer">
<GeneralNavbar
title=""
showBack={true}
/>
<View
className="listSearchContainer"
style={{ paddingTop: `${totalHeight + 10}px` }}
>
{/* 搜索 */}
<View className="topSearch">
<Image className="searchIcon" src={img.ICON_LIST_SEARCH_SEARCH} />