修改
This commit is contained in:
parent
ac8a0d71d3
commit
4bac09a1a3
@ -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");
|
||||
// 锁定竖屏
|
||||
|
||||
@ -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({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user