...
|
...
|
@@ -15,7 +15,12 @@ import ReactNative, { |
|
|
Platform,
|
|
|
} from 'react-native';
|
|
|
|
|
|
|
|
|
let nameIndent;
|
|
|
if (Platform.OS === 'ios') {
|
|
|
nameIndent = ' ';
|
|
|
} else {
|
|
|
nameIndent = ' ';
|
|
|
}
|
|
|
|
|
|
export default class GroupDetailProduct extends React.Component {
|
|
|
|
...
|
...
|
@@ -31,7 +36,7 @@ export default class GroupDetailProduct extends React.Component { |
|
|
let productName = resource.productName;
|
|
|
let productSalePrice = resource.productSalePrice;
|
|
|
let productSkn = resource.productSkn;
|
|
|
|
|
|
|
|
|
return (
|
|
|
<View style={styles.container}>
|
|
|
|
...
|
...
|
@@ -41,10 +46,8 @@ export default class GroupDetailProduct extends React.Component { |
|
|
<YH_Image style={styles.image} url={productIcon}></YH_Image>
|
|
|
<View style={styles.right}>
|
|
|
<View style={styles.titleView}>
|
|
|
<View style={styles.wrapRow}>
|
|
|
{joinLimit == 1 && <Image style={styles.priceImg} source={require('../images/ptj_tab.png')}/>}
|
|
|
<Text style={styles.title} numberOfLines={2}>{productName}</Text>
|
|
|
</View>
|
|
|
{joinLimit == 1 && <Image style={styles.priceImg} source={require('../images/ptj_tab.png')}/>}
|
|
|
<Text style={styles.title} numberOfLines={2}>{(joinLimit == 1 ? nameIndent : '') + productName}</Text>
|
|
|
</View>
|
|
|
<View style={styles.priceView}>
|
|
|
<Text style={styles.price1}>{productGroupPrice}</Text>
|
...
|
...
|
@@ -94,17 +97,16 @@ let styles = StyleSheet.create({ |
|
|
},
|
|
|
titleView: {
|
|
|
width: 174*DEVICE_WIDTH_RATIO,
|
|
|
height: 32*DEVICE_WIDTH_RATIO,
|
|
|
height: 40*DEVICE_WIDTH_RATIO,
|
|
|
marginTop: 17*DEVICE_WIDTH_RATIO,
|
|
|
marginLeft: 10*DEVICE_WIDTH_RATIO,
|
|
|
},
|
|
|
wrapRow: {
|
|
|
flexDirection: 'row',
|
|
|
alignItems: 'center'
|
|
|
},
|
|
|
title: {
|
|
|
fontSize: 12,
|
|
|
color: '#444444',
|
|
|
includeFontPadding: false,
|
|
|
textAlignVertical: 'top',
|
|
|
lineHeight: 20,
|
|
|
},
|
|
|
subPriceView: {
|
|
|
width: 174*DEVICE_WIDTH_RATIO,
|
...
|
...
|
@@ -123,7 +125,7 @@ let styles = StyleSheet.create({ |
|
|
width: 174*DEVICE_WIDTH_RATIO,
|
|
|
height: 21*DEVICE_WIDTH_RATIO,
|
|
|
marginLeft: 10*DEVICE_WIDTH_RATIO,
|
|
|
marginTop: 33*DEVICE_WIDTH_RATIO,
|
|
|
marginTop: 25*DEVICE_WIDTH_RATIO,
|
|
|
flexDirection: 'row',
|
|
|
alignItems: 'center',
|
|
|
},
|
...
|
...
|
@@ -140,6 +142,8 @@ let styles = StyleSheet.create({ |
|
|
textAlign: 'center',
|
|
|
},
|
|
|
priceImg: {
|
|
|
top: 3*DEVICE_WIDTH_RATIO,
|
|
|
position: 'absolute',
|
|
|
marginRight: 5,
|
|
|
},
|
|
|
price1: {
|
...
|
...
|
|