频道列表
@@ -506,6 +509,17 @@ export default {
this.playVideo(index, time)
}
},
+ disableChannel (channel) {
+ const index = this.right.sources.indexOf(channel)
+ this.right.sources.splice(index, 1)
+ const ele = this.channelList.find(e => e.id === channel.channelID)
+ const origin = ele.channels.find(e => e.id === channel.id)
+ origin.isActive = false
+ ele.isActive = ele.channels.some(e => e.isActive)
+ channelList.remove(ele.id)
+ channelList.add(ele)
+ this.getChannelList()
+ },
playChannel (channel) {
if (channel.channels) {
this.right.sources = channel.channels.filter(e => e.isActive)
@@ -972,6 +986,7 @@ export default {
this.getOtherSites()
this.right.currentTime = this.xg.currentTime
} else {
+ this.channelListShow = false
this.right.type = 'sources'
}
this.right.show = true
@@ -1602,6 +1617,7 @@ export default {
padding-left: 10px;
font-size: 14px;
cursor: pointer;
+ display: flex;
.title{
display: inline-block;
overflow: hidden;
@@ -1609,6 +1625,9 @@ export default {
white-space: nowrap;
width: 231px;
}
+ .btn{
+ display: inline-block;
+ }
.detail-delete{
display: none;
position: absolute;