...
|
...
|
@@ -1119,19 +1119,52 @@ function homeFloorAutoReportData(list,channel) { |
|
|
}
|
|
|
break;
|
|
|
}
|
|
|
case 'vipUse': {
|
|
|
case 'vipUse':
|
|
|
case 'activityProductFloor':
|
|
|
case 'new_user_floor': {
|
|
|
//more添加曝光数据
|
|
|
let title = floorData.title ? floorData.title : {};
|
|
|
let titleParam = autoReportData(channlStr,floorName,floorID,floorIndex,"0",title.more_url);
|
|
|
title.yh_exposureData = titleParam;
|
|
|
|
|
|
break;
|
|
|
//banner添加曝光数据
|
|
|
let banner = floorData.banner_image ? floorData.banner_image : [];
|
|
|
let bannerLength = banner.length ? banner.length : 0;
|
|
|
for (var j = 0; j < bannerLength; j++) {
|
|
|
let bannerItem = banner[j];
|
|
|
let inFloorIndex = parseInt(j) + 1 + '';
|
|
|
let actionUrl = bannerItem.url;
|
|
|
let param = autoReportData(channlStr,floorName,floorID,floorIndex,inFloorIndex,actionUrl);
|
|
|
bannerItem.yh_exposureData = param;
|
|
|
}
|
|
|
case 'activityProductFloor': {
|
|
|
|
|
|
//list添加曝光数据
|
|
|
let itemList = floorData.list ? floorData.list : [];
|
|
|
for (var j = 0; j < itemList.length; j++) {
|
|
|
let imageItem = itemList[j];
|
|
|
let inFloorIndex = parseInt(j) + 1 + bannerLength + '';
|
|
|
let skn = imageItem.product_skn;
|
|
|
let param = autoReportData(channlStr,floorName,floorID,floorIndex,inFloorIndex,"",skn);
|
|
|
imageItem.yh_exposureData = param;
|
|
|
}
|
|
|
break;
|
|
|
}
|
|
|
case 'hot_category_individualization': {
|
|
|
//more添加曝光数据
|
|
|
let title = floorData.title ? floorData.title : {};
|
|
|
let moreUrl = title.more_url ? title.more_url : "";
|
|
|
let titleParam = autoReportData(channlStr,floorName,floorID,floorIndex,"0",moreUrl);
|
|
|
title.yh_exposureData = titleParam ? titleParam : "";
|
|
|
|
|
|
break;
|
|
|
//list添加曝光数据
|
|
|
let itemList = floorData.list ? floorData.list : [];
|
|
|
for (let j = 0; j < itemList.length; j++) {
|
|
|
let imageItem = itemList[j];
|
|
|
let inFloorIndex = parseInt(j) + 1 + '';
|
|
|
let actionUrl = imageItem.url;
|
|
|
let param = autoReportData(channlStr,floorName,floorID,floorIndex,inFloorIndex,actionUrl);
|
|
|
imageItem.yh_exposureData = param;
|
|
|
}
|
|
|
case 'new_user_floor': {
|
|
|
break;
|
|
|
}
|
|
|
}
|
...
|
...
|
|