Authored by QC-L

修复有赚首页不能加载的 Bug review by sunkai

... ... @@ -186,6 +186,7 @@ export default class Home extends Component {
isShowGuide={this.props.isShowGuide}
hiddenGuideDialog={this.props.hiddenGuideDialog}/>
<SectionList
stickySectionHeadersEnabled={true}
ref={(ref) => this.sectionList = ref}
sections={dataSource}
renderSectionHeader={this._renderSectionHeader}
... ... @@ -236,8 +237,7 @@ let styles = StyleSheet.create({
backgroundColor: '#e0e0e0'
},
contentContainer: {
flexDirection: 'row',
flexWrap: 'wrap',
flexDirection: 'column',
backgroundColor: 'white'
},
listContainer: {
... ...
... ... @@ -80,6 +80,7 @@ class HomeContainer extends Component {
json && json.forEach(item => {
if (item.template_name === 'recommendGoodsGroup' && item.data) {
let productPool = item.data.recommendLogic;
console.log('11111111111111111111111111 productPool: ', productPool);
let skns = item.data.skns;
self.props.actions.getProductList(productPool, skns);
let params = {
... ... @@ -170,7 +171,8 @@ class HomeContainer extends Component {
productPool,
skns,
} = this.props.app;
productPool !=0 && this.props.actions.getProductList(productPool,skns);
this.props.actions.getProductList(productPool, skns);
console.log('执行');
}
render() {
... ...