Authored by shangjf

找相似优化 review by days

... ... @@ -103,7 +103,11 @@ class BrandStoreContainer extends Component {
}
_onPressFindSimilar(product) {
ReactNative.NativeModules.YH_CommonHelper.jumpFindSimilar(product);
if (!product) {
return;
}
ReactNative.NativeModules.YH_CommonHelper.jumpFindSimilar(product.toJS());
}
resetReceiveCouponResult(){
... ...
... ... @@ -140,7 +140,8 @@ class HomeContainer extends Component {
if (!product) {
return;
}
ReactNative.NativeModules.YH_CommonHelper.jumpFindSimilar(product);
ReactNative.NativeModules.YH_CommonHelper.jumpFindSimilar(product.toJS());
}
onPressDislike(product, similarIndex) {
... ...
... ... @@ -83,7 +83,11 @@ class NewArrivalContainer extends Component {
}
_onPressFindSimilar(product) {
ReactNative.NativeModules.YH_CommonHelper.jumpFindSimilar(product);
if (!product) {
return;
}
ReactNative.NativeModules.YH_CommonHelper.jumpFindSimilar(product.toJS());
}
_onPressDislike() {
... ...
... ... @@ -79,7 +79,11 @@ class RedPersonBrandContainer extends Component {
}
_onPressFindSimilar(product) {
ReactNative.NativeModules.YH_CommonHelper.jumpFindSimilar(product);
if (!product) {
return;
}
ReactNative.NativeModules.YH_CommonHelper.jumpFindSimilar(product.toJS());
}
... ...