From 7b98c8999087b7551d2e2e32daf12dd10a0d9713 Mon Sep 17 00:00:00 2001
From: inleft <inleft@qq.com>
Date: Fri, 18 Feb 2022 18:55:42 +0800
Subject: [PATCH] 日志详情加锁页

---
 src/components/mini/Aplayer.vue |   35 ++++++++++++++++++++++++++++++-----
 1 files changed, 30 insertions(+), 5 deletions(-)

diff --git a/src/components/mini/Aplayer.vue b/src/components/mini/Aplayer.vue
index 9612478..bc5933d 100644
--- a/src/components/mini/Aplayer.vue
+++ b/src/components/mini/Aplayer.vue
@@ -1,24 +1,49 @@
 <template>
 	<div class="fade">
-		<aplayer :audio="audio"  fixed  style="z-index: 10;" :preload="preload"/>
+		<aplayer :audio="audio" fixed style="z-index: 10;" :preload="preload" />
+
+		<!-- <a-modal ref="musicModal" title="" :dialog-style="{ top: '10px' }" :mask="false"
+		:maskClosable="false"	:visible="modal1Visible" @ok="() => setModal1Visible(false)" @cancel="() => setModal1Visible(false)">
+			<p>{{secondsToGo}}秒后关闭</p>
+		</a-modal> -->
 	</div>
 </template>
 
 <script>
 	import APlayer from '@moefe/vue-aplayer';
-	
+
 	export default {
+
 		data() {
 			return {
-				preload:"none",
+				modal1Visible: true,
+				secondsToGo: 5,
+				preload: "none",
 				audio: {
 					name: 'Moonwisher',
 					artist: 'Kan R. Gao',
-					// url: 'http://music.163.com/song/media/outer/url?id=1645104.mp3',
-					url: '/moon.mp3',
+					url: 'http://music.163.com/song/media/outer/url?id=1645104.mp3',
+					// url: '/moon.mp3',
 					cover: 'http://p2.music.126.net/0AYWra9rCzgeprGp6OUyUw==/868614185993997.jpg?param=130y130',
 				},
 			};
+
+		},
+		created() {
+			// const interval = setInterval(() => {
+			// 	this.secondsToGo -= 1;
+			// }, 1000);
+
+			// setTimeout(() => {
+			// 	clearInterval(interval);
+			// 	this.modal1Visible = false
+			// }, 5000);
+		},
+		methods: {
+			setModal1Visible(modal1Visible) {
+
+				this.modal1Visible = modal1Visible;
+			},
 		},
 	};
 	// var ap = new APlayer({

--
Gitblit v1.9.1