From eb846adcd95d2231516b01b5a5c285be8f38b095 Mon Sep 17 00:00:00 2001 From: zhaofang <752743406@qq.com> Date: Fri, 4 Nov 2022 13:55:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E5=85=B3=E6=B3=A8loading?= =?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 | 15 ++++------ src/views/portal/follow/index.vue | 48 ++++++++++++++++++++++++------- 2 files changed, 43 insertions(+), 20 deletions(-) diff --git a/src/views/homepage/page.vue b/src/views/homepage/page.vue index 3f29f0da..8acfef87 100644 --- a/src/views/homepage/page.vue +++ b/src/views/homepage/page.vue @@ -202,20 +202,15 @@ } if(this.activeName == '1') { this.loading1 = true; - } else - if(this.activeName == '2') { + } else if(this.activeName == '2') { this.loading2 = true; - } else - if(this.activeName == '3') { + } else if(this.activeName == '3') { this.loading3 = true; - } else - if(this.activeName == '4') { + } else if(this.activeName == '4') { this.loading4 = true; - } else - if(this.activeName == '5') { + } else if(this.activeName == '5') { this.loading5 = true; - } else - if(this.activeName == '6') { + } else if(this.activeName == '6') { this.loading6 = true; } else { this.loading = true; diff --git a/src/views/portal/follow/index.vue b/src/views/portal/follow/index.vue index e22d7d03..4c4035ea 100644 --- a/src/views/portal/follow/index.vue +++ b/src/views/portal/follow/index.vue @@ -13,7 +13,7 @@ --> - + -
+

暂时没有动态

- + - + - + - + - + - + @@ -101,8 +101,15 @@ components:{portalHeader,UcHeader,CaseList,CourseList,NoteList,PutList,AnswerList,ArticleList,FollowList,BookList}, data(){ return{ + loading:false, + loading1:false, + loading2:false, + loading3:false, + loading4:false, + loading5:false, + loading6:false, input:'', - loading:0,//加载中 + // loading:0,//加载中 activeName:'first', page:{ pageIndex:1, @@ -174,8 +181,29 @@ contentType:this.activeName == 0? '':this.activeName,//内容类型 aids:this.followIds // 数组 } + 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; + } apiStat.userDynamicfollows(data).then(res=>{ - this.loading=1; + 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; if(res.result.count==0){