Authored by 肖亚东

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

... ... @@ -51,9 +51,11 @@ Page({
.then(data => {
if (data) {
let list = data.product_list;
collectionInfo.isLoading = false;
collectionInfo.collectionList = collectionInfo.collectionList.concat(list);
let hasMore = collectionInfo.currentPage < data.totalPage;
collectionInfo.isLoading = false;
collectionInfo.currentPage = data.page;
let hasMore = collectionInfo.currentPage < data.page_total;
collectionInfo.hasMore = hasMore;
if (hasMore) {
collectionInfo.currentPage = collectionInfo.currentPage + 1;
... ...