From df35571c818dbe736fc25c9d10075dcf6e9319bc Mon Sep 17 00:00:00 2001 From: Enzo <1284707383@qq.com> Date: Fri, 27 Aug 2021 11:04:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=A2=91=E9=81=93=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/channel/index.vue | 27 +++++++++++++++++++++++++-- pages/index/index.vue | 2 +- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/pages/channel/index.vue b/pages/channel/index.vue index 63288d9..1224565 100644 --- a/pages/channel/index.vue +++ b/pages/channel/index.vue @@ -14,7 +14,7 @@ - + {{item.name}} @@ -42,8 +42,14 @@ }, onLoad(){ this.getMyChancel() + }, + computed: { + }, methods: { + verfiyCheck(value) { + return value.checked == true; + }, //我的频道列表 getMyChancel(){ this.$http(this.API.API_MYCHANNEL).then(res => { @@ -112,6 +118,15 @@ this.select_list[item2.name] = {p_index: index, c_index: index2}; this.chanel_id.push(item2.id); this.channel_list[index].content[index2].checked = true; + + this.channel_list.forEach((item,index) => { + var valueContent = item.content.every(this.verfiyCheck); + if(valueContent) { + this.$set(item,'showTitle',true) + }else { + this.$set(item,'showTitle',false) + } + }) } } if(type != 1) { @@ -134,6 +149,14 @@ }); // 清除选中的对象 delete this.select_list[key]; + this.channel_list.forEach((item,index) => { + var valueContent = item.content.every(this.verfiyCheck); + if(valueContent) { + this.$set(item,'showTitle',true) + }else { + this.$set(item,'showTitle',false) + } + }) this.updateChannel(2); } } @@ -181,7 +204,7 @@ // margin-top: -2rpx; box-sizing: border-box; margin: 6rpx; - border-radius: 20rpx; + border-radius: 5rpx; } .active{ border: 1rpx solid #FF0000; diff --git a/pages/index/index.vue b/pages/index/index.vue index f69c0d8..112cfb0 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,6 +1,6 @@