From 086c86f5af7165c6f25249a2798c7c0595d29cba Mon Sep 17 00:00:00 2001 From: linju Date: Fri, 22 Nov 2024 13:10:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dswiper-vertical-video?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B=EF=BC=8C=E5=9C=A8web=20=E7=AB=AF=E7=94=B1?= =?UTF-8?q?=E4=BA=8E=E6=B5=8F=E8=A7=88=E5=99=A8=E9=99=90=E5=88=B6=EF=BC=8C?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E8=87=AA=E5=8A=A8=E6=92=AD=E6=94=BE=EF=BC=8C?= =?UTF-8?q?=E5=BC=95=E8=B5=B7=E7=9A=84=E6=92=AD=E6=94=BE=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../swiper-vertical-video/swiper-vertical-video.uvue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/template/swiper-vertical-video/swiper-vertical-video.uvue b/pages/template/swiper-vertical-video/swiper-vertical-video.uvue index 407a7cd0..36d54896 100644 --- a/pages/template/swiper-vertical-video/swiper-vertical-video.uvue +++ b/pages/template/swiper-vertical-video/swiper-vertical-video.uvue @@ -40,7 +40,7 @@ visibleList: [] as ListItem[],// 提高性能 可见的只有3个 current: 0 as number, index: 0, - state: ["unPlay", "unPlay", "unPlay"] as string[] + state: ["pause", "unPlay", "unPlay"] as string[] } }, created() { @@ -86,9 +86,9 @@ } }, onReady() { - // 一启动完成,就播放第一个 - this.doPlay(0); // #ifdef APP || MP + // 非web端,一启动完成,就播放第一个。因为 web端浏览器限制不支持自动播放 + this.doPlay(0); //App端适配不同状态栏高度 let backElement = this.$refs['back'] as UniElement; backElement.style.setProperty('top', uni.getSystemInfoSync().statusBarHeight+'px'); -- GitLab