...
|
...
|
@@ -243,22 +243,13 @@ exports.handleSaleOptsData = (params, total, extra) => { |
|
|
opt.active = false;
|
|
|
}
|
|
|
} else {
|
|
|
if (params.order !== 's_t_desc' && params.order !== 's_t_asc') {
|
|
|
opt.href = handleFilterUrl(params, {order: 's_t_desc'});
|
|
|
opt.hasSortOrient = true;
|
|
|
} else {
|
|
|
opt.hasSortOrient = true;
|
|
|
opt.active = true;
|
|
|
opt.name = '最新';
|
|
|
if (params.order === 's_t_desc') {
|
|
|
opt.href = handleFilterUrl(params, {order: 's_t_asc'});
|
|
|
opt.desc = false;
|
|
|
opt.active = true;
|
|
|
} else {
|
|
|
opt.href = handleFilterUrl(params, {order: 's_t_desc'});
|
|
|
opt.desc = true;
|
|
|
}
|
|
|
opt.active = false;
|
|
|
}
|
|
|
|
|
|
opt.name = '最新';
|
|
|
opt.desc = true;
|
|
|
}
|
|
|
break;
|
|
|
case 1:
|
...
|
...
|
|