This commit is contained in:
曹辉 2023-05-04 15:27:43 +08:00
parent ac8a0d71d3
commit 4bac09a1a3
2 changed files with 17 additions and 1 deletions

View File

@ -110,7 +110,15 @@
videoContext: undefined,
};
},
onLaunch: function() {
onUnload() {
if (this.videoerroshow) {
if (this.videoitem.watchTime) {
this.videoitem.watchTime = this.formatSeconds(this.videoitem.watchTime)
}
insertTrainingItemWatchRecord(this.videoitem).then(res => {})
}
},
onLaunch() {
//
// plus.screen.lockOrientation("landscape-primary");
//

View File

@ -104,6 +104,14 @@
videoerroshow: true,
};
},
onUnload() {
if (this.videoerroshow) {
if (this.videoitem.watchTime) {
this.videoitem.watchTime = this.formatSeconds(this.videoitem.watchTime)
}
insertTrainingItemWatchRecord(this.videoitem).then(res => {})
}
},
onHide() {
var that = this
uni.getSystemInfo({