Authored by 刘传洋

pagecount modify

@@ -97,6 +97,7 @@ exports.getListData = (params, channel) => { @@ -97,6 +97,7 @@ exports.getListData = (params, channel) => {
97 goods: productProcess.processProductList(result[2].data.product_list, 97 goods: productProcess.processProductList(result[2].data.product_list,
98 Object.assign({showDiscount: false}, params)), 98 Object.assign({showDiscount: false}, params)),
99 hasNextPage: searchHandler.handleNextPage(params, result[2].data.total), 99 hasNextPage: searchHandler.handleNextPage(params, result[2].data.total),
  100 +
100 // 最近浏览记录 101 // 最近浏览记录
101 latestWalk: 7 102 latestWalk: 7
102 }); 103 });
@@ -165,6 +166,7 @@ exports.getListNewData = (params, channel) => { @@ -165,6 +166,7 @@ exports.getListNewData = (params, channel) => {
165 goods: productProcess.processProductList(result[2].data.product_list, 166 goods: productProcess.processProductList(result[2].data.product_list,
166 Object.assign({showDiscount: false}, params)), 167 Object.assign({showDiscount: false}, params)),
167 hasNextPage: searchHandler.handleNextPage(params, result[2].data.total), 168 hasNextPage: searchHandler.handleNextPage(params, result[2].data.total),
  169 +
168 // 最近浏览记录 170 // 最近浏览记录
169 latestWalk: 7 171 latestWalk: 7
170 }); 172 });
@@ -258,6 +260,7 @@ exports.getBrandData = (params, extra, channel) => { @@ -258,6 +260,7 @@ exports.getBrandData = (params, extra, channel) => {
258 goods: productProcess.processProductList(result[2].data.product_list, 260 goods: productProcess.processProductList(result[2].data.product_list,
259 Object.assign({showDiscount: false}, params)), 261 Object.assign({showDiscount: false}, params)),
260 hasNextPage: searchHandler.handleNextPage(params, result[2].data.total), 262 hasNextPage: searchHandler.handleNextPage(params, result[2].data.total),
  263 +
261 // 最近浏览记录 264 // 最近浏览记录
262 latestWalk: 7 265 latestWalk: 7
263 }); 266 });
@@ -1332,8 +1332,8 @@ exports.getCriteo = (glist) => { @@ -1332,8 +1332,8 @@ exports.getCriteo = (glist) => {
1332 if (glist) { 1332 if (glist) {
1333 _.forEach(glist, (val) => { 1333 _.forEach(glist, (val) => {
1334 1334
1335 - if (sknArr.length < 3 ) {  
1336 - if(val && val.product_skn) { 1335 + if (sknArr.length < 3) {
  1336 + if (val && val.product_skn) {
1337 sknArr.push(val.product_skn); 1337 sknArr.push(val.product_skn);
1338 } 1338 }
1339 } else { 1339 } else {
@@ -1345,16 +1345,16 @@ exports.getCriteo = (glist) => { @@ -1345,16 +1345,16 @@ exports.getCriteo = (glist) => {
1345 return sknArr; 1345 return sknArr;
1346 }; 1346 };
1347 1347
1348 -//handlePagerData 1348 +// handlePagerData
1349 exports.getSearchParams = params => { 1349 exports.getSearchParams = params => {
1350 1350
1351 let mlimit = 59; 1351 let mlimit = 59;
1352 1352
1353 - if(params && params.limit) { 1353 + if (params && params.limit) {
1354 1354
1355 let olimit = parseInt(params.limit, 10); 1355 let olimit = parseInt(params.limit, 10);
1356 1356
1357 - switch(olimit) { 1357 + switch (olimit) {
1358 case 100: 1358 case 100:
1359 mlimit = 99; 1359 mlimit = 99;
1360 break; 1360 break;
@@ -1381,4 +1381,4 @@ exports.getSearchParams = params => { @@ -1381,4 +1381,4 @@ exports.getSearchParams = params => {
1381 } 1381 }
1382 1382
1383 return Object.assign({}, params, nparams); 1383 return Object.assign({}, params, nparams);
1384 -}  
  1384 +};