Showing
1 changed file
with
16 additions
and
6 deletions
@@ -71,7 +71,7 @@ export default class productCell extends Component { | @@ -71,7 +71,7 @@ export default class productCell extends Component { | ||
71 | let cutSuccessNum = data.get('cutSuccessNum') || 0 | 71 | let cutSuccessNum = data.get('cutSuccessNum') || 0 |
72 | return <View style={[styles.priceFatherContainer,{bottom:!categoryType && cutSuccessNum ? -2 : 6 }]}> | 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 | + {!categoryType && cutSuccessNum? <Text style={styles.hasCut}>已抢{cutSuccessNum}件</Text> : null} |
75 | </View> | 75 | </View> |
76 | } | 76 | } |
77 | 77 | ||
@@ -109,8 +109,8 @@ export default class productCell extends Component { | @@ -109,8 +109,8 @@ export default class productCell extends Component { | ||
109 | return ( | 109 | return ( |
110 | <View style={styles.actionContainer}> | 110 | <View style={styles.actionContainer}> |
111 | <View style={styles.cutActionContainer}> | 111 | <View style={styles.cutActionContainer}> |
112 | - <Image source={require('../../images/cutPriceBg.png')} style={styles.cutPriceBg}></Image> | ||
113 | - <Text style={styles.cutPrice}>-¥{data.get('cutTotalPrice')}</Text> | 112 | + <Text style={styles.cutText}>砍</Text> |
113 | + <Text style={styles.cutPrice}>¥{data.get('cutTotalPrice')}</Text> | ||
114 | </View> | 114 | </View> |
115 | </View> | 115 | </View> |
116 | ) | 116 | ) |
@@ -224,6 +224,10 @@ let styles = StyleSheet.create({ | @@ -224,6 +224,10 @@ let styles = StyleSheet.create({ | ||
224 | width: 91, | 224 | width: 91, |
225 | height: 33, | 225 | height: 33, |
226 | justifyContent: 'center', | 226 | justifyContent: 'center', |
227 | + backgroundColor:'#222222', | ||
228 | + alignItems:'center', | ||
229 | + borderRadius: 3, | ||
230 | + flexDirection: 'row' | ||
227 | }, | 231 | }, |
228 | cutPriceBg: { | 232 | cutPriceBg: { |
229 | width: 91, | 233 | width: 91, |
@@ -233,8 +237,13 @@ let styles = StyleSheet.create({ | @@ -233,8 +237,13 @@ let styles = StyleSheet.create({ | ||
233 | fontSize: 14, | 237 | fontSize: 14, |
234 | fontFamily: 'PingFang-SC-Medium', | 238 | fontFamily: 'PingFang-SC-Medium', |
235 | color: 'white', | 239 | color: 'white', |
236 | - right: 10, | ||
237 | - position: 'absolute', | 240 | + fontWeight: 'bold', |
241 | + }, | ||
242 | + cutText:{ | ||
243 | + fontSize: 16, | ||
244 | + fontFamily: 'PingFang-SC-Medium', | ||
245 | + color: 'white', | ||
246 | + fontWeight: 'bold', | ||
238 | }, | 247 | }, |
239 | 248 | ||
240 | continueCutContainer: { | 249 | continueCutContainer: { |
@@ -290,6 +299,7 @@ let styles = StyleSheet.create({ | @@ -290,6 +299,7 @@ let styles = StyleSheet.create({ | ||
290 | }, | 299 | }, |
291 | hasCut:{ | 300 | hasCut:{ |
292 | fontSize:12, | 301 | fontSize:12, |
293 | - marginTop:4 | 302 | + marginTop:4, |
303 | + color: '#B0B0B0' | ||
294 | } | 304 | } |
295 | }); | 305 | }); |
-
Please register or login to post a comment