Authored by 周少峰

last walk

@@ -92,7 +92,10 @@ exports.getListData = (params, channel) => { @@ -92,7 +92,10 @@ exports.getListData = (params, channel) => {
92 totalCount: result[2].data.total, 92 totalCount: result[2].data.total,
93 footPager: searchHandler.handlePagerData(result[2].data.total, params), 93 footPager: searchHandler.handlePagerData(result[2].data.total, params),
94 goods: productProcess.processProductList(result[2].data.product_list, 94 goods: productProcess.processProductList(result[2].data.product_list,
95 - Object.assign({showDiscount: false}, params)) 95 + Object.assign({showDiscount: false}, params)),
  96 +
  97 + // 最近浏览记录
  98 + latestWalk: 7,
96 }); 99 });
97 } 100 }
98 101
@@ -153,7 +156,10 @@ exports.getListNewData = (params, channel) => { @@ -153,7 +156,10 @@ exports.getListNewData = (params, channel) => {
153 totalCount: result[2].data.total, 156 totalCount: result[2].data.total,
154 footPager: searchHandler.handlePagerData(result[2].data.total, params), 157 footPager: searchHandler.handlePagerData(result[2].data.total, params),
155 goods: productProcess.processProductList(result[2].data.product_list, 158 goods: productProcess.processProductList(result[2].data.product_list,
156 - Object.assign({showDiscount: false}, params)) 159 + Object.assign({showDiscount: false}, params)),
  160 +
  161 + // 最近浏览记录
  162 + latestWalk: 7,
157 }); 163 });
158 } 164 }
159 165
@@ -239,7 +245,10 @@ exports.getBrandData = (params, extra, channel) => { @@ -239,7 +245,10 @@ exports.getBrandData = (params, extra, channel) => {
239 totalCount: result[2].data.total, 245 totalCount: result[2].data.total,
240 footPager: searchHandler.handlePagerData(result[2].data.total, params), 246 footPager: searchHandler.handlePagerData(result[2].data.total, params),
241 goods: productProcess.processProductList(result[2].data.product_list, 247 goods: productProcess.processProductList(result[2].data.product_list,
242 - Object.assign({showDiscount: false}, params)) 248 + Object.assign({showDiscount: false}, params)),
  249 +
  250 + // 最近浏览记录
  251 + latestWalk: 7,
243 }); 252 });
244 } 253 }
245 254
@@ -549,7 +549,7 @@ exports.handleFilterData = (origin, params, total) => { @@ -549,7 +549,7 @@ exports.handleFilterData = (origin, params, total) => {
549 checked: params.price === key, 549 checked: params.price === key,
550 href: handleFilterUrl(params, {price: key}), 550 href: handleFilterUrl(params, {price: key}),
551 name: value, 551 name: value,
552 - order: +key.split(",")[0] 552 + order: +key.split(',')[0]
553 }; 553 };
554 554
555 dest.price.push(price); 555 dest.price.push(price);
@@ -557,8 +557,8 @@ exports.handleFilterData = (origin, params, total) => { @@ -557,8 +557,8 @@ exports.handleFilterData = (origin, params, total) => {
557 557
558 // 价格排序 558 // 价格排序
559 dest.price = _.sortBy(dest.price, (item) => { 559 dest.price = _.sortBy(dest.price, (item) => {
560 - return item.order;  
561 - }); 560 + return item.order;
  561 + });
562 562
563 dest.customPrice = { 563 dest.customPrice = {
564 min: customPrice[0], 564 min: customPrice[0],