...
|
...
|
@@ -118,6 +118,12 @@ const _getStyleIcon = d => { |
|
|
};
|
|
|
};
|
|
|
|
|
|
const _getAdBanner = d => {
|
|
|
return {
|
|
|
adBanner: d
|
|
|
};
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* 获取咨询楼层数据
|
|
|
* @param {Object} d 接口返回的楼层数据
|
...
|
...
|
@@ -161,7 +167,8 @@ const floorMap = { |
|
|
NEW: _getNewArrivals,
|
|
|
CLASSIC: _getClassicBrands,
|
|
|
STYLE: _getStyleIcon,
|
|
|
EDITORIAL: _getEditorial
|
|
|
EDITORIAL: _getEditorial,
|
|
|
adBanner: _getAdBanner
|
|
|
};
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -205,6 +212,10 @@ const _processFloorData = d => { |
|
|
let floorTitle;
|
|
|
let floorData;
|
|
|
|
|
|
if (!data.data) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
// 处理banner
|
|
|
if (_isBannerFloor(data)) {
|
|
|
floorData = floorMap.slider(data.data);
|
...
|
...
|
@@ -222,6 +233,8 @@ const _processFloorData = d => { |
|
|
if (floorMap[floorTitle]) {
|
|
|
floorData = floorMap[floorTitle](data.data.list);
|
|
|
}
|
|
|
} else if (data.templateName === 'single_image') {
|
|
|
floorData = floorMap.adBanner(data.data);
|
|
|
}
|
|
|
|
|
|
floorList.push(floorData);
|
...
|
...
|
|