...
|
...
|
@@ -92,13 +92,17 @@ export default class HotCategoryList extends Component { |
|
|
...yh_exposureData
|
|
|
};
|
|
|
}
|
|
|
let slashTextStyle = {};
|
|
|
if (rowData.get('category_name') && rowData.get('category_name').indexOf('/') > 0) {
|
|
|
slashTextStyle = {marginTop: -6 * DEVICE_WIDTH_RATIO}
|
|
|
}
|
|
|
return (
|
|
|
<TouchableOpacity yh_exposureData={yh_exposureData} onPress={() => this.props.onPressHotCategoryItem && this.props.onPressHotCategoryItem(rowData.toJS(), rowID)}>
|
|
|
<View style={[styles.rowContainer, topMargin]}>
|
|
|
{hasImage
|
|
|
? <YH_Image style={styles.rowThumbnail} key={imageUrl} url={imageUrl}/>
|
|
|
: <View style={styles.rowDefaultImageContainer}><Image style={styles.rowDefaultImage} source={require('../../images/yoho_icon.png')}/></View>}
|
|
|
<View style={styles.rowTextContainer}>
|
|
|
<View style={[styles.rowTextContainer, slashTextStyle]}>
|
|
|
<Text style={styles.rowText} numberOfLines={2}>{rowData.get("category_name")}</Text>
|
|
|
</View>
|
|
|
</View>
|
...
|
...
|
|