修改
This commit is contained in:
parent
7b75da97e7
commit
4789d76841
@ -117,18 +117,6 @@
|
|||||||
}
|
}
|
||||||
insertTrainingItemWatchRecord(this.videoitem).then(res => {})
|
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() {
|
onLaunch() {
|
||||||
// 锁定横屏
|
// 锁定横屏
|
||||||
@ -136,7 +124,20 @@
|
|||||||
// 锁定竖屏
|
// 锁定竖屏
|
||||||
plus.screen.lockOrientation("portrait-primary");
|
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: {
|
methods: {
|
||||||
//播放到末尾
|
//播放到末尾
|
||||||
videoended(e) {
|
videoended(e) {
|
||||||
|
|||||||
@ -110,21 +110,22 @@
|
|||||||
this.videoitem.watchTime = this.formatSeconds(this.videoitem.watchTime)
|
this.videoitem.watchTime = this.formatSeconds(this.videoitem.watchTime)
|
||||||
}
|
}
|
||||||
insertTrainingItemWatchRecord(this.videoitem).then(res => {})
|
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() {
|
onLaunch: function() {
|
||||||
// 锁定横屏
|
// 锁定横屏
|
||||||
// plus.screen.lockOrientation("landscape-primary");
|
// plus.screen.lockOrientation("landscape-primary");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user