From ae9298ec99ed63f05dd6376d07a89c6166104546 Mon Sep 17 00:00:00 2001 From: linju Date: Fri, 18 Aug 2023 19:31:53 +0800 Subject: [PATCH] Update swiper-vertical-video.uvue --- .../swiper-vertical-video.uvue | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pages/template/swiper-vertical-video/swiper-vertical-video.uvue b/pages/template/swiper-vertical-video/swiper-vertical-video.uvue index cbd8dff9..39433efc 100644 --- a/pages/template/swiper-vertical-video/swiper-vertical-video.uvue +++ b/pages/template/swiper-vertical-video/swiper-vertical-video.uvue @@ -2,7 +2,7 @@ - + @@ -12,7 +12,7 @@ - + debug-info 播放状态: 第{{index+1}}个:{{value?'播放中':'已暂停'}} @@ -90,11 +90,11 @@ } }, doPlay(index : number) { - console.log("doPlay video-" + index,this.$refs["video-" + index]); - (this.$refs["video-" + index] as VideoNode).play() + // console.log("doPlay video" + index,(this.$refs["video"] as VideoNode[])[0] ); + (this.$refs["video"] as VideoNode[])[index].play() }, doPause(index : number) { - (this.$refs["video-" + index] as VideoNode).pause() + (this.$refs["video"] as VideoNode[])[index].pause() console.log("doPause video-" + index); }, onPause(index : number) { @@ -129,7 +129,7 @@ let index = this.list.length + i; let listItem : ListItem = { "_id": "a00" + index, - "content": "这是第" + index + "条数据" + videoUrlList[i % 3], + "content": "这是第" + index + "条数据,url地址" + videoUrlList[i % 3], "src": videoUrlList[i % 3], "poster_src": posterSrcList[i % 3] } @@ -200,6 +200,7 @@ position: fixed; top:15px; width: 750rpx; + background-color: rgba(255, 255, 255, 0.3); } .status-text{ color:red; -- GitLab