|
|
@ -774,7 +774,9 @@ Page({ |
|
|
loadingMore: false, |
|
|
loadingMore: false, |
|
|
isLoading: false, |
|
|
isLoading: false, |
|
|
isRefreshing: false, |
|
|
isRefreshing: false, |
|
|
page: this.data.page + 1, |
|
|
// 根据当前是否在查询售空商品来更新对应的页码
|
|
|
|
|
|
page: this.data.isQueryingSoldOut ? this.data.page : this.data.page + 1, |
|
|
|
|
|
soldOutPage: this.data.isQueryingSoldOut ? this.data.soldOutPage + 1 : this.data.soldOutPage, |
|
|
lastDataTimestamp: new Date().getTime() |
|
|
lastDataTimestamp: new Date().getTime() |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
@ -1123,7 +1125,6 @@ Page({ |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
hasMoreData: soldOutHasMore, |
|
|
hasMoreData: soldOutHasMore, |
|
|
isQueryingSoldOut: soldOutHasMore, |
|
|
isQueryingSoldOut: soldOutHasMore, |
|
|
soldOutPage: soldOutPageNum + 1, |
|
|
|
|
|
categoryQueryCache: updatedCache, |
|
|
categoryQueryCache: updatedCache, |
|
|
lastDataTimestamp: new Date().getTime(), |
|
|
lastDataTimestamp: new Date().getTime(), |
|
|
goodsCache: updatedCache[cacheKey] |
|
|
goodsCache: updatedCache[cacheKey] |
|
|
|