diff --git a/pages/template/swiper-vertical-video/swiper-vertical-video.uvue b/pages/template/swiper-vertical-video/swiper-vertical-video.uvue index cbd8dff961c98bd44b7e8dfc7e87b14b87e9a81b..39433efcc3d4ad061bbf4606807f9f3f89137693 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;