This commit is contained in:
曹辉 2023-05-04 15:35:04 +08:00
parent 7b75da97e7
commit 4789d76841
2 changed files with 28 additions and 26 deletions

View File

@ -117,18 +117,6 @@
}
insertTrainingItemWatchRecord(this.videoitem).then(res => {})
}
var that = this
uni.getSystemInfo({
success: function(res) {
if (res.platform == 'ios') {
that.videoitem = {
watchTime: 0
}
that.info();
that.videoshow = false
} else {}
}
});
},
onLaunch() {
//
@ -136,7 +124,20 @@
//
plus.screen.lockOrientation("portrait-primary");
},
onHide() {},
// onHide() {
// var that = this
// uni.getSystemInfo({
// success: function(res) {
// if (res.platform == 'ios') {
// that.videoitem = {
// watchTime: 0
// }
// that.info();
// that.videoshow = false
// } else {}
// }
// });
// },
methods: {
//
videoended(e) {

View File

@ -110,21 +110,22 @@
this.videoitem.watchTime = this.formatSeconds(this.videoitem.watchTime)
}
insertTrainingItemWatchRecord(this.videoitem).then(res => {})
var that = this
uni.getSystemInfo({
success: function(res) {
if (res.platform == 'ios') {
that.videoitem = {
watchTime: 0
}
that.info();
that.videoshow = false
} else {}
}
});
}
},
onHide() {},
// onHide() {
// var that = this
// uni.getSystemInfo({
// success: function(res) {
// if (res.platform == 'ios') {
// that.videoitem = {
// watchTime: 0
// }
// that.info();
// that.videoshow = false
// } else {}
// }
// });
// },
onLaunch: function() {
//
// plus.screen.lockOrientation("landscape-primary");