From 739b3fe30f97365d0c8e4457aa5e776bc123e907 Mon Sep 17 00:00:00 2001 From: buvta <12312540+buvta@users.noreply.github.com> Date: Thu, 12 Nov 2020 11:37:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4iptvList=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E6=97=B6=E6=9C=BA=EF=BC=8C=E6=B8=85=E9=99=A4=E6=AE=8B=E4=BD=99?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Play.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/Play.vue b/src/components/Play.vue index 19df88d..863567b 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -373,7 +373,6 @@ export default { if (this.video.iptv) { // 是直播源,直接播放 this.playChannel(this.video.iptv) - this.getIptvList() } else { const index = this.video.info.index | 0 var time = this.video.info.time @@ -390,6 +389,7 @@ export default { } }, playChannel (channel) { + this.getIptvList() this.video.iptv = channel this.name = channel.name this.xg.src = channel.url @@ -522,7 +522,6 @@ export default { var index = this.iptvList.findIndex(obj => obj.name === this.video.iptv.name && obj.url === this.video.iptv.url) if (index >= 1) { var channel = this.iptvList[index - 1] - this.video.iptv = channel this.playChannel(channel) } else { this.$message.warning('这已经是第一个频道了。') @@ -541,7 +540,6 @@ export default { var index = this.iptvList.findIndex(obj => obj.name === this.video.iptv.name && obj.url === this.video.iptv.url) if (index < (this.iptvList.length - 1)) { var channel = this.iptvList[index + 1] - this.video.iptv = channel this.playChannel(channel) } else { this.$message.warning('这已经是最后一个频道了。') @@ -645,7 +643,6 @@ export default { url: this.video.iptv.url } } - console.log(doc) if (res) { mini.update(doc) } else { @@ -787,7 +784,6 @@ export default { listItemEvent (n) { if (this.video.iptv) { var channel = this.iptvList[n] - this.video.iptv = channel // 是直播源,直接播放 this.playChannel(channel) } else { @@ -853,7 +849,6 @@ export default { this.right.currentTime = this.xg.currentTime } else { this.right.type = 'otherChannels' - this.getIptvList() } this.right.show = true }, @@ -1039,6 +1034,7 @@ export default { let li = '' if (this.video.iptv) { // 直播频道列表 + this.getIptvList() let index = 0 this.iptvList.forEach(e => { if (e.name === this.video.iptv.name && e.url === this.video.iptv.url) {