Authored by 盖剑秋

Fix bugs that caused by code merging.

@@ -38,6 +38,7 @@ export default class Seckill extends Component { @@ -38,6 +38,7 @@ export default class Seckill extends Component {
38 this.tipMessage = ''; 38 this.tipMessage = '';
39 this.queryActivityInfo = Immutable.fromJS({}); 39 this.queryActivityInfo = Immutable.fromJS({});
40 this.firstLaunch = true; 40 this.firstLaunch = true;
  41 + this.renderDiscountProduct = this.renderDiscountProduct.bind(this)
41 } 42 }
42 43
43 44
@@ -145,6 +146,7 @@ export default class Seckill extends Component { @@ -145,6 +146,7 @@ export default class Seckill extends Component {
145 key={'row' + index} 146 key={'row' + index}
146 rowID={index} 147 rowID={index}
147 data={item} 148 data={item}
  149 + onPressProduct={this.props.onPressProduct}
148 /> 150 />
149 } 151 }
150 152
@@ -45,6 +45,25 @@ class SeckillContainer extends Component { @@ -45,6 +45,25 @@ class SeckillContainer extends Component {
45 this._onFocusToCurStartedActivity = this._onFocusToCurStartedActivity.bind(this); 45 this._onFocusToCurStartedActivity = this._onFocusToCurStartedActivity.bind(this);
46 this._onFetchDiscountProductList = this._onFetchDiscountProductList.bind(this); 46 this._onFetchDiscountProductList = this._onFetchDiscountProductList.bind(this);
47 this._onEndReached = this._onEndReached.bind(this); 47 this._onEndReached = this._onEndReached.bind(this);
  48 + this._onPressProduct = this._onPressProduct.bind(this);
  49 + }
  50 +
  51 + _onPressProduct(product) {
  52 +
  53 + this.props.actions.clickProductItem(product);
  54 + let productSkn = product && product.get('product_skn', 0);
  55 +
  56 + if (!productSkn) {
  57 + return;
  58 + }
  59 +
  60 + let pageName = 'iFP_Alliance';
  61 + if (Platform.OS === 'android') {
  62 + pageName = 'aFP_Alliance';
  63 + }
  64 + let url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${productSkn}", "from_page_name":"${pageName}"}}`;
  65 +
  66 + NativeModules.YH_CommonHelper.jumpWithUrl(url);
48 } 67 }
49 68
50 _onPressTimeItem(activity) { 69 _onPressTimeItem(activity) {
@@ -128,6 +147,7 @@ class SeckillContainer extends Component { @@ -128,6 +147,7 @@ class SeckillContainer extends Component {
128 onFetchDiscountProductList={this._onFetchDiscountProductList} 147 onFetchDiscountProductList={this._onFetchDiscountProductList}
129 onClearTipMessage={this._onClearTipMessage} 148 onClearTipMessage={this._onClearTipMessage}
130 onFocusToCurStartedActivity={this._onFocusToCurStartedActivity} 149 onFocusToCurStartedActivity={this._onFocusToCurStartedActivity}
  150 + onPressProduct={this._onPressProduct}
131 /> 151 />
132 ); 152 );
133 } 153 }