mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-07 18:06:47 +08:00
提交
This commit is contained in:
@@ -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);
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user