红人店铺的首页下面添加商品,review by 孙凯
Showing
1 changed file
with
3 additions
and
0 deletions
@@ -90,7 +90,9 @@ export default class RedBrand extends Component { | @@ -90,7 +90,9 @@ export default class RedBrand extends Component { | ||
90 | } | 90 | } |
91 | return ( | 91 | return ( |
92 | <View style={styles.brandFilterContainer} onLayout={(evt) => {yPosition = evt.nativeEvent.layout.y;}}> | 92 | <View style={styles.brandFilterContainer} onLayout={(evt) => {yPosition = evt.nativeEvent.layout.y;}}> |
93 | + {this.props.fliter == '1'? | ||
93 | <RedBrandStoreFilter resource={fliter} onPressStoreFilter={this._onPressFilter}/> | 94 | <RedBrandStoreFilter resource={fliter} onPressStoreFilter={this._onPressFilter}/> |
95 | + :null} | ||
94 | <BrandProductFilter | 96 | <BrandProductFilter |
95 | onPressFilter={this._onPressProductFilter} | 97 | onPressFilter={this._onPressProductFilter} |
96 | lastSelected={this.props.productList.isFilter} | 98 | lastSelected={this.props.productList.isFilter} |
@@ -209,6 +211,7 @@ export default class RedBrand extends Component { | @@ -209,6 +211,7 @@ export default class RedBrand extends Component { | ||
209 | dataSource = { | 211 | dataSource = { |
210 | ShopBanner: [shopIntro], | 212 | ShopBanner: [shopIntro], |
211 | brandReource: resList, | 213 | brandReource: resList, |
214 | + productList: productList.list.toArray(), | ||
212 | }; | 215 | }; |
213 | } else if (fliter == 1) { | 216 | } else if (fliter == 1) { |
214 | dataSource = { | 217 | dataSource = { |
-
Please register or login to post a comment