This commit is contained in:
parent
e919a8dfaf
commit
c956e8cd33
|
|
@ -9,7 +9,8 @@
|
|||
:enable-progress-gesture="false"
|
||||
@error="videoErrorCallback"
|
||||
@timeupdate="videoTimeUpdate"
|
||||
controls
|
||||
:controls="true"
|
||||
:autoplay="true"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -410,8 +410,16 @@ export default {
|
|||
console.log('🚀 ~ handleJump ~ item:', item, this.recordId)
|
||||
if (item === 'prev') {
|
||||
this.nowNum--
|
||||
if (this.nowNum < 1) {
|
||||
this.nowNum = 1
|
||||
return
|
||||
}
|
||||
} else if (item === 'next') {
|
||||
this.nowNum++
|
||||
if (this.nowNum > this.allNum) {
|
||||
this.nowNum = this.allNum
|
||||
return
|
||||
}
|
||||
} else if (item === 'jump') {
|
||||
this.nowNum = index
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue