...
|
...
|
@@ -44,7 +44,7 @@ function composeFloorData(payload, channel=1) { |
|
|
|
|
|
let expsoeItem = exposeDataForFloor(item, i, channel);
|
|
|
payload.list[i] = expsoeItem;
|
|
|
|
|
|
|
|
|
allFloorHeight = allFloorHeight + floorHeight;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -764,7 +764,7 @@ function homeDataParse(data, channel) { |
|
|
let {list, cached, isFetching, isFirstLoad, endReached, favorite, bottomBanner, hotList, newList, selectIndex} = data;
|
|
|
let floorList = list.size > 0 ? list.toArray() : cached.get('list').toArray();
|
|
|
let favoriteList = favorite ? favorite.get('list') : null;
|
|
|
|
|
|
|
|
|
let bottomBannerList = bottomBanner ? bottomBanner.get('list') : null;
|
|
|
|
|
|
let dataSource = {};
|
...
|
...
|
@@ -923,7 +923,6 @@ function parseReportData(list) { |
|
|
let bannerItem = bannerList[j];
|
|
|
let bannerParam = {
|
|
|
'I_INDEX': j+1,
|
|
|
'IMAGE_URL': bannerItem&&bannerItem.src ? bannerItem.src : '',
|
|
|
'ACTION_URL': bannerItem&&bannerItem.url ? bannerItem.url : ''
|
|
|
};
|
|
|
floorDataArr.push(bannerParam);
|
...
|
...
|
@@ -934,7 +933,6 @@ function parseReportData(list) { |
|
|
let announceItem = announceList[j];
|
|
|
let announceParam = {
|
|
|
'I_INDEX': j+1,
|
|
|
'IMAGE_URL': floorItem&&floorItem.announcement_img ? floorItem.announcement_img : '',
|
|
|
'ACTION_URL': announceItem&&announceItem.url ? announceItem.url : ''
|
|
|
};
|
|
|
floorDataArr.push(announceParam);
|
...
|
...
|
@@ -949,14 +947,12 @@ function parseReportData(list) { |
|
|
let brandItem = brandList[j];
|
|
|
let brandParam = {
|
|
|
'I_INDEX': j+1,
|
|
|
'IMAGE_URL': brandItem&&brandItem.src ? brandItem.src : '',
|
|
|
'ACTION_URL': brandItem&&brandItem.url ? brandItem.url : ''
|
|
|
};
|
|
|
floorDataArr.push(brandParam);
|
|
|
}
|
|
|
let moreParam = {
|
|
|
'I_INDEX': brandList.length+1,
|
|
|
'IMAGE_URL': moreItem&&moreItem.src ? moreItem.src : '',
|
|
|
'ACTION_URL': moreItem&&moreItem.url ? moreItem.url : ''
|
|
|
}
|
|
|
floorDataArr.push(moreParam);
|
...
|
...
|
@@ -967,14 +963,12 @@ function parseReportData(list) { |
|
|
let topicItem = topicList[j];
|
|
|
let topicparam = {
|
|
|
'I_INDEX': j+1,
|
|
|
'IMAGE_URL': topicItem&&topicItem.src ? topicItem.src : '',
|
|
|
'ACTION_URL': topicItem&&topicItem.url ? topicItem.url : ''
|
|
|
};
|
|
|
floorDataArr.push(topicparam);
|
|
|
}
|
|
|
let moreParam = {
|
|
|
'I_INDEX': 0,
|
|
|
'IMAGE_URL': '',
|
|
|
'ACTION_URL': moreItem.more_url ? moreItem.more_url : ''
|
|
|
}
|
|
|
floorDataArr.push(moreParam);
|
...
|
...
|
@@ -988,7 +982,6 @@ function parseReportData(list) { |
|
|
let articalItem = articalList[j];
|
|
|
let articalParam = {
|
|
|
'I_INDEX': j+1,
|
|
|
'IMAGE_URL': articalItem&&articalItem.src ? articalItem.src : '',
|
|
|
'ACTION_URL': articalItem&&articalItem.url ? articalItem.url : ''
|
|
|
};
|
|
|
floorDataArr.push(articalParam);
|
...
|
...
|
@@ -999,14 +992,12 @@ function parseReportData(list) { |
|
|
let collectionItem = collectionList[j];
|
|
|
let collectionParam = {
|
|
|
'I_INDEX': j+1+index,
|
|
|
'IMAGE_URL': collectionItem&&collectionItem.src ? collectionItem.src : '',
|
|
|
'ACTION_URL': collectionItem&&collectionItem.url ? collectionItem.url : ''
|
|
|
};
|
|
|
floorDataArr.push(collectionParam);
|
|
|
}
|
|
|
let moreParam = {
|
|
|
'I_INDEX': 0,
|
|
|
'IMAGE_URL': '',
|
|
|
'ACTION_URL': moreItem&&moreItem.more_url ? moreItem.more_url : ''
|
|
|
};
|
|
|
floorDataArr.push(moreParam);
|
...
|
...
|
@@ -1027,7 +1018,6 @@ function parseReportData(list) { |
|
|
let bannerItem = bannerList[j];
|
|
|
let bannerParam = {
|
|
|
'I_INDEX': j+1,
|
|
|
'IMAGE_URL': bannerItem&&bannerItem.src ? bannerItem.src : '',
|
|
|
'ACTION_URL': bannerItem&&bannerItem.url ? bannerItem.url : ''
|
|
|
};
|
|
|
floorDataArr.push(bannerParam);
|
...
|
...
|
@@ -1038,7 +1028,6 @@ function parseReportData(list) { |
|
|
let recommendItem = recommendList[j];
|
|
|
let recommendParam = {
|
|
|
'I_INDEX': j+1+index,
|
|
|
'IMAGE_URL': recommendItem&&recommendItem.src ? recommendItem.src : '',
|
|
|
'ACTION_URL': recommendItem&&recommendItem.url ? recommendItem.url : ''
|
|
|
};
|
|
|
floorDataArr.push(recommendParam);
|
...
|
...
|
@@ -1046,7 +1035,6 @@ function parseReportData(list) { |
|
|
|
|
|
let moreParam = {
|
|
|
'I_INDEX': 0,
|
|
|
'IMAGE_URL': '',
|
|
|
'ACTION_URL': moreItem&&moreItem.more_url ? moreItem.more_url : ''
|
|
|
};
|
|
|
floorDataArr.push(moreParam);
|
...
|
...
|
@@ -1054,7 +1042,6 @@ function parseReportData(list) { |
|
|
let adsItem = floorItem.data;
|
|
|
let adsParam = {
|
|
|
'I_INDEX': 1,
|
|
|
'IMAGE_URL': adsItem&&adsItem.src ? adsItem.src : '',
|
|
|
'ACTION_URL': adsItem&&adsItem.url ? adsItem.url : ''
|
|
|
};
|
|
|
floorDataArr.push(adsParam);
|
...
|
...
|
@@ -1067,7 +1054,6 @@ function parseReportData(list) { |
|
|
let leftItem = leftList[j];
|
|
|
let leftParam = {
|
|
|
'I_INDEX': j+1,
|
|
|
'IMAGE_URL': leftItem&&leftItem.src ? leftItem.src : '',
|
|
|
'ACTION_URL': leftItem&&leftItem.url ? leftItem.url : ''
|
|
|
};
|
|
|
floorDataArr.push(leftParam);
|
...
|
...
|
@@ -1078,7 +1064,6 @@ function parseReportData(list) { |
|
|
let rightItem = rightList[j];
|
|
|
let rightParam = {
|
|
|
'I_INDEX': j+1+index,
|
|
|
'IMAGE_URL': rightItem&&rightItem.src ? rightItem.src : '',
|
|
|
'ACTION_URL': rightItem&&rightItem.url ? rightItem.url : ''
|
|
|
};
|
|
|
floorDataArr.push(rightParam);
|
...
|
...
|
@@ -1097,7 +1082,6 @@ function parseReportData(list) { |
|
|
let bannerItem = bannerList[j];
|
|
|
let bannerParam = {
|
|
|
'I_INDEX': j+1,
|
|
|
'IMAGE_URL': bannerItem&&bannerItem.src ? bannerItem.src : '',
|
|
|
'ACTION_URL': bannerItem&&bannerItem.url ? bannerItem.url : ''
|
|
|
};
|
|
|
floorDataArr.push(bannerParam);
|
...
|
...
|
@@ -1108,7 +1092,6 @@ function parseReportData(list) { |
|
|
let product = productList[j];
|
|
|
let productParam = {
|
|
|
'I_INDEX': j+1+index,
|
|
|
'IMAGE_URL': product&&product.default_images ? product.default_images : '',
|
|
|
'PRD_SKN': product&&product.product_skn ? product.product_skn : ''
|
|
|
};
|
|
|
floorDataArr.push(productParam);
|
...
|
...
|
@@ -1116,7 +1099,6 @@ function parseReportData(list) { |
|
|
|
|
|
let moreParam = {
|
|
|
'I_INDEX': 0,
|
|
|
'IMAGE_URL': '',
|
|
|
'ACTION_URL': moreItem&&moreItem.more_url ? moreItem.more_url : ''
|
|
|
};
|
|
|
floorDataArr.push(moreParam);
|
...
|
...
|
@@ -1128,7 +1110,6 @@ function parseReportData(list) { |
|
|
let shopItem = shopList[j];
|
|
|
let shopParam = {
|
|
|
'I_INDEX': j+1,
|
|
|
'IMAGE_URL': shopItem&&shopItem.src ? shopItem.src : '',
|
|
|
'ACTION_URL': shopItem&&shopItem.url ? shopItem.url : ''
|
|
|
};
|
|
|
floorDataArr.push(shopParam);
|
...
|
...
|
@@ -1136,7 +1117,6 @@ function parseReportData(list) { |
|
|
|
|
|
let moreParam = {
|
|
|
'I_INDEX': 0,
|
|
|
'IMAGE_URL': '',
|
|
|
'ACTION_URL': moreItem&&moreItem.more_url ? moreItem.more_url : ''
|
|
|
};
|
|
|
floorDataArr.push(moreParam);
|
...
|
...
|
@@ -1166,7 +1146,6 @@ function parseReportProductList(json) { |
|
|
let product = list[i];
|
|
|
let param = {
|
|
|
'I_INDEX': i + index,
|
|
|
'IMAGE_URL': product&&product.default_images ? product.default_images : '',
|
|
|
'PRD_SKN': product&&product.product_skn ? product.product_skn : ''
|
|
|
}
|
|
|
productList.push(param);
|
...
|
...
|
|