diff --git a/pages/template/swiper-vertical-video/swiper-vertical-video.uvue b/pages/template/swiper-vertical-video/swiper-vertical-video.uvue
index 37ecde764b4907ed25940fbc42ff942a558c12a3..d515af480f802f9efeefdc350f1370f7d9f195ea 100644
--- a/pages/template/swiper-vertical-video/swiper-vertical-video.uvue
+++ b/pages/template/swiper-vertical-video/swiper-vertical-video.uvue
@@ -4,8 +4,12 @@
-
-
+
+
@@ -121,12 +125,8 @@
},
doStop(index : number) {
console.log("doStop video-" + index);
-
- // this.getVideoContext(index).stop()
-
- // TODO 临时方案: 暂不支持stop(),先调用暂停并将播放时间归零
- this.getVideoContext(index).pause()
- this.getVideoContext(index).seek(0)
+ this.getVideoContext(index).stop();
+ // TODO 临时方案:解决.stop()时触发了doPause的问题
setTimeout(()=>{
this.state[index] = 'unPlay'
},1000)