From dc8069bca13f539089ddfc40b3e6ab40e55e7a70 Mon Sep 17 00:00:00 2001 From: modendeveloper Date: Wed, 8 Jan 2025 21:17:56 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A3002=20=E3=80=90=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E4=BC=98=E5=8C=96=E8=AF=84?= =?UTF-8?q?=E8=AE=BA=E5=88=97=E8=A1=A8=E4=B8=AD=E5=A4=9A=E4=B8=AA=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E4=B8=8D=E8=83=BD=E5=90=8C=E6=97=B6=E6=92=AD=E6=94=BE?= =?UTF-8?q?=EF=BC=8C=E6=92=AD=E6=94=BE=E4=B8=8B=E4=B8=80=E4=B8=AA=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E8=87=AA=E5=8A=A8=E6=9A=82=E5=81=9C=E5=89=8D=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E6=AD=A3=E5=9C=A8=E6=92=AD=E6=94=BE=E7=9A=84=E8=A7=86?= =?UTF-8?q?=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/UserEvaluation.vue | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/components/UserEvaluation.vue b/components/UserEvaluation.vue index 651652e..dae2ac9 100644 --- a/components/UserEvaluation.vue +++ b/components/UserEvaluation.vue @@ -26,7 +26,9 @@ :poster="item.video + '?vframe/jpg/offset/1'" controls play-btn-position="center" + :id="'video' + evaluateWtapperIndex" class="image" + @play="pauseOtherVideo('video' + evaluateWtapperIndex)" /> { + if(item !== video) { + uni.createVideoContext(item, this).pause(); + } + }) + } else { + this.videoPlayers.push(video); + } } } };