mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-09 02:46:46 +08:00
提交
This commit is contained in:
@@ -90,6 +90,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onPullDownRefresh() {
|
onPullDownRefresh() {
|
||||||
|
this.onReachBottom();
|
||||||
|
},
|
||||||
|
onReachBottom() {
|
||||||
if(this.tab == 1) {//关注我的
|
if(this.tab == 1) {//关注我的
|
||||||
this.followMe.pageIndex ++;
|
this.followMe.pageIndex ++;
|
||||||
this.getMyPage();
|
this.getMyPage();
|
||||||
@@ -161,7 +164,7 @@
|
|||||||
res.result.list.forEach(item=>{
|
res.result.list.forEach(item=>{
|
||||||
item.userFollow.authorInfo = { aid: "",name: "",orgInfo: "",avatar: "",sex: null ,sign:''}
|
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);
|
this.getUserData(res.result.list,1);
|
||||||
}else{
|
}else{
|
||||||
console.log('加载关注我数据错误:'+res.message);
|
console.log('加载关注我数据错误:'+res.message);
|
||||||
@@ -170,9 +173,6 @@
|
|||||||
},
|
},
|
||||||
getPage() { //我关注的,他关注的
|
getPage() { //我关注的,他关注的
|
||||||
this.follow.aid = this.userInfo.aid;
|
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;
|
let $this=this;
|
||||||
uni.showLoading({title:'加载中...'});
|
uni.showLoading({title:'加载中...'});
|
||||||
apiFollow.page(this.follow).then(res=>{
|
apiFollow.page(this.follow).then(res=>{
|
||||||
@@ -184,7 +184,7 @@
|
|||||||
res.result.list.forEach(item=>{
|
res.result.list.forEach(item=>{
|
||||||
item.userFollow.authorInfo = { aid: "",name: "",orgInfo: "",avatar: "",sex: null ,sign:''}
|
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);
|
this.getUserData(res.result.list,2);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user