Authored by huangyCode

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

@@ -68,9 +68,10 @@ export default class productCell extends Component { @@ -68,9 +68,10 @@ export default class productCell extends Component {
68 text = data.get('sales_price') && '¥' + data.get('sales_price'); 68 text = data.get('sales_price') && '¥' + data.get('sales_price');
69 textStyle = styles.priceTextHome; 69 textStyle = styles.priceTextHome;
70 } 70 }
71 -  
72 - return <View style={styles.priceFatherContainer}> 71 + let cutSuccessNum = data.get('cutSuccessNum') || 0
  72 + return <View style={[styles.priceFatherContainer,{bottom:!categoryType && cutSuccessNum ? -2 : 6 }]}>
73 <Text style={[styles.priceText, textStyle]}>{text}</Text> 73 <Text style={[styles.priceText, textStyle]}>{text}</Text>
  74 + {!categoryType && cutSuccessNum? <Text style={styles.hasCut}>已砍{cutSuccessNum}</Text> : null}
74 </View> 75 </View>
75 } 76 }
76 77
@@ -169,7 +170,8 @@ let styles = StyleSheet.create({ @@ -169,7 +170,8 @@ let styles = StyleSheet.create({
169 170
170 rightContainer: { 171 rightContainer: {
171 justifyContent: 'space-between', 172 justifyContent: 'space-between',
172 - marginTop: 3 173 + marginTop: 3,
  174 + height:103
173 }, 175 },
174 prdImage: { 176 prdImage: {
175 marginTop: 5, 177 marginTop: 5,
@@ -191,7 +193,6 @@ let styles = StyleSheet.create({ @@ -191,7 +193,6 @@ let styles = StyleSheet.create({
191 priceFatherContainer: { 193 priceFatherContainer: {
192 position: 'absolute', 194 position: 'absolute',
193 left: 10, 195 left: 10,
194 - bottom: 6,  
195 }, 196 },
196 197
197 priceText: { 198 priceText: {
@@ -281,10 +282,14 @@ let styles = StyleSheet.create({ @@ -281,10 +282,14 @@ let styles = StyleSheet.create({
281 right: 0, 282 right: 0,
282 width: 91, 283 width: 91,
283 height: 33, 284 height: 33,
284 - bottom: 0, 285 + bottom: 1,
285 }, 286 },
286 bottom: { 287 bottom: {
287 flexDirection: 'row', 288 flexDirection: 'row',
288 alignItems: 'center' 289 alignItems: 'center'
  290 + },
  291 + hasCut:{
  292 + fontSize:12,
  293 + marginTop:4
289 } 294 }
290 }); 295 });