Authored by 孙凯

修改 跳转规则 review by hongmo

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