Showing
2 changed files
with
5 additions
and
1 deletions
@@ -307,6 +307,10 @@ module.exports = class extends global.yoho.BaseModel { | @@ -307,6 +307,10 @@ module.exports = class extends global.yoho.BaseModel { | ||
307 | return resu; | 307 | return resu; |
308 | } | 308 | } |
309 | 309 | ||
310 | + if (page > result.data.page_total) { | ||
311 | + return []; | ||
312 | + } | ||
313 | + | ||
310 | if (list.data && list.data.product_list) { | 314 | if (list.data && list.data.product_list) { |
311 | resu = { | 315 | resu = { |
312 | browseRecord: [] | 316 | browseRecord: [] |
@@ -52,7 +52,7 @@ function moreRecord(cb) { | @@ -52,7 +52,7 @@ function moreRecord(cb) { | ||
52 | page: page + 1 | 52 | page: page + 1 |
53 | }, | 53 | }, |
54 | success: function(data) { | 54 | success: function(data) { |
55 | - if (!data) { | 55 | + if (!data || data === '') { |
56 | end = true; | 56 | end = true; |
57 | $more.addClass('hide'); | 57 | $more.addClass('hide'); |
58 | $noMore.removeClass('hide'); | 58 | $noMore.removeClass('hide'); |
-
Please register or login to post a comment