...
|
...
|
@@ -126,6 +126,7 @@ export default class Home extends Component { |
|
|
<HeadTitleCell title={'你可能喜欢'}/>
|
|
|
);
|
|
|
}
|
|
|
case 'lifeStyleFav':
|
|
|
case 'favorite': {
|
|
|
let paddingLeft = rowID % 2 == 1 ? rowMarginHorizontal*1.5 : rowMarginHorizontal*2;
|
|
|
let customStyle = {paddingLeft};
|
...
|
...
|
@@ -135,7 +136,7 @@ export default class Home extends Component { |
|
|
<View style={[styles.product,]}>
|
|
|
<ProductListCell
|
|
|
style={[styles.listContainer, customStyle]}
|
|
|
key={'row' + rowID}
|
|
|
key={'sectionID' + sectionID}
|
|
|
rowID={rowID}
|
|
|
data={rowData}
|
|
|
similarIndex={similarIndex}
|
...
|
...
|
@@ -164,21 +165,6 @@ export default class Home extends Component { |
|
|
<Image style={styles.footer} source={require('../../images/shared_bottom.png')}/>
|
|
|
);
|
|
|
}
|
|
|
case 'lifeStyleFav': {
|
|
|
let paddingLeft = rowID % 2 == 1 ? rowMarginHorizontal*1.5 : rowMarginHorizontal*2;
|
|
|
let customStyle = {paddingLeft};
|
|
|
return (
|
|
|
<View style={[styles.product,]}>
|
|
|
<ProductListCell
|
|
|
style={[styles.listContainer, customStyle]}
|
|
|
key={'row' + rowID}
|
|
|
rowID={rowID}
|
|
|
data={rowData}
|
|
|
onPressProduct={this.props.onPressProductListProduct}
|
|
|
/>
|
|
|
</View>
|
|
|
); }
|
|
|
break;
|
|
|
default:
|
|
|
{
|
|
|
return null;
|
...
|
...
|
|