From 4ef229013a6ec4c286234283fd56ab1961f78109 Mon Sep 17 00:00:00 2001 From: huangzhe <3451701311@qq.com> Date: Tue, 9 Sep 2025 11:26:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20ios=20=E6=92=AD?= =?UTF-8?q?=E6=94=BE=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 苹果设备播放时进度条第一次进入会造成无法滚动的问题 --- components/video-player/video-player.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/components/video-player/video-player.vue b/components/video-player/video-player.vue index ec24321..d87631d 100644 --- a/components/video-player/video-player.vue +++ b/components/video-player/video-player.vue @@ -189,16 +189,17 @@ export default { //document.getElementById('xvideoPlayer').style.display = 'block' //this.videoContext=uni.createVideoContext("xvideoPlayer", this); }, - inittime(newVal, oldVal) { - this.initPlayingTime = newVal; - //console.log('inittime::',newVal,oldVal) + inittime: { + handler(newVal, oldVal) { + this.initPlayingTime = newVal; + } } }, mounted() { var _this = this this.initPlayingTime = this.inittime; this.videoContext = uni.createVideoContext("xvideoPlayer", this); - // document.getElementsByTagName('video')[0].load() + document.getElementsByTagName('video')[0].load() uni.getSystemInfo({ success: function (info) { //alert(info.windowWidth)