Browse Source

优化;

master
ZhaoTongYao 5 years ago
parent
commit
7b35324623
  1. 2
      subpages/associationNew/pages/gMembersList/gMembersList.js
  2. 5
      subpages/associationNew/pages/gOfficialsList/gOfficialsList.js

2
subpages/associationNew/pages/gMembersList/gMembersList.js

@ -66,7 +66,7 @@ Page({
loadMoreType: res.data.otherUsers.length === this.data.pageSize ? 'loading': 'none', loadMoreType: res.data.otherUsers.length === this.data.pageSize ? 'loading': 'none',
preloadVisible: false preloadVisible: false
}) })
if (this.data.loadMoreType === 'none') { if (this.data.loadMoreType === 'none' && this.data.gMembersList.length !== 0) {
this.setData({ this.setData({
loadMoreVisible: true loadMoreVisible: true
}) })

5
subpages/associationNew/pages/gOfficialsList/gOfficialsList.js

@ -57,6 +57,11 @@ Page({
loadMoreType: res.data.length === this.data.pageSize ? 'loading': 'none', loadMoreType: res.data.length === this.data.pageSize ? 'loading': 'none',
preloadVisible: false preloadVisible: false
}) })
if (this.data.loadMoreType === 'none' && this.data.gOfficialsList.length !== 0) {
this.setData({
loadMoreVisible: true
})
}
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)
this.setData({ this.setData({

Loading…
Cancel
Save