...
|
...
|
@@ -40,6 +40,8 @@ export default class LimitCodeProductsCell extends React.Component { |
|
|
let defaultUrl = data.defaultUrl;
|
|
|
let newSrc = getSlicedUrl(defaultUrl, 100, 100);
|
|
|
let price = data.price;
|
|
|
let priceNum = price.replace('¥', '');
|
|
|
let priceColor = parseFloat(priceNum) > 0 ? 'black' : '#b0b0b0';
|
|
|
let productName = data.productName;
|
|
|
let limitCode = data.limitCode;
|
|
|
let limitCodeTitle = '限购码: ' + limitCode;
|
...
|
...
|
@@ -65,7 +67,7 @@ export default class LimitCodeProductsCell extends React.Component { |
|
|
/>
|
|
|
<View style={styles.detailView}>
|
|
|
<Text style={styles.nameText} numberOfLines={2}>{productName}</Text>
|
|
|
<Text style={styles.priceText}>{price}</Text>
|
|
|
<Text style={{width: width - productIconWidth - 60,fontSize: 13,color: priceColor,marginTop: 15,marginLeft: 10,}}>{price}</Text>
|
|
|
</View>
|
|
|
</View>
|
|
|
</TouchableOpacity>
|
...
|
...
|
@@ -124,17 +126,8 @@ let styles = StyleSheet.create({ |
|
|
width: width - productIconWidth - 30,
|
|
|
height: backgroundHeigth - titleHeigth - 1,
|
|
|
},
|
|
|
priceText: {
|
|
|
width: width - productIconWidth - 60,
|
|
|
marginLeft: 3,
|
|
|
fontSize: 13,
|
|
|
color: 'black',
|
|
|
marginTop: 15,
|
|
|
marginLeft: 10,
|
|
|
},
|
|
|
nameText: {
|
|
|
width: width - productIconWidth - 60,
|
|
|
marginLeft: 3,
|
|
|
fontSize: 13,
|
|
|
color: 'black',
|
|
|
marginTop: 12,
|
...
|
...
|
|