红人店铺模版区分,review by Redding
Showing
1 changed file
with
6 additions
and
2 deletions
@@ -65,11 +65,15 @@ export default class RedBrand extends Component { | @@ -65,11 +65,15 @@ export default class RedBrand extends Component { | ||
65 | 65 | ||
66 | renderSectionHeader(sectionData, sectionID) { | 66 | renderSectionHeader(sectionData, sectionID) { |
67 | 67 | ||
68 | - let {fliter} = this.props; | 68 | + let {fliter,shopsdecorator} = this.props; |
69 | 69 | ||
70 | switch(sectionID) { | 70 | switch(sectionID) { |
71 | case 'brandReource': { | 71 | case 'brandReource': { |
72 | - return(<RedBrandStoreFilter key={'sec' + sectionID} resource={fliter} onPressStoreFilter={this._onPressFilter}/>); | 72 | + if (shopsdecorator && shopsdecorator.template_type == '1') { |
73 | + return <View style={{height:0}}></View>; | ||
74 | + } else { | ||
75 | + return (<RedBrandStoreFilter key={'sec' + sectionID} resource={fliter} onPressStoreFilter={this._onPressFilter}/>); | ||
76 | + } | ||
73 | } | 77 | } |
74 | case 'productList': { | 78 | case 'productList': { |
75 | let noFilterValue = true; | 79 | let noFilterValue = true; |
-
Please register or login to post a comment