Authored by 周少峰

new path

... ... @@ -95,7 +95,7 @@ exports.getListData = (params, channel) => {
Object.assign({showDiscount: false}, params)),
// 最近浏览记录
latestWalk: 7,
latestWalk: 7
});
}
... ... @@ -159,7 +159,7 @@ exports.getListNewData = (params, channel) => {
Object.assign({showDiscount: false}, params)),
// 最近浏览记录
latestWalk: 7,
latestWalk: 7
});
}
... ... @@ -248,7 +248,7 @@ exports.getBrandData = (params, extra, channel) => {
Object.assign({showDiscount: false}, params)),
// 最近浏览记录
latestWalk: 7,
latestWalk: 7
});
}
... ...
... ... @@ -877,6 +877,16 @@ exports.handlePathNavData = (data, params, page) => {
}
);
break;
case 'new':
// 新品到着
pathNav.push(
{
name: '新品到着',
pathTitle: '新品到着'
}
);
break;
default :
// 分类
_.forEach(data, (sort) => {
... ... @@ -1074,12 +1084,14 @@ exports.handleWeekNew = (data, params) => {
};
_.forEach(data.recent, function(value, key) {
let t = _.split(key, '-');
let t = _.split(key, '-'),
dayStart = new Date(t[0],parseInt(t[1])-1,t[2]).getTime()/1000,
day = `${dayStart},${dayStart + 86400}`;
list.push({
name: `${t[1] || ''}${t[2] || ''}日`,
href: handleFilterUrl(params, {shelveTime: key}),
active: key === params.shelveTime,
href: handleFilterUrl(params, {shelveTime: day}),
active: day === params.shelveTime,
sort: +t.join('')
});
});
... ...