...
|
...
|
@@ -22,12 +22,18 @@ export default class AllBrandListCell extends React.Component { |
|
|
let name = this.props.rowData.brand_name;
|
|
|
let is_hot = this.props.rowData.is_hot;
|
|
|
let is_show_new = this.props.rowData.is_show_new;
|
|
|
let brand_id = this.props.rowData.id;
|
|
|
let url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.brand","params":{"brand_id":"${brand_id}"}}`;
|
|
|
return(
|
|
|
<View style={styles.rowTitle}>
|
|
|
<Text style={styles.rowText}>{name}</Text>
|
|
|
{is_show_new=='Y'?<View style={styles.new}><Text style={styles.text}>NEW</Text></View>:null}
|
|
|
{is_hot=='Y'?<View style={styles.hot}><Text style={styles.text}>HOT</Text></View>:null}
|
|
|
</View>
|
|
|
<TouchableOpacity activeOpacity={0.5} onPress={() => {
|
|
|
this.props.onPressSlideItem && this.props.onPressSlideItem(url);
|
|
|
}}>
|
|
|
<View style={styles.rowTitle}>
|
|
|
<Text style={styles.rowText}>{name}</Text>
|
|
|
{is_show_new=='Y'?<View style={styles.new}><Text style={styles.text}>NEW</Text></View>:null}
|
|
|
{is_hot=='Y'?<View style={styles.hot}><Text style={styles.text}>HOT</Text></View>:null}
|
|
|
</View>
|
|
|
</TouchableOpacity>
|
|
|
);
|
|
|
}
|
|
|
};
|
...
|
...
|
|