...
|
...
|
@@ -815,10 +815,10 @@ function homeFloorAutoReportData(list,channel) { |
|
|
let params = autoReportData(channlStr,floorName,floorID,floorIndex,inFloorIndex,actionUrl);
|
|
|
hotBrandsItem.yh_exposureData = params;
|
|
|
}
|
|
|
|
|
|
let inFloorIndex = parseInt(hotBrandsList.length) + 1;
|
|
|
let hotBrandsMore = item.data.image;
|
|
|
let actionUrl = hotBrandsMore.url?hotBrandsMore.url:'';
|
|
|
let param = autoReportData(channlStr,floorName,floorID,floorIndex,6,actionUrl);
|
|
|
let param = autoReportData(channlStr,floorName,floorID,floorIndex,inFloorIndex,actionUrl);
|
|
|
hotBrandsMore.yh_exposureData = param;
|
|
|
|
|
|
break;
|
...
|
...
|
@@ -878,7 +878,7 @@ function homeFloorAutoReportData(list,channel) { |
|
|
}
|
|
|
let moreItem = item.data.title?item.data.title:null;
|
|
|
let actionUrl = moreItem.more_url?moreItem.more_url:'';
|
|
|
let inFloorIndex = 0;
|
|
|
let inFloorIndex = "0";
|
|
|
let param = autoReportData(channlStr,floorName,floorID,floorIndex,inFloorIndex,actionUrl);
|
|
|
moreItem.yh_exposureData = param;
|
|
|
break;
|
...
|
...
|
@@ -904,7 +904,7 @@ function homeFloorAutoReportData(list,channel) { |
|
|
}
|
|
|
let moreItem = item.data.title?item.data.title:null;
|
|
|
let actionUrl = moreItem.more_url?moreItem.more_url:'';
|
|
|
let inFloorIndex = 0;
|
|
|
let inFloorIndex = "0";
|
|
|
let param = autoReportData(channlStr,floorName,floorID,floorIndex,inFloorIndex,actionUrl);
|
|
|
moreItem.yh_exposureData = param;
|
|
|
break;
|
...
|
...
|
@@ -945,7 +945,7 @@ function homeFloorAutoReportData(list,channel) { |
|
|
if (is_show) {
|
|
|
let moreItem = item.data.title?item.data.title:null;
|
|
|
let actionUrl = moreItem.more_url?moreItem.more_url:'';
|
|
|
let inFloorIndex = 0;
|
|
|
let inFloorIndex = "0";
|
|
|
let param = autoReportData(channlStr,floorName,floorID,floorIndex,inFloorIndex,actionUrl);
|
|
|
moreItem.yh_exposureData = param;
|
|
|
}
|
...
|
...
|
@@ -972,7 +972,7 @@ function homeFloorAutoReportData(list,channel) { |
|
|
|
|
|
let moreItem = item.data.title?item.data.title:null;
|
|
|
let actionUrl = moreItem.more_url?moreItem.more_url:'';
|
|
|
let inFloorIndex = 0;
|
|
|
let inFloorIndex = "0";
|
|
|
let param = autoReportData(channlStr,floorName,floorID,floorIndex,inFloorIndex,actionUrl);
|
|
|
moreItem.yh_exposureData = param;
|
|
|
break;
|
...
|
...
|
@@ -989,7 +989,7 @@ function homeFloorAutoReportData(list,channel) { |
|
|
|
|
|
let moreItem = item.data.title?item.data.title:null;
|
|
|
let actionUrl = moreItem.more_url?moreItem.more_url:'';
|
|
|
let inFloorIndex = 0;
|
|
|
let inFloorIndex = "0";
|
|
|
let param = autoReportData(channlStr,floorName,floorID,floorIndex,inFloorIndex,actionUrl);
|
|
|
moreItem.yh_exposureData = param;
|
|
|
break;
|
...
|
...
|
@@ -1008,7 +1008,7 @@ function homeFloorAutoReportData(list,channel) { |
|
|
|
|
|
let moreItem = item.data.title?item.data.title:null;
|
|
|
let actionUrl = moreItem.more_url?moreItem.more_url:'';
|
|
|
let inFloorIndex = 0;
|
|
|
let inFloorIndex = "0";
|
|
|
let param = autoReportData(channlStr,floorName,floorID,floorIndex,inFloorIndex,actionUrl);
|
|
|
moreItem.yh_exposureData = param;
|
|
|
break;
|
...
|
...
|
@@ -1087,7 +1087,8 @@ function homeFloorAutoReportData(list,channel) { |
|
|
let imageItem = itemList[j];
|
|
|
let inFloorIndex = parseInt(j) + 1 + bannerLength + '';
|
|
|
let skn = imageItem.product_skn;
|
|
|
let param = autoReportData(channlStr,floorName,floorID,floorIndex,inFloorIndex,"",skn);
|
|
|
let actionUrl = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${skn}"}}`;
|
|
|
let param = autoReportData(channlStr,floorName,floorID,floorIndex,inFloorIndex,actionUrl,skn);
|
|
|
imageItem.yh_exposureData = param;
|
|
|
}
|
|
|
break;
|
...
|
...
|
@@ -1204,7 +1205,7 @@ function homeFloorAutoReportData(list,channel) { |
|
|
let title = floorData.title ? floorData.title : {};
|
|
|
let titleParam = autoReportData(channlStr,floorName,floorID,floorIndex,"0",title.more_url);
|
|
|
title.yh_exposureData = titleParam;
|
|
|
|
|
|
|
|
|
//banner添加曝光数据
|
|
|
let banner = floorData.banner_image ? floorData.banner_image : [];
|
|
|
let bannerLength = banner.length ? banner.length : 0;
|
...
|
...
|
@@ -1222,7 +1223,8 @@ function homeFloorAutoReportData(list,channel) { |
|
|
let imageItem = itemList[j];
|
|
|
let inFloorIndex = parseInt(j) + 1 + bannerLength + '';
|
|
|
let skn = imageItem.product_skn;
|
|
|
let param = autoReportData(channlStr,floorName,floorID,floorIndex,inFloorIndex,"",skn);
|
|
|
let actionUrl = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${skn}"}}`;
|
|
|
let param = autoReportData(channlStr,floorName,floorID,floorIndex,inFloorIndex,actionUrl,skn);
|
|
|
imageItem.yh_exposureData = param;
|
|
|
}
|
|
|
break;
|
...
|
...
|
@@ -1258,7 +1260,11 @@ function autoReportData(channlStr='boy',floorName='',floorID=1,floorIndex=1,inFl |
|
|
param = {
|
|
|
P_NAME : "iFP_Home",
|
|
|
P_PARAM : channlStr,
|
|
|
F_NAME : floorName,
|
|
|
F_ID : floorID,
|
|
|
F_INDEX : floorIndex,
|
|
|
I_INDEX : inFloorIndex,
|
|
|
ACTION_URL : actionUrl,
|
|
|
PRD_SKN : skn,
|
|
|
exposureEnd : 1,
|
|
|
}
|
...
|
...
|
|