列表搜索页面
This commit is contained in:
@@ -13,15 +13,19 @@ export interface TennisMatch {
|
||||
shinei: string
|
||||
}
|
||||
export interface IFilterOptions {
|
||||
location: string
|
||||
time: string
|
||||
ntrp: [number, number]
|
||||
court_type: string
|
||||
game_play: string
|
||||
dateRange: [], // 日期区间
|
||||
timeSlot?: string, // 时间段
|
||||
ntrp?: [number, number], // NTRP 水平区间
|
||||
venueType?: string, // 场地类型
|
||||
playType?: string, // 玩法
|
||||
}
|
||||
export interface ListState {
|
||||
matches: TennisMatch[]
|
||||
recommendList: TennisMatch[]
|
||||
location: {
|
||||
latitude: number
|
||||
longitude: number
|
||||
}
|
||||
loading: boolean
|
||||
error: string | null
|
||||
searchValue: string
|
||||
@@ -49,6 +53,10 @@ export interface ListState {
|
||||
isShowResultInputCustomerNavBar: boolean
|
||||
isOpenDistancePopup: boolean,
|
||||
isOpenQuickFilterPopup: boolean,
|
||||
pageOption: {
|
||||
page: number
|
||||
pageSize: number
|
||||
}
|
||||
}
|
||||
|
||||
export interface ListActions {
|
||||
@@ -58,7 +66,7 @@ export interface ListActions {
|
||||
location?: string
|
||||
skillLevel?: string
|
||||
}) => Promise<void>
|
||||
refreshMatches: () => Promise<void>
|
||||
// refreshMatches: () => Promise<void>
|
||||
clearError: () => void
|
||||
updateState: (payload: Record<string, any>) => void
|
||||
updateFilterOptions: (payload: Record<string, any>) => void
|
||||
@@ -66,6 +74,7 @@ export interface ListActions {
|
||||
getSearchHistory: () => Promise<void>
|
||||
clearHistory: () => void
|
||||
searchSuggestion: (val: string) => Promise<void>
|
||||
getSearchParams: () => Record<string, any>
|
||||
}
|
||||
|
||||
// 快捷筛选
|
||||
@@ -94,7 +103,7 @@ export interface DistanceFilterProps {
|
||||
|
||||
// bubble 组件
|
||||
export interface BubbleOption {
|
||||
id: string | number;
|
||||
id?: string | number;
|
||||
label: string;
|
||||
value: string | number;
|
||||
disabled?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user