Authored by 张丽霞

进店店铺埋点,review by 孙凯

... ... @@ -162,8 +162,6 @@ class BrandStoreContainer extends Component {
TEMPLATE_TYPE:this.props.brandStore.info.shop_template_type,
IS_RED: 0,
}
console.log('------各楼层');
console.log(param);
ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_BRAND_SHOP_HOME_FLR_C', param);
}
... ... @@ -204,15 +202,18 @@ class BrandStoreContainer extends Component {
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: productId,
SHOP_ID: this.props.brandStore.shopId,
TAB_ID: 0,
TAB_NAME: '首页',
SORT_TYPE: order,
REC_ID: this.props.brandStore.productList.recId,
PRD_ID: productSkn,
IS_RED: 0,
TEMPLATE_TYPE:this.props.brandStore.info.shop_template_type,
FILTER_VALUE: this.props.brandStore.filterNameFactors.toJS(),
}
ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_GOODS_LIST_DT', param);
console.log('------点击品牌店铺页中全部TAB中的商品列表时---111---');
console.log(param);
ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_BRAND_SHOP_GOODS_LIST_C', param);
}
... ... @@ -221,26 +222,31 @@ class BrandStoreContainer extends Component {
if (!productSkn) {
return;
}
let url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${productSkn}"}}`;
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
if (this.props.brandStore.storeFilter == 1) {
let param = {
SHOP_ID: this.props.brandStore.shopId,
BRAND_ID: this.props.brandStore.resource.brandBrowse.brandId,
TAB_ID: 1,
TAB_NAME: '上新',
PRD_ID: productSkn,
IS_RED: 0,
TEMPLATE_TYPE:this.props.brandStore.info.shop_template_type,
}
console.log('------点击品牌店铺页中全部TAB中的商品列表时---111---');
console.log(param);
ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_BRAND_SHOP_GOODS_LIST_C', param);
} else if (this.props.brandStore.storeFilter == 2) {
let param = {
SHOP_ID: this.props.brandStore.shopId,
BRAND_ID: this.props.brandStore.resource.brandBrowse.brandId,
TAB_ID: 2,
TAB_NAME: '人气',
PRD_ID: productSkn,
IS_RED: 0,
TEMPLATE_TYPE:this.props.brandStore.info.shop_template_type,
}
console.log('------点击品牌店铺页中全部TAB中的商品列表时---111---');
console.log(param);
ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_BRAND_SHOP_GOODS_LIST_C', param);
}
}
... ...