From 5931266770c61d3135e1a671d8d08b455eaff036 Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Sat, 12 Dec 2020 13:51:58 +0100 Subject: [PATCH] =?UTF-8?q?=E6=92=AD=E6=94=BE=E9=A1=B5=E9=9D=A2,=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=8E=86=E5=8F=B2=E6=97=B6=E9=97=B4=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Play.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Play.vue b/src/components/Play.vue index 5e81249..efd2912 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -116,7 +116,8 @@ - 上次播放到【{{right.history[0].site}}】{{right.history[0].name}} 第{{right.history[0].index+1}}集 + + 上次播放到:【{{right.history[0].site}}】{{right.history[0].name}} 第{{right.history[0].index+1}}集 {{fmtMSS(right.history[0].time.toFixed(0))}}/{{fmtMSS(right.history[0].duration.toFixed(0))}}
@@ -464,6 +465,9 @@ export default { }, methods: { ...mapMutations(['SET_VIEW', 'SET_DETAIL', 'SET_VIDEO', 'SET_SHARE', 'SET_APPSTATE']), + fmtMSS (s) { + return (s - (s %= 60)) / 60 + (s > 9 ? ':' : ':0') + s + }, leadingZero (time) { Object.keys(time).forEach(key => { if (time[key] > 59 || time[key] < 0) {