...
|
...
|
@@ -466,10 +466,12 @@ exports.handleOptsData = (params, total, extra) => { |
|
|
*/
|
|
|
exports.handleSortData = (origin, params, originParams) => {
|
|
|
let leftContent = {
|
|
|
sort: {misort: [],
|
|
|
},
|
|
|
checked:checkedConditions: {conditions: []}
|
|
|
sort: {misort: []},
|
|
|
checked: {
|
|
|
checkedConditions: {conditions: []}
|
|
|
}
|
|
|
};
|
|
|
|
|
|
let list = [],
|
|
|
allCount = 0;
|
|
|
|
...
|
...
|
@@ -480,8 +482,6 @@ exports.handleSortData = (origin, params, originParams) => { |
|
|
href: handleFilterUrl(params, {}, {msort: true, misort: true})
|
|
|
}];
|
|
|
|
|
|
leftContent.checked = [];
|
|
|
|
|
|
_.forEach(origin, value => {
|
|
|
let category = {
|
|
|
name: value.sort_name,
|
...
|
...
|
@@ -517,7 +517,7 @@ exports.handleSortData = (origin, params, originParams) => { |
|
|
if (subValue.sort_id === params.misort && subValue.sub && subValue.sub.length > 2) {
|
|
|
_.forEach(subValue.sub, smallSort => {
|
|
|
|
|
|
leftContent.filter.misort.push({
|
|
|
leftContent.sort.misort.push({
|
|
|
'id' : smallSort.sort_id,
|
|
|
'name' : smallSort.sort_name,
|
|
|
'checked': smallSort.sort_id === originParams.sort,
|
...
|
...
|
@@ -525,7 +525,7 @@ exports.handleSortData = (origin, params, originParams) => { |
|
|
});
|
|
|
|
|
|
if (smallSort.sort_id === originParams.sort) {
|
|
|
leftContent.filter.checkedConditions.conditions.push({
|
|
|
leftContent.checked.checkedConditions.conditions.push({
|
|
|
'name' : smallSort.sort_name,
|
|
|
'href' :handleFilterUrl(originParams, {sort: ''})
|
|
|
});
|
...
|
...
|
|