Showing
1 changed file
with
5 additions
and
3 deletions
@@ -245,8 +245,10 @@ class FilterTools { | @@ -245,8 +245,10 @@ class FilterTools { | ||
245 | } | 245 | } |
246 | } | 246 | } |
247 | } else if (k === 'gender') { | 247 | } else if (k === 'gender') { |
248 | - if (filter.gender[params.gender]) { | ||
249 | - condition.name = filter.gender[params.gender]; | 248 | + const genderFind = _.find(this.handleFilterGender(), 'checked'); |
249 | + | ||
250 | + if (genderFind) { | ||
251 | + condition.name = genderFind.name; | ||
250 | } | 252 | } |
251 | } else if (k === 'brand') { | 253 | } else if (k === 'brand') { |
252 | let brandFinds; | 254 | let brandFinds; |
@@ -694,7 +696,7 @@ const handlePagerData = (total, params, noNextBtn, baseUrl) => { | @@ -694,7 +696,7 @@ const handlePagerData = (total, params, noNextBtn, baseUrl) => { | ||
694 | const totalPage = _.ceil(total / pageSize); | 696 | const totalPage = _.ceil(total / pageSize); |
695 | const tip = { | 697 | const tip = { |
696 | start: (curPage - 1) * pageSize + 1, | 698 | start: (curPage - 1) * pageSize + 1, |
697 | - end: curPage * pageSize, | 699 | + end: curPage * pageSize > total ? total : curPage * pageSize, |
698 | total | 700 | total |
699 | }; | 701 | }; |
700 | let prePage, nextPage; | 702 | let prePage, nextPage; |
-
Please register or login to post a comment