From 7b75da97e79f45e86d42cddc10baa0abf930cb9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Thu, 4 May 2023 15:32:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Ordervideolearning/Ordervideolearning.vue | 15 +++++----- pages/Videolearning/Videolearning.vue | 27 +++++++++--------- static/bofang.png | Bin 0 -> 417 bytes 3 files changed, 20 insertions(+), 22 deletions(-) create mode 100644 static/bofang.png 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 0000000000000000000000000000000000000000..e2a7bc7778c10ae63b21844670067cf9bc67217f GIT binary patch literal 417 zcmV;S0bc%zP)&*W|Pro4B#AD4G`NdN%cXNv)kI1jzX0?!$@F3WmwgUNQM2X|;U zU&r+@<7Ae#;E|IVWpV(p%m%O7<|(%TuZ6P8kLa2H)xV+P~?=bug|jpIb38MB6saj<|h$rxEFcCBbt@=RI`#JP6rRHW7B2h}XM+v#?xdcyW_)EukLF$rKENOm?Ma4+VAI12E&%``cFcuj zj9?i6z;v)pAG0QuN<#P>Pwyk`cl4azKDM9bLk~W-qPp5I7Qiao9P*P7JOseL1Fz+o zHcRmrd~)$#^T4JTUwH_uo(SQewUo&(TE)m!h)KH1h!I=d)Kk9zMe8AqT)*fN00000 LNkvXXu0mjf+`zg* literal 0 HcmV?d00001