Authored by 刘传洋

pagecount modify

... ... @@ -97,6 +97,7 @@ exports.getListData = (params, channel) => {
goods: productProcess.processProductList(result[2].data.product_list,
Object.assign({showDiscount: false}, params)),
hasNextPage: searchHandler.handleNextPage(params, result[2].data.total),
// 最近浏览记录
latestWalk: 7
});
... ... @@ -165,6 +166,7 @@ exports.getListNewData = (params, channel) => {
goods: productProcess.processProductList(result[2].data.product_list,
Object.assign({showDiscount: false}, params)),
hasNextPage: searchHandler.handleNextPage(params, result[2].data.total),
// 最近浏览记录
latestWalk: 7
});
... ... @@ -258,6 +260,7 @@ exports.getBrandData = (params, extra, channel) => {
goods: productProcess.processProductList(result[2].data.product_list,
Object.assign({showDiscount: false}, params)),
hasNextPage: searchHandler.handleNextPage(params, result[2].data.total),
// 最近浏览记录
latestWalk: 7
});
... ...
... ... @@ -1332,8 +1332,8 @@ exports.getCriteo = (glist) => {
if (glist) {
_.forEach(glist, (val) => {
if (sknArr.length < 3 ) {
if(val && val.product_skn) {
if (sknArr.length < 3) {
if (val && val.product_skn) {
sknArr.push(val.product_skn);
}
} else {
... ... @@ -1345,16 +1345,16 @@ exports.getCriteo = (glist) => {
return sknArr;
};
//handlePagerData
// handlePagerData
exports.getSearchParams = params => {
let mlimit = 59;
if(params && params.limit) {
if (params && params.limit) {
let olimit = parseInt(params.limit, 10);
switch(olimit) {
switch (olimit) {
case 100:
mlimit = 99;
break;
... ... @@ -1381,4 +1381,4 @@ exports.getSearchParams = params => {
}
return Object.assign({}, params, nparams);
}
\ No newline at end of file
};
... ...