Merge remote-tracking branch 'origin/5.4.1' into 5.4.1
Showing
1 changed file
with
1 additions
and
8 deletions
@@ -43,14 +43,7 @@ export default class ShopRecommend extends Component{ | @@ -43,14 +43,7 @@ export default class ShopRecommend extends Component{ | ||
43 | let shopId = event.nativeEvent.shopId; | 43 | let shopId = event.nativeEvent.shopId; |
44 | this.props.onPressShopFavorite && this.props.onPressShopFavorite(shopId, index); | 44 | this.props.onPressShopFavorite && this.props.onPressShopFavorite(shopId, index); |
45 | } else { | 45 | } else { |
46 | - let url; | ||
47 | - if (type == 'top') { | ||
48 | - url = this.props.data.get('list').get(index).get('url'); | ||
49 | - } else if (type == 'left') { | ||
50 | - url = this.props.data.get('list').get(index).get('goods0').get('url'); | ||
51 | - } else { | ||
52 | - url = this.props.data.get('list').get(index).get('goods1').get('url'); | ||
53 | - } | 46 | + let url = event.nativeEvent.url;; |
54 | this.props.onPressShopRecommendItem && this.props.onPressShopRecommendItem(url, index); | 47 | this.props.onPressShopRecommendItem && this.props.onPressShopRecommendItem(url, index); |
55 | } | 48 | } |
56 | } | 49 | } |
-
Please register or login to post a comment