修改
This commit is contained in:
parent
4789d76841
commit
7e9989cc15
@ -143,9 +143,7 @@
|
|||||||
videoended(e) {
|
videoended(e) {
|
||||||
this.videoContext.stop()
|
this.videoContext.stop()
|
||||||
if (this.videoerroshow) {
|
if (this.videoerroshow) {
|
||||||
if (this.videoitem.watchTime) {
|
|
||||||
this.videoitem.watchTime = this.formatSeconds(this.videoitem.watchTime)
|
this.videoitem.watchTime = this.formatSeconds(this.videoitem.watchTime)
|
||||||
}
|
|
||||||
insertTrainingItemWatchRecord(this.videoitem).then(res => {
|
insertTrainingItemWatchRecord(this.videoitem).then(res => {
|
||||||
this.videoitem.watchTime = 0
|
this.videoitem.watchTime = 0
|
||||||
this.videoitem.videoshow = false
|
this.videoitem.videoshow = false
|
||||||
|
|||||||
@ -201,9 +201,7 @@
|
|||||||
this.videoshow = false
|
this.videoshow = false
|
||||||
this.videoContext.stop()
|
this.videoContext.stop()
|
||||||
if (this.videoerroshow) {
|
if (this.videoerroshow) {
|
||||||
if (this.videoitem.watchTime) {
|
|
||||||
this.videoitem.watchTime = this.formatSeconds(this.videoitem.watchTime)
|
this.videoitem.watchTime = this.formatSeconds(this.videoitem.watchTime)
|
||||||
}
|
|
||||||
insertTrainingItemWatchRecord(this.videoitem).then(res => {
|
insertTrainingItemWatchRecord(this.videoitem).then(res => {
|
||||||
this.videoitem.watchTime = 0
|
this.videoitem.watchTime = 0
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user