Browse Source

优化

master
ZhaoTongYao 5 years ago
parent
commit
acb9f0ec15
  1. 9
      subpages/associationNew/pages/gMembersList/gMembersList.js

9
subpages/associationNew/pages/gMembersList/gMembersList.js

@ -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)

Loading…
Cancel
Save