...
|
...
|
@@ -4,7 +4,6 @@ import React from 'react'; |
|
|
import Immutable, {Map} from 'immutable';
|
|
|
import YH_Image from '../../common/components/YH_Image';
|
|
|
import {getSlicedUrl} from '../../classify/utils/Utils';
|
|
|
import DeleteLineText from '../../common/components/DeleteLineText';
|
|
|
|
|
|
import ReactNative, {
|
|
|
View,
|
...
|
...
|
@@ -50,12 +49,7 @@ export default class GroupProductCell extends React.Component { |
|
|
</View>
|
|
|
<View style={styles.priceView}>
|
|
|
<Text style={styles.price1}>¥{collagePrice}</Text>
|
|
|
<DeleteLineText
|
|
|
style={styles.oldPriceContainer}
|
|
|
textStyle={styles.price2}
|
|
|
lineStyle={styles.deleteLine}
|
|
|
text={deleteLineText}
|
|
|
/>
|
|
|
<Text style={[styles.price2, {textDecorationLine: 'line-through'}]}>{deleteLineText}</Text>
|
|
|
</View>
|
|
|
<View style={styles.buttonView}>
|
|
|
<ImageBackground
|
...
|
...
|
@@ -150,16 +144,12 @@ let styles = StyleSheet.create({ |
|
|
color: '#D0021B',
|
|
|
},
|
|
|
|
|
|
oldPriceContainer: {
|
|
|
flexDirection: 'row',
|
|
|
height: 12*DEVICE_WIDTH_RATIO,
|
|
|
marginLeft: 10*DEVICE_WIDTH_RATIO,
|
|
|
marginTop: 1,
|
|
|
},
|
|
|
|
|
|
price2: {
|
|
|
fontSize: 12*DEVICE_WIDTH_RATIO,
|
|
|
lineHeight: 12*DEVICE_WIDTH_RATIO,
|
|
|
height: 12*DEVICE_WIDTH_RATIO,
|
|
|
marginLeft: 10*DEVICE_WIDTH_RATIO,
|
|
|
marginTop : 2,
|
|
|
color: '#B0B0B0',
|
|
|
alignItems: 'center',
|
|
|
},
|
...
|
...
|
@@ -196,14 +186,6 @@ let styles = StyleSheet.create({ |
|
|
color: 'white',
|
|
|
},
|
|
|
|
|
|
deleteLine: {
|
|
|
position: 'absolute',
|
|
|
top: (12*DEVICE_WIDTH_RATIO / 2) - 0.8,
|
|
|
left: 0,
|
|
|
right: 0,
|
|
|
height: 1,
|
|
|
backgroundColor: '#b0b0b0',
|
|
|
},
|
|
|
line: {
|
|
|
width,
|
|
|
height: 1,
|
...
|
...
|
|