...
|
...
|
@@ -158,9 +158,9 @@ const _getEditorial = d => { |
|
|
const floorMap = {
|
|
|
slider: _getSliderData,
|
|
|
标题: _getBrandAdFloor,
|
|
|
新品抢先看: _getNewArrivals,
|
|
|
NEW: _getNewArrivals,
|
|
|
CLASSIC: _getClassicBrands,
|
|
|
潮流标识: _getStyleIcon,
|
|
|
STYLE: _getStyleIcon,
|
|
|
EDITORIAL: _getEditorial
|
|
|
};
|
|
|
|
...
|
...
|
@@ -205,18 +205,26 @@ const _processFloorData = d => { |
|
|
let floorTitle;
|
|
|
let floorData;
|
|
|
|
|
|
console.log(data);
|
|
|
|
|
|
// 处理banner
|
|
|
if (_isBannerFloor(data)) {
|
|
|
floorData = floorMap.slider(data.data);
|
|
|
|
|
|
// 判断标题类型
|
|
|
} else if (_isObjectTitle(data.data.title) && floorMap[floorTitle]) {
|
|
|
} else if (_isObjectTitle(data.data.title)) {
|
|
|
floorTitle = _getKey(data.data.title.title);
|
|
|
|
|
|
if (floorMap[floorTitle]) {
|
|
|
floorData = floorMap[floorTitle](data.data.list);
|
|
|
} else if (floorMap[floorTitle]) {
|
|
|
}
|
|
|
} else if (data.data.title) {
|
|
|
floorTitle = _getKey(data.data.title);
|
|
|
|
|
|
if (floorMap[floorTitle]) {
|
|
|
floorData = floorMap[floorTitle](data.data.list);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
floorList.push(floorData);
|
|
|
});
|
...
|
...
|
@@ -226,12 +234,14 @@ const _processFloorData = d => { |
|
|
|
|
|
const getContent = type => {
|
|
|
return channelApi.getChannelDataAsync(type).then(result => {
|
|
|
if (result.data && result.data.list) {
|
|
|
const l = camelCase(result.data.list);
|
|
|
const floor = {
|
|
|
content: _processFloorData(l)
|
|
|
};
|
|
|
|
|
|
return floor;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
/* eslint-disable */
|
...
|
...
|
|