From 9ccfefaafbbfbe8a1bb10762580fdcc4435d2544 Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Sat, 7 Nov 2020 12:29:34 +0100 Subject: [PATCH] =?UTF-8?q?=E5=8E=86=E5=8F=B2=E9=A1=B5=E9=9D=A2,=E6=94=B9?= =?UTF-8?q?=E8=BF=9B=E8=BF=9B=E5=BA=A6=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Detail.vue | 15 +-------------- src/components/History.vue | 33 +++++++++++++++++++++------------ src/lib/site/tools.js | 14 ++++++++++++++ 3 files changed, 36 insertions(+), 26 deletions(-) diff --git a/src/components/Detail.vue b/src/components/Detail.vue index 50b65ea..f3fd389 100644 --- a/src/components/Detail.vue +++ b/src/components/Detail.vue @@ -128,19 +128,6 @@ export default { close () { this.detail.show = false }, - m3u8Parse (e) { - const dd = e.dl.dd - const type = Object.prototype.toString.call(dd) - if (type === '[object Array]') { - for (const i of dd) { - if (i._flag.indexOf('m3u8') >= 0) { - this.m3u8List = i._t.split('#') - } - } - } else { - this.m3u8List = dd._t.split('#') - } - }, async playEvent (n) { if (!this.playOnline) { console.log(this.detail) @@ -278,7 +265,7 @@ export default { if (res) { this.info = res this.$set(this.info, 'rate', '') - this.m3u8Parse(res) + this.m3u8List = res.m3u8List this.getDoubanRate() this.loading = false } diff --git a/src/components/History.vue b/src/components/History.vue index 379b4e3..0416d18 100644 --- a/src/components/History.vue +++ b/src/components/History.vue @@ -23,20 +23,24 @@ + width="180" + label="集数进度"> + width="150" + label="时间进度">