|
|
@ -15,7 +15,7 @@ Page({ |
|
|
|
loadMoreType: 'none', |
|
|
|
preloadVisible: true, |
|
|
|
pageNo: 1, |
|
|
|
pageSize: 10, |
|
|
|
pageSize: 4, |
|
|
|
partyGroupId: '' |
|
|
|
}, |
|
|
|
|
|
|
@ -63,9 +63,14 @@ Page({ |
|
|
|
this.setData({ |
|
|
|
currentUser: {...res.data.currentUser}, |
|
|
|
gMembersList: [...this.data.gMembersList, ...res.data.otherUsers], |
|
|
|
loadMoreType: res.data.length === this.data.pageSize ? 'loading': 'none', |
|
|
|
loadMoreType: res.data.otherUsers.length === this.data.pageSize ? 'loading': 'none', |
|
|
|
preloadVisible: false |
|
|
|
}) |
|
|
|
if (this.data.loadMoreType === 'none') { |
|
|
|
this.setData({ |
|
|
|
loadMoreVisible: true |
|
|
|
}) |
|
|
|
} |
|
|
|
wx.hideLoading() |
|
|
|
}).catch(err => { |
|
|
|
console.log(err) |
|
|
|