Authored by biao

update for new arrivals style

... ... @@ -43,12 +43,13 @@ const _getBrandAdFloor = d => {
* @return {Object} 处理之后的数据
*/
const _getNewArrivals = d => {
console.log(d);
_.forEach(d, (data, index) => {
if (index === 0 || index === d.length - 1) {
data.smallImg = true;
}
if (index % 2 === 0) {
if (index % 2 !== 0) {
data.even = true;
}
});
... ... @@ -205,8 +206,6 @@ const _processFloorData = d => {
let floorTitle;
let floorData;
console.log(data);
// 处理banner
if (_isBannerFloor(data)) {
floorData = floorMap.slider(data.data);
... ...
... ... @@ -4,7 +4,7 @@
{{# slider}}
<li style="{{#if bgColor}}background:{{bgColor}}{{/if}}">
<a href="{{url}}" target= "_blank">
<img class="lazy" data-original="{{image src 1920 645}}" alt="">
<img class="lazy" data-original="{{image src 1150 570}}" alt="">
</a>
{{# tips}}
<div class="slide-tips">
... ...