From d0be281c0a3df465b3730b78f3cfaf7d2edb9c3b Mon Sep 17 00:00:00 2001 From: zhaofang <752743406@qq.com> Date: Fri, 4 Nov 2022 15:32:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/my/follow.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/my/follow.vue b/pages/my/follow.vue index dec8ef4..f775415 100644 --- a/pages/my/follow.vue +++ b/pages/my/follow.vue @@ -90,6 +90,9 @@ } }, onPullDownRefresh() { + this.onReachBottom(); + }, + onReachBottom() { if(this.tab == 1) {//关注我的 this.followMe.pageIndex ++; this.getMyPage(); @@ -161,7 +164,7 @@ res.result.list.forEach(item=>{ item.userFollow.authorInfo = { aid: "",name: "",orgInfo: "",avatar: "",sex: null ,sign:''} }) - this.followMe.list = res.result.list; + this.followMe.list.push(...res.result.list); this.getUserData(res.result.list,1); }else{ console.log('加载关注我数据错误:'+res.message); @@ -170,9 +173,6 @@ }, getPage() { //我关注的,他关注的 this.follow.aid = this.userInfo.aid; - // this.page.aid = this.pageId; - // this.page.pageIndex=this.follow.pageIndex; - // this.page.pageSize=this.follow.pageSize; let $this=this; uni.showLoading({title:'加载中...'}); apiFollow.page(this.follow).then(res=>{ @@ -184,7 +184,7 @@ res.result.list.forEach(item=>{ item.userFollow.authorInfo = { aid: "",name: "",orgInfo: "",avatar: "",sex: null ,sign:''} }) - this.follow.list = res.result.list; + this.follow.list.push(...res.result.list); this.getUserData(res.result.list,2); } })