From e4f0862bd8af0ac1c7aab59904b69dd071526aff Mon Sep 17 00:00:00 2001
From: inleft <inleft@qq.com>
Date: Fri, 12 Aug 2022 23:59:41 +0800
Subject: [PATCH] 视频模块添加播放历史

---
 src/components/group/MyVideo.vue |   49 ++++++++++++++++++++++++++++++++-----------------
 1 files changed, 32 insertions(+), 17 deletions(-)

diff --git a/src/components/group/MyVideo.vue b/src/components/group/MyVideo.vue
index 723d6a0..17fc80c 100644
--- a/src/components/group/MyVideo.vue
+++ b/src/components/group/MyVideo.vue
@@ -1,44 +1,59 @@
 <template>
 	<div class="myModal">
-		<a-modal v-model="visible" title="" :footer="null" :mask="false" :maskClosable="true"
-			:bodyStyle="{'overflow':'overlay','maxHeight': '550px'}">
-			<div>{{this.placement}}</div>
-			<videoPlayBox></videoPlayBox>
+		<a-modal v-model="visible" title="视频盒子" :footer="null" :mask="false" :maskClosable="true"
+			:bodyStyle="{'overflow':'overlay','maxHeight': '750px'}" :afterClose="afterClose">
+			<videoDetail ref="videoDetail"></videoDetail>
 		</a-modal>
 	</div>
-
 </template>
 
 <script>
-	import {
-		history
-	} from '../../api/blogArticleComment.js'
-	import videoPlayBox from "../mini/box15-videoPlayBox.vue"
+	import videoDetail from "../mini/box16-videoDetail.vue"
+
 	export default {
 		components: {
-			videoPlayBox
+			videoDetail,
+		},
+		watch: {
+			// '$route'(to, from) {
+			// 	if ("mdDetail" === to.name) {
+			// 		this.articleId = this.$route.query.id;
+			// 		this.articleFileType = this.$route.query.articleFileType;
+			// 	}
+			// },
+			articleId: function(newValue, oldValue) {
+				if (newValue == undefined || newValue == null || newValue == "") {
+					this.showMsg = true;
+					this.errorMsg = "日志id参数缺失";
+				} else {
+					this.$nextTick(function() {
+						this.$refs.myComment.updateCommentList(this.articleId);
+					})
+				}
+			},
 		},
 		data() {
 			return {
 				visible: false,
-				placement: "fbottom"
+				articleId: "",
 			}
 		},
-		beforeMount() {},
 		methods: {
 			showModal(param) {
-				this.placement = param.id
 				this.visible = true;
+				this.$nextTick(function() {
+					this.$refs.videoDetail.showVideo(param)
+				})
 			},
 			handleCancel(e) {
 				this.visible = false;
 			},
-
+			afterClose() {
+				this.$emit("closeMyVideo")
+			}
 		},
 	}
 </script>
 <style scoped>
-	a {
-		color: black;
-	}
+
 </style>

--
Gitblit v1.9.1