Authored by 于良

店铺和领券中心埋点修正 review by 盖剑秋

... ... @@ -172,15 +172,17 @@ class BrandStoreContainer extends Component {
let url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${productSkn}"}}`;
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
let productId = product && product.get('product_id', 0);
let order = orderWithString(this.props.brandStore.productList.order);
let param = {
TYPE_ID: 6,
ENT_ID: this.props.brandStore.shopId,
I_INDEX: rowId+1,
PRD_ID: productSkn,
I_INDEX: rowId+1,
PRD_ID: productId,
SORT_TYPE: order,
REC_ID: this.props.brandStore.productList.recId,
}
ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_GOODS_LIST_DT', param);
}
... ... @@ -304,7 +306,7 @@ class BrandStoreContainer extends Component {
TAB_ID: value,
TAB_NAME: name,
}
ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_BRAND_SHOP_GOODS_LIST_C', param);
ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_BRAND_SHOP_TAB_C', param);
}
... ...
... ... @@ -568,16 +568,20 @@ export function getProductList(reload=false) {
function exploseProductList(shopId, order, allFilterFactors, brandId, recId, list) {
return (dispatch, getState) => {
let productIdStr = '';
list && list.map((item) => {
productIdStr += item.product_id + ',';
});
let param = {
TYPE_ID: 6,
ENT_ID: shopId,
TOTAL: list.length,
PRD_LIST: list,
PRD_LIST: productIdStr,
SORT_TYPE: orderWithString(order),
REC_ID: recId,
};
ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_GOODS_LIST', param)
ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_GOODS_LIST', param);
};
}
... ...
... ... @@ -278,6 +278,14 @@ export function getCoupon(couponID) {
}
dispatch(getCouponSuccess(floors));
let param = {
PAGE_NM: '领券中心',
PAGE_URL: '',
COUP_ID: couponID,
};
ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_GET_COUP', param);
}
dispatch(getCouponRequest());
... ...