From 89dd6f7a6e422c0617ede2a9e3c7a067a9aecaf8 Mon Sep 17 00:00:00 2001 From: lmj <3407000732@qq.com> Date: Sat, 15 Oct 2022 11:29:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/HomePage/followList.vue | 45 +++++++++++++++++++++++--- src/components/UserCenter/menu.vue | 2 +- src/views/homepage/page.vue | 5 +-- 3 files changed, 45 insertions(+), 7 deletions(-) diff --git a/src/components/HomePage/followList.vue b/src/components/HomePage/followList.vue index b9d32c34..9913eea3 100644 --- a/src/components/HomePage/followList.vue +++ b/src/components/HomePage/followList.vue @@ -30,6 +30,18 @@ +
+ + +
@@ -60,6 +72,18 @@
+
+ + +
@@ -102,7 +126,8 @@ import apiUser from "@/api/system/user.js"; page:{ pageIndex:1, pageSize:10, - aid:'' + aid:'', + count:0 } } }, @@ -110,10 +135,22 @@ import apiUser from "@/api/system/user.js"; this.pageId = this.$xpage.getHomeId(this.$route); }, methods:{ + handleSizeChange(val) { + this.page.pageSize = val; + this.page.pageIndex = 1; + this.getPage() + this.getMyPage() + }, + handleCurrentChange(val) { + this.page.pageIndex = val; + this.getPage() + this.getMyPage() + }, cancel(item) { apiFollow.remove(item.followId).then(res=>{ if(res.status == 200) { this.getPage() + } }) }, @@ -135,12 +172,12 @@ import apiUser from "@/api/system/user.js"; this.page.aid = this.pageId; apiFollow.mypage(this.page).then(res=>{ if(res.status== 200) { - this.count = res.result.count; + this.page.count = res.result.count; res.result.list.forEach(item=>{ item.userFollow.authorInfo = { aid: "",name: "",orgInfo: "",avatar: "",sex: null ,sign:''} }) this.mypageList = res.result.list; - //console.log(this.mypageList,'this.mypageList'); + console.log(this.mypageList,'this.mypageList'); this.getUserData(res.result.list); } }) @@ -149,7 +186,7 @@ import apiUser from "@/api/system/user.js"; this.page.aid = this.pageId; apiFollow.page(this.page).then(res=>{ if(res.status== 200) { - this.count = res.result.count; + this.page.count = res.result.count; res.result.list.forEach(item=>{ item.authorInfo = { aid: "",name: "",orgInfo: "",avatar: "",sex: null ,sign:''} }) diff --git a/src/components/UserCenter/menu.vue b/src/components/UserCenter/menu.vue index b22b88d8..ea38c61b 100644 --- a/src/components/UserCenter/menu.vue +++ b/src/components/UserCenter/menu.vue @@ -306,7 +306,7 @@ 消息中心 - - +