修改
This commit is contained in:
parent
ac8a0d71d3
commit
4bac09a1a3
@ -110,7 +110,15 @@
|
|||||||
videoContext: undefined,
|
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");
|
// plus.screen.lockOrientation("landscape-primary");
|
||||||
// 锁定竖屏
|
// 锁定竖屏
|
||||||
|
|||||||
@ -104,6 +104,14 @@
|
|||||||
videoerroshow: true,
|
videoerroshow: true,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
onUnload() {
|
||||||
|
if (this.videoerroshow) {
|
||||||
|
if (this.videoitem.watchTime) {
|
||||||
|
this.videoitem.watchTime = this.formatSeconds(this.videoitem.watchTime)
|
||||||
|
}
|
||||||
|
insertTrainingItemWatchRecord(this.videoitem).then(res => {})
|
||||||
|
}
|
||||||
|
},
|
||||||
onHide() {
|
onHide() {
|
||||||
var that = this
|
var that = this
|
||||||
uni.getSystemInfo({
|
uni.getSystemInfo({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user