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){