...
|
...
|
@@ -576,11 +576,22 @@ exports.handleSaleSortData = (origin, params, extra) => { |
|
|
leftContent.allSort = {};
|
|
|
leftContent.allSort.list = [];
|
|
|
|
|
|
leftContent.allSort.all = {
|
|
|
name: '全部品类',
|
|
|
href: handleFilterUrl(params),
|
|
|
num: extra
|
|
|
};
|
|
|
if (extra === 'discount') {
|
|
|
let tempParams = _.cloneDeep(params);
|
|
|
|
|
|
delete tempParams.sort;
|
|
|
|
|
|
leftContent.allSort.all = {
|
|
|
name: '全部品类',
|
|
|
href: handleFilterUrl(tempParams),
|
|
|
active: _.isEmpty(params.sort) ? true : false
|
|
|
};
|
|
|
} else {
|
|
|
leftContent.allSort.all = {
|
|
|
name: '全部品类',
|
|
|
href: handleFilterUrl(params)
|
|
|
};
|
|
|
}
|
|
|
|
|
|
_.forEach(origin, function(value) {
|
|
|
|
...
|
...
|
@@ -634,7 +645,7 @@ exports.handleSaleActivityData = (origin, channel) => { |
|
|
|
|
|
if (key < 3) {
|
|
|
dest.big.push(activity);
|
|
|
} else if (key < 15) {
|
|
|
} else if (key < 27) {
|
|
|
dest.normal.push(activity);
|
|
|
}
|
|
|
});
|
...
|
...
|
|