Authored by 孙凯

update 新品到着 UI review by chenling

@@ -232,7 +232,7 @@ export default class NewArrival extends React.PureComponent { @@ -232,7 +232,7 @@ export default class NewArrival extends React.PureComponent {
232 recommendForYou, 232 recommendForYou,
233 cart_goods_count, 233 cart_goods_count,
234 } = this.props; 234 } = this.props;
235 - 235 + let cart_goods_countString = cart_goods_count > 99 ? '99+' : cart_goods_count;
236 let latest = productList.get('list')&&productList.get('list').size?productList.get('list').toArray():[]; 236 let latest = productList.get('list')&&productList.get('list').size?productList.get('list').toArray():[];
237 237
238 let isLoadingMore = productList.isFetching && productList.currentPage > 0; 238 let isLoadingMore = productList.isFetching && productList.currentPage > 0;
@@ -384,7 +384,7 @@ export default class NewArrival extends React.PureComponent { @@ -384,7 +384,7 @@ export default class NewArrival extends React.PureComponent {
384 384
385 {cart_goods_count > 0 ? <View style={styles.cart_goods_countView} > 385 {cart_goods_count > 0 ? <View style={styles.cart_goods_countView} >
386 <Text style={styles.cart_goods_count}> 386 <Text style={styles.cart_goods_count}>
387 - {cart_goods_count} 387 + {cart_goods_countString}
388 </Text> 388 </Text>
389 </View> : null} 389 </View> : null}
390 390
@@ -483,10 +483,12 @@ let styles = StyleSheet.create({ @@ -483,10 +483,12 @@ let styles = StyleSheet.create({
483 cart_goods_countView: { 483 cart_goods_countView: {
484 backgroundColor: 'red', 484 backgroundColor: 'red',
485 position: 'absolute', 485 position: 'absolute',
486 - right: 6.5, 486 + right: 1.5,
487 top: 2, 487 top: 2,
488 borderRadius: 100, 488 borderRadius: 100,
489 minWidth: 15, 489 minWidth: 15,
  490 + paddingLeft: 3,
  491 + paddingRight: 3,
490 }, 492 },
491 493
492 cart_goods_count: { 494 cart_goods_count: {