|
|
import Taro, {Component} from '@tarojs/taro';
|
|
|
import {View, Image} from '@tarojs/components';
|
|
|
import contentCode from '../../utils/content-code';
|
|
|
import { Resources, ProductList, FilterMenu } from '../../components';
|
|
|
import { Resources, ProductList, FilterMenu, SearchBar } from '../../components';
|
|
|
import searchImg from '../../static/images/search.png';
|
|
|
import goYohoBuy from '../../assets/images/goYohoBuy@3x.png';
|
|
|
import {common as commonModel} from '../../models';
|
...
|
...
|
@@ -42,7 +42,7 @@ export default class Index extends Component { |
|
|
}
|
|
|
|
|
|
config = {
|
|
|
navigationBarTitleText: 'UFO',
|
|
|
navigationBarTitleText: '飞碟好物',
|
|
|
enablePullDownRefresh: true,
|
|
|
backgroundTextStyle: "dark",
|
|
|
onReachBottomDistance: 50
|
...
|
...
|
@@ -198,9 +198,8 @@ export default class Index extends Component { |
|
|
lowerThreshold='20'
|
|
|
onScrollToLower={this.onScrollToLower}>
|
|
|
|
|
|
<View className="header-nav">
|
|
|
<Text className="page-label">飞碟好物</Text>
|
|
|
<View onClick={this.goToSearch} className="search" hover-class="none"><Image className="search-btn" src={searchImg}></Image></View>
|
|
|
<View className="header-nav" onClick={this.goToSearch}>
|
|
|
<SearchBar height={655} disabled={true}></SearchBar>
|
|
|
</View>
|
|
|
|
|
|
<Resources code={contentCode.index}></Resources>
|
...
|
...
|
|