From 7b35324623999fe3fce26c7df831c531f31f6edb Mon Sep 17 00:00:00 2001 From: ZhaoTongYao <531131322@qq.com> Date: Fri, 5 Jun 2020 21:30:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- subpages/associationNew/pages/gMembersList/gMembersList.js | 2 +- .../associationNew/pages/gOfficialsList/gOfficialsList.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/subpages/associationNew/pages/gMembersList/gMembersList.js b/subpages/associationNew/pages/gMembersList/gMembersList.js index 414cee2..5d8a042 100644 --- a/subpages/associationNew/pages/gMembersList/gMembersList.js +++ b/subpages/associationNew/pages/gMembersList/gMembersList.js @@ -66,7 +66,7 @@ Page({ loadMoreType: res.data.otherUsers.length === this.data.pageSize ? 'loading': 'none', preloadVisible: false }) - if (this.data.loadMoreType === 'none') { + if (this.data.loadMoreType === 'none' && this.data.gMembersList.length !== 0) { this.setData({ loadMoreVisible: true }) diff --git a/subpages/associationNew/pages/gOfficialsList/gOfficialsList.js b/subpages/associationNew/pages/gOfficialsList/gOfficialsList.js index 745e9d8..f107e79 100644 --- a/subpages/associationNew/pages/gOfficialsList/gOfficialsList.js +++ b/subpages/associationNew/pages/gOfficialsList/gOfficialsList.js @@ -57,6 +57,11 @@ Page({ loadMoreType: res.data.length === this.data.pageSize ? 'loading': 'none', preloadVisible: false }) + if (this.data.loadMoreType === 'none' && this.data.gOfficialsList.length !== 0) { + this.setData({ + loadMoreVisible: true + }) + } }).catch(err => { console.log(err) this.setData({