...
|
...
|
@@ -382,7 +382,11 @@ export default class NewArrival extends React.PureComponent { |
|
|
<Image resizeMode={'contain'} source={require('../../image/shoppingbag.png')}/>
|
|
|
</TouchableOpacity>
|
|
|
|
|
|
{cart_goods_count > 0 ? <View style={styles.cart_goods_countView} roundAsCircle={true}> <Text style={styles.cart_goods_count}>{cart_goods_count}</Text></View> : null}
|
|
|
{cart_goods_count > 0 ? <View style={styles.cart_goods_countView} >
|
|
|
<Text style={styles.cart_goods_count}>
|
|
|
{cart_goods_count}
|
|
|
</Text>
|
|
|
</View> : null}
|
|
|
|
|
|
|
|
|
</Animated.View>
|
...
|
...
|
@@ -464,15 +468,17 @@ let styles = StyleSheet.create({ |
|
|
position: 'absolute',
|
|
|
left: width - 44 - 20,
|
|
|
top: height - 44 - 44 - 64,
|
|
|
width: 40,
|
|
|
height: 40,
|
|
|
width: 50,
|
|
|
height: 50,
|
|
|
justifyContent: 'center',
|
|
|
alignItems: 'center'
|
|
|
},
|
|
|
|
|
|
cart_goods_countView: {
|
|
|
backgroundColor: 'red',
|
|
|
position: 'absolute',
|
|
|
right: -3,
|
|
|
top: -3,
|
|
|
right: 6.5,
|
|
|
top: 2,
|
|
|
borderRadius: 100,
|
|
|
minWidth: 15,
|
|
|
},
|
...
|
...
|
|