修改
This commit is contained in:
parent
7b75da97e7
commit
4789d76841
@ -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) {
|
||||
|
||||
@ -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");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user