From bd09be3d4f5eb40e093639db4a40ecfd39572ed2 Mon Sep 17 00:00:00 2001 From: zhaofang <752743406@qq.com> Date: Fri, 4 Nov 2022 12:04:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=BB=E9=A1=B5loading?= =?UTF-8?q?=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/homepage/page.vue | 50 +++++++++++++++++++++++++++++++------ 1 file changed, 43 insertions(+), 7 deletions(-) diff --git a/src/views/homepage/page.vue b/src/views/homepage/page.vue index 7f476fe5..1285314d 100644 --- a/src/views/homepage/page.vue +++ b/src/views/homepage/page.vue @@ -6,7 +6,7 @@ --> - + 动态 - + 课程 - + 案例 - + 笔记 - + 提问 - + 回答 - + 文章 @@ -97,6 +97,13 @@ }, data(){ return{ + loading:false, + loading1:false, + loading2:false, + loading3:false, + loading4:false, + loading5:false, + loading6:false, intTabIndex:-1,//初始化显示哪个tab,71我关注的人,72关注我的人 page:{ pageIndex:1, @@ -193,7 +200,36 @@ aid:this.pageId, //指定用户的动态, hidden:this.pageId == this.userInfo.aid?'':false,//是否隐藏,不指定,查询全部 } + console.log(this.activeName,'this.activeName'); + if(this.activeName == '1') { + this.loading1 = true; + } else + if(this.activeName == '2') { + this.loading2 = true; + } else + if(this.activeName == '3') { + this.loading3 = true; + } else + if(this.activeName == '4') { + this.loading4 = true; + } else + if(this.activeName == '5') { + this.loading5 = true; + } else + if(this.activeName == '6') { + this.loading6 = true; + } else { + this.loading = true; + } + // this.loading = true; apiStat.userDynamicList(data).then(res=>{ + this.loading = false; + this.loading1 = false; + this.loading2 = false; + this.loading3 = false; + this.loading4 = false; + this.loading5 = false; + this.loading6 = false; if(res.status == 200) { this.page.count = res.result.count; let ids = res.result.list.map(item=>item.contentId);