diff --git a/pages/Ordervideolearning/Ordervideolearning.vue b/pages/Ordervideolearning/Ordervideolearning.vue index 51edd6c..a01ba32 100644 --- a/pages/Ordervideolearning/Ordervideolearning.vue +++ b/pages/Ordervideolearning/Ordervideolearning.vue @@ -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) { diff --git a/pages/Videolearning/Videolearning.vue b/pages/Videolearning/Videolearning.vue index 6fe4ce8..aed98e7 100644 --- a/pages/Videolearning/Videolearning.vue +++ b/pages/Videolearning/Videolearning.vue @@ -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"); diff --git a/static/bofang.png b/static/bofang.png new file mode 100644 index 0000000..e2a7bc7 Binary files /dev/null and b/static/bofang.png differ