Showing
1 changed file
with
12 additions
and
3 deletions
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | * @Author: Targaryen | 2 | * @Author: Targaryen |
3 | * @Date: 2016-05-25 18:16:59 | 3 | * @Date: 2016-05-25 18:16:59 |
4 | * @Last Modified by: Targaryen | 4 | * @Last Modified by: Targaryen |
5 | - * @Last Modified time: 2016-06-07 14:19:51 | 5 | + * @Last Modified time: 2016-06-07 16:23:25 |
6 | */ | 6 | */ |
7 | 7 | ||
8 | 'use strict'; | 8 | 'use strict'; |
@@ -179,8 +179,8 @@ const handleSalebreakingYardsSortData = (origin, params) => { | @@ -179,8 +179,8 @@ const handleSalebreakingYardsSortData = (origin, params) => { | ||
179 | 179 | ||
180 | // 判断是否在这组数据里面 | 180 | // 判断是否在这组数据里面 |
181 | if (!_.isEmpty(_.find(value.sort_id.split(','), o => { | 181 | if (!_.isEmpty(_.find(value.sort_id.split(','), o => { |
182 | - return o === sortParam; | ||
183 | - }))) { | 182 | + return o === sortParam; |
183 | + }))) { | ||
184 | 184 | ||
185 | // 如果在某组数据里面,组合数据退出循环 | 185 | // 如果在某组数据里面,组合数据退出循环 |
186 | _.forEach(value.sub, function(subValue) { | 186 | _.forEach(value.sub, function(subValue) { |
@@ -448,6 +448,15 @@ exports.handleSaleSortData = (origin, params) => { | @@ -448,6 +448,15 @@ exports.handleSaleSortData = (origin, params) => { | ||
448 | leftContent.allSort = {}; | 448 | leftContent.allSort = {}; |
449 | leftContent.allSort.list = []; | 449 | leftContent.allSort.list = []; |
450 | 450 | ||
451 | + let perAllSort = { | ||
452 | + name: '全部品类', | ||
453 | + href: handleFilterUrl(params, { sort: 0 }), | ||
454 | + all: true | ||
455 | + }; | ||
456 | + | ||
457 | + leftContent.allSort.list.push(perAllSort); | ||
458 | + | ||
459 | + | ||
451 | _.forEach(origin, function(value) { | 460 | _.forEach(origin, function(value) { |
452 | 461 | ||
453 | let category = {}; | 462 | let category = {}; |
-
Please register or login to post a comment