取消footer可以滑动进度条的功能

This commit is contained in:
zyronon 2021-07-03 00:06:01 +08:00
parent 0b467ffcc7
commit 210201fc0f
2 changed files with 1 additions and 23 deletions

View File

@ -1,7 +1,5 @@
<template>
<div class="footer f16 "
@touchmove="move"
@touchend="end">
<div class="footer f16 ">
<div class="button" @click="refresh()">
<span v-if="!isRefresh" :class="{active:currentTab===1}">首页</span>
<img v-else src="../assets/img/icon/refresh.png" alt="" class="refresh">
@ -21,8 +19,6 @@
</template>
<script>
import {inject} from "vue";
export default {
name: "Footer",
props: ['initTab'],
@ -30,17 +26,9 @@ export default {
return {
isRefresh: false,
currentTab: this.initTab,
mitt: inject('mitt'),
}
},
methods: {
move(e) {
this.mitt.emit(this.$store.state.currentVideoId, {isMove: true, e})
this.$stopPropagation(e)
},
end(e) {
this.mitt.emit(this.$store.state.currentVideoId, {isMove: false, e})
},
tab(index) {
this.currentTab = index
switch (index) {

View File

@ -105,8 +105,6 @@
<script>
import {inject} from "vue";
export default {
name: "Video",
props: {
@ -184,7 +182,6 @@ export default {
line: null,
point: null,
isMove: false,
mitt: inject('mitt'),
currentVideoId: 'a' + Date.now(),
test: [1, 2]
}
@ -194,13 +191,6 @@ export default {
this.width = document.body.clientWidth
this.line = this.$refs.line
this.point = this.$refs.point
this.mitt.on(this.currentVideoId, v => {
if (this.duration < 60) return
this.isMove = v.isMove
// this.currentTime = v.isMove ? v.e : this.currentTime
v.isMove ? this.move(v.e) : this.end(v.e)
})
},
methods: {
attention() {