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