Authored by huangyCode

修改砍价列表页新增以砍数量

... ... @@ -68,9 +68,10 @@ export default class productCell extends Component {
text = data.get('sales_price') && '¥' + data.get('sales_price');
textStyle = styles.priceTextHome;
}
return <View style={styles.priceFatherContainer}>
let cutSuccessNum = data.get('cutSuccessNum') || 0
return <View style={[styles.priceFatherContainer,{bottom:!categoryType && cutSuccessNum ? -2 : 6 }]}>
<Text style={[styles.priceText, textStyle]}>{text}</Text>
{!categoryType && cutSuccessNum? <Text style={styles.hasCut}>已砍{cutSuccessNum}</Text> : null}
</View>
}
... ... @@ -169,7 +170,8 @@ let styles = StyleSheet.create({
rightContainer: {
justifyContent: 'space-between',
marginTop: 3
marginTop: 3,
height:103
},
prdImage: {
marginTop: 5,
... ... @@ -191,7 +193,6 @@ let styles = StyleSheet.create({
priceFatherContainer: {
position: 'absolute',
left: 10,
bottom: 6,
},
priceText: {
... ... @@ -281,10 +282,14 @@ let styles = StyleSheet.create({
right: 0,
width: 91,
height: 33,
bottom: 0,
bottom: 1,
},
bottom: {
flexDirection: 'row',
alignItems: 'center'
},
hasCut:{
fontSize:12,
marginTop:4
}
});
... ...