dedsudiyu 1 year ago
parent
commit
ecb98dc860
1 changed files with 6 additions and 4 deletions
  1. 6 4
      pages/earlyWarningManage/earlyWarningDetail.vue

+ 6 - 4
pages/earlyWarningManage/earlyWarningDetail.vue

@@ -150,7 +150,9 @@
 				<!-- <view v-if="form.warningType==4" class="img" @click="lockImgTow(form.recordPhoto)">
 					<img  :src="configUrl+form.recordPhoto"/>
 				</view> -->
-				<video id="myvideo" :class="videoType?'videoOpacity1':'videoOpacity0'"
+				<video 
+					@click="lockVideo"
+					id="myvideo" :class="videoType?'videoOpacity1':'videoOpacity0'"
 					:controls="false" :muted="true" :autoplay="true"
 					:show-fullscreen-btn="false"
 					:show-play-btn="false"
@@ -314,9 +316,9 @@ export default {
 		},
 		//视频全屏播放
 		lockVideo(){
-			this.videoContext = uni.createVideoContext("myvideo", this);
-			this.videoContext.requestFullScreen({ direction: 90 });
-			this.videoContext.play();
+			let videoContext = uni.createVideoContext("myvideo", this);
+			videoContext.requestFullScreen({ direction: 90 });
+			// this.videoContext.play();
 		},
 		//计算两个日期差值(天)
 		datedifference(sDate1, sDate2) {    //sDate1和sDate2是2006-12-18格式