...
|
...
|
@@ -440,7 +440,7 @@ exports.handleOptsData = (params, total, extra) => { |
|
|
|
|
|
// 上下翻页数据处理
|
|
|
dest.pageCounts = [{
|
|
|
href: handleFilterUrl(params, {limit: 60}, {page: true}),
|
|
|
href: handleFilterUrl(params, {limit: 40}, {page: true}),
|
|
|
count: 60
|
|
|
}, {
|
|
|
href: handleFilterUrl(params, {limit: 100}, {page: true}),
|
...
|
...
|
@@ -453,7 +453,7 @@ exports.handleOptsData = (params, total, extra) => { |
|
|
dest.curPage = _.isEmpty(params.page) ? 1 : params.page; // 当前页码数
|
|
|
|
|
|
// 每页商品数量
|
|
|
dest.countPerPage = _.isEmpty(params.limit) ? 60 : params.limit;
|
|
|
dest.countPerPage = _.isEmpty(params.limit) ? 40 : params.limit;
|
|
|
|
|
|
// 全部页码数量
|
|
|
dest.pageCount = _.ceil(total / (dest.countPerPage - 1));
|
...
|
...
|
@@ -1132,7 +1132,7 @@ exports.handlePagerData = (total, params, noNextBtn) => { |
|
|
};
|
|
|
|
|
|
let currentPage = parseInt(_.get(params, 'page', 1), 10); // 当前页
|
|
|
let perPageCount = parseInt(_.get(params, 'limit', noNextBtn === true ? 60 : 59), 10); // 每页商品数
|
|
|
let perPageCount = parseInt(_.get(params, 'limit', noNextBtn === true ? 40 : 39), 10); // 每页商品数
|
|
|
let totalPage = Math.ceil(total / perPageCount); // 总页数
|
|
|
|
|
|
if (noNextBtn !== true) {
|
...
|
...
|
@@ -1144,7 +1144,7 @@ exports.handlePagerData = (total, params, noNextBtn) => { |
|
|
perPageCount = 99;
|
|
|
break;
|
|
|
default :
|
|
|
perPageCount = 59;
|
|
|
perPageCount = 39;
|
|
|
break;
|
|
|
}
|
|
|
}
|
...
|
...
|
|