...
|
...
|
@@ -42,6 +42,7 @@ class OutletContainer extends Component { |
|
|
super(props);
|
|
|
this._getOutletHomeResource = this._getOutletHomeResource.bind(this);
|
|
|
this._onPressProduct = this._onPressProduct.bind(this);
|
|
|
this._onPressProductListProduct = this._onPressProductListProduct.bind(this);
|
|
|
this._onPressFilter = this._onPressFilter.bind(this);
|
|
|
this._getOutletActivityList = this._getOutletActivityList.bind(this);
|
|
|
this._onEndReached = this._onEndReached.bind(this);
|
...
|
...
|
@@ -76,9 +77,19 @@ class OutletContainer extends Component { |
|
|
}
|
|
|
|
|
|
_onPressProduct(url){
|
|
|
console.log('_onPressProduct = '+url);
|
|
|
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
|
|
|
}
|
|
|
|
|
|
_onPressProductListProduct(product) {
|
|
|
let productSkn = product && product.get('product_skn', 0);
|
|
|
if (!productSkn) {
|
|
|
return;
|
|
|
}
|
|
|
let url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${productSkn}"}}`;
|
|
|
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
|
|
|
}
|
|
|
|
|
|
|
|
|
_onPressFilter(content_code,value,categoryNavigationItem){
|
|
|
this.props.actions.onPressFilter(content_code,value);
|
|
|
let list = categoryNavigationItem.list;
|
...
|
...
|
@@ -100,6 +111,7 @@ class OutletContainer extends Component { |
|
|
setActivityFliter = {this._setActivityFliter}
|
|
|
getOutletActivityList = {this._getOutletActivityList}
|
|
|
onPressProduct = {this._onPressProduct}
|
|
|
onPressProductListProduct = {this._onPressProductListProduct}
|
|
|
onPressFilter = {this._onPressFilter}
|
|
|
onEndReached = {this._onEndReached}
|
|
|
/>
|
...
|
...
|
|