Showing
1 changed file
with
2 additions
and
16 deletions
@@ -126,6 +126,7 @@ export default class Home extends Component { | @@ -126,6 +126,7 @@ export default class Home extends Component { | ||
126 | <HeadTitleCell title={'你可能喜欢'}/> | 126 | <HeadTitleCell title={'你可能喜欢'}/> |
127 | ); | 127 | ); |
128 | } | 128 | } |
129 | + case 'lifeStyleFav': | ||
129 | case 'favorite': { | 130 | case 'favorite': { |
130 | let paddingLeft = rowID % 2 == 1 ? rowMarginHorizontal*1.5 : rowMarginHorizontal*2; | 131 | let paddingLeft = rowID % 2 == 1 ? rowMarginHorizontal*1.5 : rowMarginHorizontal*2; |
131 | let customStyle = {paddingLeft}; | 132 | let customStyle = {paddingLeft}; |
@@ -135,7 +136,7 @@ export default class Home extends Component { | @@ -135,7 +136,7 @@ export default class Home extends Component { | ||
135 | <View style={[styles.product,]}> | 136 | <View style={[styles.product,]}> |
136 | <ProductListCell | 137 | <ProductListCell |
137 | style={[styles.listContainer, customStyle]} | 138 | style={[styles.listContainer, customStyle]} |
138 | - key={'row' + rowID} | 139 | + key={'sectionID' + sectionID} |
139 | rowID={rowID} | 140 | rowID={rowID} |
140 | data={rowData} | 141 | data={rowData} |
141 | similarIndex={similarIndex} | 142 | similarIndex={similarIndex} |
@@ -164,21 +165,6 @@ export default class Home extends Component { | @@ -164,21 +165,6 @@ export default class Home extends Component { | ||
164 | <Image style={styles.footer} source={require('../../images/shared_bottom.png')}/> | 165 | <Image style={styles.footer} source={require('../../images/shared_bottom.png')}/> |
165 | ); | 166 | ); |
166 | } | 167 | } |
167 | - case 'lifeStyleFav': { | ||
168 | - let paddingLeft = rowID % 2 == 1 ? rowMarginHorizontal*1.5 : rowMarginHorizontal*2; | ||
169 | - let customStyle = {paddingLeft}; | ||
170 | - return ( | ||
171 | - <View style={[styles.product,]}> | ||
172 | - <ProductListCell | ||
173 | - style={[styles.listContainer, customStyle]} | ||
174 | - key={'row' + rowID} | ||
175 | - rowID={rowID} | ||
176 | - data={rowData} | ||
177 | - onPressProduct={this.props.onPressProductListProduct} | ||
178 | - /> | ||
179 | - </View> | ||
180 | - ); } | ||
181 | - break; | ||
182 | default: | 168 | default: |
183 | { | 169 | { |
184 | return null; | 170 | return null; |
-
Please register or login to post a comment