Authored by 盖剑秋

Log event for good goods recommend like action.

... ... @@ -46,6 +46,12 @@ export function onPressPraise() {
let likeCount = json.total;
dispatch(likeSuccess({likeStatus, likeCount}));
NativeModules.YH_CommonHelper.goodGoodsRecommendDetailPraiseStatusChanged({likeStatus, likeCount});
let param = {
PRD_SKN: product_skn,
LIKE_TYPE: forLike? 1: 2,
POS_ID: 102,
}
NativeModules.YH_CommonHelper.logEvent('YB_GOOD_GDS_LIKE_C', param);
}).catch(error => {
dispatch(likeSuccess({likeStatus: detail.get('is_praised'), likeCount: detail.get('total_praised')}));
});
... ...
... ... @@ -63,6 +63,12 @@ export function like(index) {
let likeCount = json.total;
let newProduct = currentProduct.set('is_praised', likeStatus).set('total_praised', likeCount);
dispatch(likeSuccess(newProduct, index));
let param = {
PRD_SKN: product_skn,
LIKE_TYPE: forLike? 1: 2,
POS_ID: 101,
}
NativeModules.YH_CommonHelper.logEvent('YB_GOOD_GDS_LIKE_C', param);
}).catch(error => {
dispatch(likeSuccess(currentProduct, index));
});
... ...