Authored by 盖剑秋

Fix bugs that caused by code merging.

... ... @@ -38,6 +38,7 @@ export default class Seckill extends Component {
this.tipMessage = '';
this.queryActivityInfo = Immutable.fromJS({});
this.firstLaunch = true;
this.renderDiscountProduct = this.renderDiscountProduct.bind(this)
}
... ... @@ -145,6 +146,7 @@ export default class Seckill extends Component {
key={'row' + index}
rowID={index}
data={item}
onPressProduct={this.props.onPressProduct}
/>
}
... ...
... ... @@ -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}
/>
);
}
... ...