This commit is contained in:
parent
e919a8dfaf
commit
c956e8cd33
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue