Authored by 孙凯

修改 跳转规则 review by hongmo

... ... @@ -24,10 +24,10 @@ export default class AllBrandListCell extends React.Component {
let is_show_new = this.props.rowData.is_show_new;
let shop_id = this.props.rowData.shop_id;
let shop_template_type = this.props.rowData.shop_template_type;
let url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.shop","params":{"shop_id":"${shop_id}","shop_template_type":"${shop_template_type}","name":"${name}"}}`;
return(
return(
<TouchableOpacity activeOpacity={0.5} onPress={() => {
this.props.onPressSlideItem && this.props.onPressSlideItem(url);
this.props.onPressSlideItem && this.props.onPressSlideItem(this.props.rowData);
}}>
<View style={styles.rowTitle}>
<Text style={styles.rowText}>{name}</Text>
... ...
... ... @@ -29,7 +29,7 @@ export default class BannerReourceList extends React.Component {
let newSrc = getSlicedUrl(rowData.src, 140, 100, 2);
return (
<TouchableOpacity activeOpacity={0.5} onPress={() => {
this.props.onPressSlideItem && this.props.onPressSlideItem(rowData.url);
this.props.onPressSlideItem && this.props.onPressSlideItem(rowData);
}}>
<View style={styles.row}>
<View style={styles.thumbnailV}>
... ...
... ... @@ -25,11 +25,10 @@ export default class NewHotBannerListCell extends React.Component {
let name = rowData.brand_name;
let shop_id = rowData.shop_id;
let shop_template_type = rowData.shop_template_type;
let url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.shop","params":{"shop_id":"${shop_id}","shop_template_type":"${shop_template_type}","name":"${name}"}}`;
return (
<TouchableOpacity activeOpacity={0.5} onPress={() => {
this.props.onPressSlideItem && this.props.onPressSlideItem(url);
this.props.onPressSlideItem && this.props.onPressSlideItem(rowData);
}}>
<View style={styles.rowContainer}>
<Image
... ...
... ... @@ -84,8 +84,8 @@ class BrandContainer extends Component {
this.subscription && this.subscription.remove();
}
_onPressSlideItem(url){
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
_onPressSlideItem(data){
ReactNative.NativeModules.YH_ClassifyHelper.pushBrandVC(data);
}
_onPressFilter(value) {
... ...