...
|
...
|
@@ -45,6 +45,25 @@ class SeckillContainer extends Component { |
|
|
this._onFocusToCurStartedActivity = this._onFocusToCurStartedActivity.bind(this);
|
|
|
this._onFetchDiscountProductList = this._onFetchDiscountProductList.bind(this);
|
|
|
this._onEndReached = this._onEndReached.bind(this);
|
|
|
this._onPressProduct = this._onPressProduct.bind(this);
|
|
|
}
|
|
|
|
|
|
_onPressProduct(product) {
|
|
|
|
|
|
this.props.actions.clickProductItem(product);
|
|
|
let productSkn = product && product.get('product_skn', 0);
|
|
|
|
|
|
if (!productSkn) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
let pageName = 'iFP_Alliance';
|
|
|
if (Platform.OS === 'android') {
|
|
|
pageName = 'aFP_Alliance';
|
|
|
}
|
|
|
let url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${productSkn}", "from_page_name":"${pageName}"}}`;
|
|
|
|
|
|
NativeModules.YH_CommonHelper.jumpWithUrl(url);
|
|
|
}
|
|
|
|
|
|
_onPressTimeItem(activity) {
|
...
|
...
|
@@ -128,6 +147,7 @@ class SeckillContainer extends Component { |
|
|
onFetchDiscountProductList={this._onFetchDiscountProductList}
|
|
|
onClearTipMessage={this._onClearTipMessage}
|
|
|
onFocusToCurStartedActivity={this._onFocusToCurStartedActivity}
|
|
|
onPressProduct={this._onPressProduct}
|
|
|
/>
|
|
|
);
|
|
|
}
|
...
|
...
|
|