修改
This commit is contained in:
parent
4bac09a1a3
commit
7b75da97e7
@ -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) {
|
||||
|
||||
@ -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
BIN
static/bofang.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 417 B |
Loading…
Reference in New Issue
Block a user