This commit is contained in:
曹辉 2023-05-04 15:32:37 +08:00
parent 4bac09a1a3
commit 7b75da97e7
3 changed files with 20 additions and 22 deletions

View File

@ -117,14 +117,6 @@
}
insertTrainingItemWatchRecord(this.videoitem).then(res => {})
}
},
onLaunch() {
//
// plus.screen.lockOrientation("landscape-primary");
//
plus.screen.lockOrientation("portrait-primary");
},
onHide() {
var that = this
uni.getSystemInfo({
success: function(res) {
@ -138,6 +130,13 @@
}
});
},
onLaunch() {
//
// plus.screen.lockOrientation("landscape-primary");
//
plus.screen.lockOrientation("portrait-primary");
},
onHide() {},
methods: {
//
videoended(e) {

View File

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

BIN
static/bofang.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 417 B