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" :enable-progress-gesture="false"
@error="videoErrorCallback" @error="videoErrorCallback"
@timeupdate="videoTimeUpdate" @timeupdate="videoTimeUpdate"
controls :controls="true"
:autoplay="true"
/> />
</div> </div>

View File

@ -410,8 +410,16 @@ export default {
console.log('🚀 ~ handleJump ~ item:', item, this.recordId) console.log('🚀 ~ handleJump ~ item:', item, this.recordId)
if (item === 'prev') { if (item === 'prev') {
this.nowNum-- this.nowNum--
if (this.nowNum < 1) {
this.nowNum = 1
return
}
} else if (item === 'next') { } else if (item === 'next') {
this.nowNum++ this.nowNum++
if (this.nowNum > this.allNum) {
this.nowNum = this.allNum
return
}
} else if (item === 'jump') { } else if (item === 'jump') {
this.nowNum = index this.nowNum = index
} }