...
|
...
|
@@ -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('')
|
|
|
});
|
|
|
});
|
...
|
...
|
|