调整UI review by sunkai。
Showing
1 changed file
with
9 additions
and
2 deletions
@@ -177,7 +177,7 @@ export default class GoodsCell extends React.Component { | @@ -177,7 +177,7 @@ export default class GoodsCell extends React.Component { | ||
177 | <View style={{width: backgroundWidth, height:backgroundHeight, backgroundColor:'white'}}> | 177 | <View style={{width: backgroundWidth, height:backgroundHeight, backgroundColor:'white'}}> |
178 | {display_template == 1 ? this._renderCellType1(list) : this._renderCellType2(originList)} | 178 | {display_template == 1 ? this._renderCellType1(list) : this._renderCellType2(originList)} |
179 | {(display_template == 1 && this.state.moreProduct && listSize > 2) ? | 179 | {(display_template == 1 && this.state.moreProduct && listSize > 2) ? |
180 | - <TouchableOpacity style={styles.more} activeOpacity={0.5} onPress={() => { | 180 | + <TouchableOpacity style={styles.moreContainer} activeOpacity={0.5} onPress={() => { |
181 | let params = {ID: articleId + ''}; | 181 | let params = {ID: articleId + ''}; |
182 | NativeModules.YH_CommonHelper.logEvent('YB_STROLL_DETAIL_MORE_GODS_C', params); | 182 | NativeModules.YH_CommonHelper.logEvent('YB_STROLL_DETAIL_MORE_GODS_C', params); |
183 | this.setState({moreProduct: !this.state.moreProduct}); | 183 | this.setState({moreProduct: !this.state.moreProduct}); |
@@ -262,7 +262,7 @@ let styles = StyleSheet.create({ | @@ -262,7 +262,7 @@ let styles = StyleSheet.create({ | ||
262 | height: 23, | 262 | height: 23, |
263 | width: 40, | 263 | width: 40, |
264 | }, | 264 | }, |
265 | - more: { | 265 | + moreContainer: { |
266 | height: Platform.OS === 'ios' ? 22 : 24, | 266 | height: Platform.OS === 'ios' ? 22 : 24, |
267 | width:width, | 267 | width:width, |
268 | alignItems: 'center', | 268 | alignItems: 'center', |
@@ -270,6 +270,13 @@ let styles = StyleSheet.create({ | @@ -270,6 +270,13 @@ let styles = StyleSheet.create({ | ||
270 | flexDirection: 'row', | 270 | flexDirection: 'row', |
271 | marginTop: 9, | 271 | marginTop: 9, |
272 | }, | 272 | }, |
273 | + more: { | ||
274 | + height: Platform.OS === 'ios' ? 22 : 24, | ||
275 | + width:width, | ||
276 | + alignItems: 'center', | ||
277 | + justifyContent: 'center', | ||
278 | + flexDirection: 'row', | ||
279 | + }, | ||
273 | moreText: { | 280 | moreText: { |
274 | height: Platform.OS === 'ios' ? 22 : 24, | 281 | height: Platform.OS === 'ios' ? 22 : 24, |
275 | paddingLeft: 10, | 282 | paddingLeft: 10, |
-
Please register or login to post a comment