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) {