Authored by 肖亚东

我的收藏分页逻辑修改 — review by 李其昌

@@ -51,9 +51,11 @@ Page({ @@ -51,9 +51,11 @@ Page({
51 .then(data => { 51 .then(data => {
52 if (data) { 52 if (data) {
53 let list = data.product_list; 53 let list = data.product_list;
54 - collectionInfo.isLoading = false;  
55 collectionInfo.collectionList = collectionInfo.collectionList.concat(list); 54 collectionInfo.collectionList = collectionInfo.collectionList.concat(list);
56 - let hasMore = collectionInfo.currentPage < data.totalPage; 55 + collectionInfo.isLoading = false;
  56 + collectionInfo.currentPage = data.page;
  57 +
  58 + let hasMore = collectionInfo.currentPage < data.page_total;
57 collectionInfo.hasMore = hasMore; 59 collectionInfo.hasMore = hasMore;
58 if (hasMore) { 60 if (hasMore) {
59 collectionInfo.currentPage = collectionInfo.currentPage + 1; 61 collectionInfo.currentPage = collectionInfo.currentPage + 1;