列表搜索页面
This commit is contained in:
@@ -7,6 +7,7 @@ import { useGlobalState } from "@/store/global";
|
||||
import { useListState } from "@/store/listStore";
|
||||
import CustomNavbar from "@/components/CustomNavbar";
|
||||
import { Input } from "@nutui/nutui-react-taro";
|
||||
import Taro from "@tarojs/taro";
|
||||
|
||||
interface IProps {
|
||||
icon: string;
|
||||
@@ -34,6 +35,12 @@ const ListHeader = (props: IProps) => {
|
||||
getCurrentLocal();
|
||||
}, []);
|
||||
|
||||
const handleInputClick = () => {
|
||||
Taro.navigateTo({
|
||||
url: "/pages/search/index",
|
||||
});
|
||||
}
|
||||
|
||||
return (
|
||||
<CustomNavbar>
|
||||
<View
|
||||
@@ -53,10 +60,10 @@ const ListHeader = (props: IProps) => {
|
||||
src={img.ICON_LIST_SEARCH_SEARCH}
|
||||
/>
|
||||
<Input
|
||||
// className="inputSearch"
|
||||
placeholder="搜索上海的球局和场地"
|
||||
clearable={false}
|
||||
value={searchValue}
|
||||
onClick={handleInputClick}
|
||||
/>
|
||||
</View>
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user