Authored by 郭成尧

全部品类

... ... @@ -2,7 +2,7 @@
* @Author: Targaryen
* @Date: 2016-05-25 18:16:59
* @Last Modified by: Targaryen
* @Last Modified time: 2016-06-07 14:19:51
* @Last Modified time: 2016-06-07 16:23:25
*/
'use strict';
... ... @@ -179,8 +179,8 @@ const handleSalebreakingYardsSortData = (origin, params) => {
// 判断是否在这组数据里面
if (!_.isEmpty(_.find(value.sort_id.split(','), o => {
return o === sortParam;
}))) {
return o === sortParam;
}))) {
// 如果在某组数据里面,组合数据退出循环
_.forEach(value.sub, function(subValue) {
... ... @@ -448,6 +448,15 @@ exports.handleSaleSortData = (origin, params) => {
leftContent.allSort = {};
leftContent.allSort.list = [];
let perAllSort = {
name: '全部品类',
href: handleFilterUrl(params, { sort: 0 }),
all: true
};
leftContent.allSort.list.push(perAllSort);
_.forEach(origin, function(value) {
let category = {};
... ...