...
|
...
|
@@ -20,11 +20,8 @@ import YH_SearchBar from '../../../common/components/YH_SearchBar'; |
|
|
import ChannelFliter from './ChannelFliter';
|
|
|
import AllBrandListCell from './AllBrandListCell';
|
|
|
import NewHotBannerListCell from './NewHotBannerListCell';
|
|
|
<<<<<<< HEAD
|
|
|
import BrandSearch from './BrandSearch';
|
|
|
=======
|
|
|
import LoadingIndicator from '../../../common/components/LoadingIndicator';
|
|
|
>>>>>>> 922f50ee4cba09108dd8fc7fb3fbe67f376b7f74
|
|
|
|
|
|
|
|
|
export default class Brand extends Component {
|
...
|
...
|
@@ -75,9 +72,15 @@ export default class Brand extends Component { |
|
|
activeOpacity={1}
|
|
|
onPress={() => {
|
|
|
this.props.onPressSearch && this.props.onPressSearch();
|
|
|
// this.searchBar && this.searchBar.focus();
|
|
|
}}
|
|
|
>
|
|
|
<YH_SearchBar editable={false} />
|
|
|
<YH_SearchBar
|
|
|
ref={(c) => {
|
|
|
this.searchBar = c;
|
|
|
}}
|
|
|
editable={false}
|
|
|
/>
|
|
|
</TouchableOpacity>
|
|
|
{banner?<BrandSwiper resource={banner} onPressSlideItem={this.props.onPressSlideItem}/>:null}
|
|
|
{custom_brands?<BannerReourceList resource={custom_brands} onPressSlideItem={this.props.onPressSlideItem}/>:null}
|
...
|
...
|
@@ -109,11 +112,8 @@ export default class Brand extends Component { |
|
|
render() {
|
|
|
|
|
|
let {
|
|
|
<<<<<<< HEAD
|
|
|
showSearch,
|
|
|
=======
|
|
|
isFetching,
|
|
|
>>>>>>> 922f50ee4cba09108dd8fc7fb3fbe67f376b7f74
|
|
|
brandFliter,
|
|
|
channelFliter,
|
|
|
brandListForBoy,
|
...
|
...
|
@@ -176,7 +176,10 @@ export default class Brand extends Component { |
|
|
renderHeader={this.renderHeader}
|
|
|
/>
|
|
|
|
|
|
{showSearch ? <BrandSearch style={styles.search} data={search}/> : null}
|
|
|
{showSearch ? <BrandSearch
|
|
|
data={search}
|
|
|
onTextChange={this.props.onTextChange}
|
|
|
onClickCancel={this.props.onClickCancel} /> : null}
|
|
|
|
|
|
<LoadingIndicator
|
|
|
isVisible={isFetching}
|
...
|
...
|
@@ -217,8 +220,4 @@ let styles = StyleSheet.create({ |
|
|
width,
|
|
|
backgroundColor: '#e5e5e5',
|
|
|
},
|
|
|
search: {
|
|
|
|
|
|
|
|
|
},
|
|
|
}); |
...
|
...
|
|