Authored by 孙凯

修改 事件点击 review by zhanglixia

... ... @@ -120,7 +120,7 @@ export default class RedBrand extends Component {
key={'row' + rowID}
rowID={rowID}
data={rowData}
onPressProduct={this.props.onPressProduct}/>
onPressProduct={this.props.onPressProductCell}/>
);
}
return null;
... ...
... ... @@ -44,6 +44,7 @@ class RedPersonBrandContainer extends Component {
this._onPressLaunchProfile = this._onPressLaunchProfile.bind(this);
this._onPressVideo = this._onPressVideo.bind(this);
this._onPressProduct = this._onPressProduct.bind(this);
this._onPressProductCell = this._onPressProductCell.bind(this);
this._onPressProductFilter = this._onPressProductFilter.bind(this);
this._onEndReached = this._onEndReached.bind(this);
this._onPressProductFilterLeftItem=this._onPressProductFilterLeftItem.bind(this);
... ... @@ -94,6 +95,15 @@ class RedPersonBrandContainer extends Component {
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
}
_onPressProductCell(product, rowId=0) {
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);
}
_onPressProduct(linkType,linkReource){
let url = '';
if (!linkReource) {
... ... @@ -206,6 +216,7 @@ class RedPersonBrandContainer extends Component {
resetReceiveCouponResult={this.resetReceiveCouponResult}
onPressCollection={this._onPressCollection}
onPressLink={this._onPressLink}
onPressProductCell={this._onPressProductCell}
/>
);
}
... ...