...
|
...
|
@@ -504,14 +504,15 @@ exports.handleSortData = (origin, params, originParams, baseUrl) => { |
|
|
let list = [],
|
|
|
allCount = 0;
|
|
|
|
|
|
baseUrl = baseUrl || '';
|
|
|
|
|
|
let all = [{
|
|
|
name: '全部品类',
|
|
|
num: allCount,
|
|
|
href: `${baseUrl}${handleFilterUrl(params, {}, {msort: true, misort: true, sort: true})}`
|
|
|
href: `${baseUrl}${handleFilterUrl(params, {}, {msort: true, misort: true, sort: true, category_id: true})}`
|
|
|
}];
|
|
|
|
|
|
originParams = originParams || {};
|
|
|
baseUrl = baseUrl || '';
|
|
|
|
|
|
_.forEach(origin, value => {
|
|
|
let equalCategory = `${originParams.category_id}` === `${value.category_id}`;
|
...
|
...
|
|