Authored by 陈林

增加了品类热门推荐埋点。review by 孙凯。

... ... @@ -158,6 +158,24 @@ class CategoryBContainer extends Component {
}
}
_onPressHotRecommendItem(url, index = 0) {
if (url && url.length) {
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
//埋点
let {currentChannelId, currentCateId} = this.props.categoryB;
let params = {
TAB_ID: currentChannelId + '',
F_ID: "1004",
F_NAME: "热门推荐",
F_INDEX: "2",
L1_CATE: currentCateId + '',
I_INDEX: parseInt(index) + 1 + '',
};
NativeModules.YH_CommonHelper.logEvent('YB_CATEGORY_CAT_FLR_C', params);
}
}
_onPressCategoryBMore() {
let {currentChannelId, currentCateId} = this.props.categoryB;
this.props.actions.pressCategoryBMore(currentCateId);
... ... @@ -167,7 +185,7 @@ class CategoryBContainer extends Component {
TAB_ID: currentChannelId + '',
F_ID: "1002",
F_NAME: "MORE",
F_INDEX: "2",
F_INDEX: "3",
L1_CATE: currentCateId + '',
L2_CATE: "",
I_INDEX: '0',
... ... @@ -175,11 +193,7 @@ class CategoryBContainer extends Component {
NativeModules.YH_CommonHelper.logEvent('YB_CATEGORY_CAT_FLR_C', params);
}
_onPressHotRecommendItem(url, index = 0) {
if (url && url.length) {
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
}
}
_onPressHotCategoryItem(value, index) {
let {currentChannelId, currentCateId, currentCateValue} = this.props.categoryB;
... ... @@ -199,7 +213,7 @@ class CategoryBContainer extends Component {
TAB_ID: currentChannelId + '',
F_ID: "1002",
F_NAME: "全部"+currentCateValue,
F_INDEX: "2",
F_INDEX: "3",
L1_CATE: currentCateId + '',
L2_CATE: subcategoryId + '',
I_INDEX: parseInt(index) + 1 + '',
... ... @@ -217,7 +231,7 @@ class CategoryBContainer extends Component {
TAB_ID: currentChannelId + '',
F_ID: "1003",
F_NAME: "热门品牌",
F_INDEX: "3",
F_INDEX: "4",
L1_CATE: currentCateId + '',
I_INDEX: parseInt(index) + 1 + '',
BRAND_ID: data.id + '',
... ...