This commit is contained in:
binbin_pan 2024-12-19 21:36:55 +08:00
parent e919a8dfaf
commit c956e8cd33
2 changed files with 10 additions and 1 deletions

View File

@ -9,7 +9,8 @@
:enable-progress-gesture="false"
@error="videoErrorCallback"
@timeupdate="videoTimeUpdate"
controls
:controls="true"
:autoplay="true"
/>
</div>

View File

@ -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
}