...
|
...
|
@@ -104,30 +104,34 @@ export default class Search extends Component { |
|
|
let value = '';
|
|
|
|
|
|
return (
|
|
|
<ScrollView
|
|
|
className='search-page'
|
|
|
scrollY
|
|
|
scrollWithAnimation
|
|
|
scrollTop='0'
|
|
|
lowerThreshold='20'
|
|
|
upperThreshold='20'
|
|
|
onScrolltoupper={this.onScrolltoupper}
|
|
|
onScroll={this.onScroll}>
|
|
|
{/* <PageTitle pageTitle="搜索"></PageTitle> */}
|
|
|
|
|
|
<View className={this.fixed ? 'fixed search-out-box' : 'search-out-box'}>
|
|
|
<SearchBar onComplate={this.onComplate} value={value}></SearchBar>
|
|
|
<View>
|
|
|
<View className='search-out-box'>
|
|
|
<SearchBar onComplate={this.onComplate} value={value}></SearchBar>
|
|
|
</View>
|
|
|
|
|
|
{
|
|
|
latelySearch.length > 0 &&
|
|
|
<SearchItem title={latelySearchTitle} list={latelySearch} isSearch={true} onRemoveAllSearch={this.onRemoveAllSearch}></SearchItem>
|
|
|
}
|
|
|
{
|
|
|
hotSearch.length > 0 &&
|
|
|
<SearchItem title={hotSearchTitle} list={hotSearch} ></SearchItem>
|
|
|
}
|
|
|
<ScrollView
|
|
|
className='search-page'
|
|
|
scrollY
|
|
|
scrollWithAnimation
|
|
|
scrollTop='0'
|
|
|
lowerThreshold='20'
|
|
|
upperThreshold='20'
|
|
|
onScrolltoupper={this.onScrolltoupper}
|
|
|
onScroll={this.onScroll}>
|
|
|
{/* <PageTitle pageTitle="搜索"></PageTitle> */}
|
|
|
|
|
|
{
|
|
|
latelySearch.length > 0 &&
|
|
|
<View className='latelySearch'>
|
|
|
<SearchItem title={latelySearchTitle} list={latelySearch} isSearch={true} onRemoveAllSearch={this.onRemoveAllSearch}></SearchItem>
|
|
|
</View>
|
|
|
}
|
|
|
{
|
|
|
hotSearch.length > 0 &&
|
|
|
<SearchItem title={hotSearchTitle} list={hotSearch} ></SearchItem>
|
|
|
}
|
|
|
</ScrollView>
|
|
|
</View>
|
|
|
)
|
|
|
}
|
|
|
}
|
...
|
...
|
|