Authored by Kennaki

修复新品到着文章阅读数超出范围的UI问题。

... ... @@ -61,7 +61,7 @@ export default class ProductListCell extends Component {
<Image style={styles.clockImage} source={require('../../image/time_ic.png')}/>
<Text style={styles.text}>{publish_time}</Text>
<Image style={styles.eyeImage} source={require('../../image/eye_ic.png')}/>
<Text style={styles.text}>{browse}{show10K?'万':''}</Text>
<Text style={styles.eyeText} numberOfLines={1}>{browse}{show10K?'万':''}</Text>
</View>
</View>
... ... @@ -96,6 +96,8 @@ let priceMarginTop = Math.ceil(-4 * DEVICE_WIDTH_RATIO);
let gpSoldOutImageHeight = Math.ceil(25 * DEVICE_WIDTH_RATIO);
let tagHeight = Math.ceil(14 * DEVICE_WIDTH_RATIO);
let footerWidth = Platform.OS === 'ios' ? rowWidth-20 : rowWidth-16;
let styles = StyleSheet.create({
container: {
width: rowWidth,
... ... @@ -136,7 +138,7 @@ let styles = StyleSheet.create({
lineHeight: 22,
},
footContainer: {
width: Platform.OS === 'ios' ? rowWidth-20 : rowWidth-16,
width: footerWidth,
height: 18,
flexDirection: 'row',
alignItems: 'center',
... ... @@ -158,5 +160,12 @@ let styles = StyleSheet.create({
marginLeft: 5,
marginRight: 0,
},
eyeText: {
fontSize: 10,
color: 'white',
marginLeft: 5,
marginRight: 0,
width: width==320?10:28,
},
});
... ...