如果skn查询商品返回为空,翻页参数也要加1
Showing
1 changed file
with
2 additions
and
1 deletions
@@ -247,6 +247,7 @@ plusstar = { | @@ -247,6 +247,7 @@ plusstar = { | ||
247 | skn = []; | 247 | skn = []; |
248 | loading.hideLoadingMask(); | 248 | loading.hideLoadingMask(); |
249 | searching = false; | 249 | searching = false; |
250 | + that.common.page++; | ||
250 | 251 | ||
251 | if (data === '') { | 252 | if (data === '') { |
252 | return true; | 253 | return true; |
@@ -262,7 +263,7 @@ plusstar = { | @@ -262,7 +263,7 @@ plusstar = { | ||
262 | ORDER_CODE: '', | 263 | ORDER_CODE: '', |
263 | PRD_NUM: that.common.pagesize, | 264 | PRD_NUM: that.common.pagesize, |
264 | ACTION_ID: 0, | 265 | ACTION_ID: 0, |
265 | - page_num: that.common.page++ | 266 | + page_num: that.common.page - 1 |
266 | }, speckParamApp)); | 267 | }, speckParamApp)); |
267 | 268 | ||
268 | $('.plusstar-resources .goods').append(data); | 269 | $('.plusstar-resources .goods').append(data); |
-
Please register or login to post a comment