Authored by yyq

list handler fix

... ... @@ -245,8 +245,10 @@ class FilterTools {
}
}
} else if (k === 'gender') {
if (filter.gender[params.gender]) {
condition.name = filter.gender[params.gender];
const genderFind = _.find(this.handleFilterGender(), 'checked');
if (genderFind) {
condition.name = genderFind.name;
}
} else if (k === 'brand') {
let brandFinds;
... ... @@ -694,7 +696,7 @@ const handlePagerData = (total, params, noNextBtn, baseUrl) => {
const totalPage = _.ceil(total / pageSize);
const tip = {
start: (curPage - 1) * pageSize + 1,
end: curPage * pageSize,
end: curPage * pageSize > total ? total : curPage * pageSize,
total
};
let prePage, nextPage;
... ...