From 10572998aa54d61c45df3e334eb01e44a15df729 Mon Sep 17 00:00:00 2001
From: inleft <inleft@qq.com>
Date: Wed, 10 Aug 2022 18:35:59 +0800
Subject: [PATCH] 常量提取,优化视频模块布局

---
 src/components/layouts/baseLayout.vue |   34 ++++++++++++++++++++++++++++++----
 1 files changed, 30 insertions(+), 4 deletions(-)

diff --git a/src/components/layouts/baseLayout.vue b/src/components/layouts/baseLayout.vue
index 9d5a6ee..0d14dee 100644
--- a/src/components/layouts/baseLayout.vue
+++ b/src/components/layouts/baseLayout.vue
@@ -1,24 +1,38 @@
 <template>
 	<a-layout>
-		<a-layout-header :style="{position:'fixed',height:'60px',marginBottom:'35px',zIndex: 999, width: '100%' }">
+		<a-layout-header class="scrolling-navbar"
+			:style="{position:'fixed',height:'60px',marginBottom:'35px',zIndex: 999, width: '100%' }">
 			<tag-Header />
 		</a-layout-header>
 
-		<router-view class="fade"></router-view>
+		<keep-alive>
+			<router-view @showMyVideo="showMyVideo"></router-view>
+		</keep-alive>
 
 		<a-layout-footer>
+			<AplayerBox />
 			<tagFooter />
+			<MyVideo ref="MyVideo" />
 		</a-layout-footer>
+
+		<a-back-top>
+			<a-icon type="up" />回到顶部
+		</a-back-top>
+
 	</a-layout>
 </template>
 
 <script>
 	import tagHeader from "../fixed/header.vue"
 	import tagFooter from "../fixed/footer.vue"
+	import AplayerBox from "../mini/Aplayer.vue"
+	import MyVideo from "../group/MyVideo.vue"
 	export default {
 		components: {
 			tagHeader,
 			tagFooter,
+			AplayerBox,
+			MyVideo,
 		},
 		data() {
 			return {
@@ -26,7 +40,9 @@
 			}
 		},
 		methods: {
-
+			showMyVideo(param) {
+				this.$refs.MyVideo.showModal(param);
+			},
 			// 下载文件
 			down: function() {
 				console.log(111);
@@ -60,8 +76,8 @@
 		.ant-layout {}
 
 		.ant-layout-header {
-			// background-color: #ffffff;
 			backdrop-filter: saturate(180%) blur(1em);
+			-webkit-backdrop-filter: blur(5px);
 			background: linear-gradient(90deg, rgba(247, 149, 51, 0.101961) 0, rgba(243, 112, 85, 0.101961) 15%, rgba(239, 78, 123, 0.101961) 30%, rgba(161, 102, 171, 0.101961) 44%, rgba(80, 115, 184, 0.101961) 58%, rgba(16, 152, 173, 0.101961) 72%, rgba(7, 179, 155, 0.101961) 86%, rgba(109, 186, 130, 0.101961) 100%);
 		}
 
@@ -81,6 +97,10 @@
 			}
 		}
 
+		.ant-timeline-item-head {
+			background-color: transparent !important;
+		}
+
 	}
 
 	span,
@@ -90,6 +110,12 @@
 		line-height: 22px;
 	}
 
+	.scrolling-navbar {
+		will-change: background, padding, height;
+		-webkit-transition: background 0.5s ease-in-out, padding 0.5s ease-in-out;
+		transition: background 0.5s ease-in-out, padding 0.5s ease-in-out;
+	}
+
 	.fade {
 		-webkit-animation-name: "fade";
 		-webkit-animation-duration: 2s;

--
Gitblit v1.9.1