...
|
...
|
@@ -79,6 +79,8 @@ class BrandStoreContainer extends Component { |
|
|
this._onPressCloseMoreFilter=this._onPressCloseMoreFilter.bind(this);
|
|
|
this.resetReceiveCouponResult=this.resetReceiveCouponResult.bind(this);
|
|
|
|
|
|
this._onLongPressProduct = this._onLongPressProduct.bind(this);
|
|
|
this._onPressFindSimilar = this._onPressFindSimilar.bind(this);
|
|
|
}
|
|
|
|
|
|
componentDidMount() {
|
...
|
...
|
@@ -94,6 +96,16 @@ class BrandStoreContainer extends Component { |
|
|
|
|
|
}
|
|
|
|
|
|
_onLongPressProduct(rowID) {
|
|
|
if (rowID) {
|
|
|
this.props.actions.setSimilarIndex(rowID);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
_onPressFindSimilar(product) {
|
|
|
ReactNative.NativeModules.YH_CommonHelper.jumpFindSimilar(product);
|
|
|
}
|
|
|
|
|
|
resetReceiveCouponResult(){
|
|
|
this.props.actions.resetReceiveCouponResult();
|
|
|
}
|
...
|
...
|
@@ -307,6 +319,7 @@ class BrandStoreContainer extends Component { |
|
|
TAB_NAME: name,
|
|
|
}
|
|
|
ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_BRAND_SHOP_TAB_C', param);
|
|
|
this.props.actions.setSimilarIndex(-1);
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
@@ -324,6 +337,7 @@ class BrandStoreContainer extends Component { |
|
|
this.props.actions.setProductListFilter(value);
|
|
|
this.props.actions.getProductList(true);
|
|
|
}
|
|
|
this.props.actions.setSimilarIndex(-1);
|
|
|
}
|
|
|
|
|
|
_onEndReached() {
|
...
|
...
|
@@ -365,6 +379,7 @@ class BrandStoreContainer extends Component { |
|
|
filterCategoryDetailFilterList,
|
|
|
filterNameFactors,
|
|
|
filterFactors,
|
|
|
similarIndex,
|
|
|
} = this.props.brandStore;
|
|
|
|
|
|
let isFetching = (storeFilter == 0 && resource.isFetching)
|
...
|
...
|
@@ -405,6 +420,9 @@ class BrandStoreContainer extends Component { |
|
|
resetReceiveCouponResult={this.resetReceiveCouponResult}
|
|
|
onPressFloorProduct={this._onPressFloorProduct}
|
|
|
onPressProductListProduct={this._onPressProductListProduct}
|
|
|
onLongPressProduct={this._onLongPressProduct}
|
|
|
onPressFindSimilar={this._onPressFindSimilar}
|
|
|
similarIndex={similarIndex}
|
|
|
/>
|
|
|
);
|
|
|
}
|
...
|
...
|
|