This commit is contained in:
zhaofang
2022-11-04 15:32:22 +08:00
parent 26aedb9bd3
commit d0be281c0a

View File

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