From 269e7d9f6e41ddf3936c79e96f509de67277494f Mon Sep 17 00:00:00 2001 From: LiuJiaNan Date: Fri, 31 May 2024 10:01:38 +0800 Subject: [PATCH] =?UTF-8?q?bug=EF=BC=9A15689=E3=80=8115669?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../safetymeeting/safetymeeting-detail.vue | 14 ++++++++++- pages/basics/basic-info/confirm.vue | 24 +++++++++++++++++-- 2 files changed, 35 insertions(+), 3 deletions(-) diff --git a/pages/application/safetymeeting/safetymeeting-detail.vue b/pages/application/safetymeeting/safetymeeting-detail.vue index 93cbdbc..ef1b3f2 100644 --- a/pages/application/safetymeeting/safetymeeting-detail.vue +++ b/pages/application/safetymeeting/safetymeeting-detail.vue @@ -37,7 +37,8 @@ - + + @@ -150,6 +151,8 @@ LIVEPHOTOS: '', SIGNATUREPICTURE: '', ATTENDANCE_STATUS: '', + videoContext:null, + isPlayVideo: false, } }, onLoad(e){ @@ -159,6 +162,13 @@ }, methods: { + playVideo(){ + if (!this.videoContext) { + this.videoContext = uni.createVideoContext("video"); + } + this.videoContext.play(); + this.isPlayVideo = true; + }, //跳转事件 goToEdit(e) { uni.navigateTo({ @@ -467,6 +477,8 @@ this.$refs['showHiddenWindow'].open() this.showHiddenWindow = true this.hiddenIsEdit = true + this.videoContext && this.videoContext.pause() + this.isPlayVideo = false }, openAuth(permissionID){ diff --git a/pages/basics/basic-info/confirm.vue b/pages/basics/basic-info/confirm.vue index 2013635..3d2a283 100644 --- a/pages/basics/basic-info/confirm.vue +++ b/pages/basics/basic-info/confirm.vue @@ -45,7 +45,15 @@