From b6574d8093c87142c74e0378dda6d4803af4b521 Mon Sep 17 00:00:00 2001 From: Astrian Zheng Date: Mon, 26 May 2025 12:18:06 +1000 Subject: [PATCH] =?UTF-8?q?feat(=E6=92=AD=E6=94=BE=E7=95=8C=E9=9D=A2):=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=9F=B3=E9=87=8F=E5=9B=BE=E6=A0=87=E5=B9=B6?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=92=AD=E6=94=BE=E5=99=A8=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加新的音量图标组件 speaker.vue - 调整播放器界面布局,将歌曲信息与操作按钮重新排列 - 优化播放控制按钮的视觉效果,统一模糊效果实现方式 --- src/assets/icons/speaker.vue | 13 ++++ src/pages/Playroom.vue | 125 ++++++++++++++++++++++++----------- 2 files changed, 99 insertions(+), 39 deletions(-) create mode 100644 src/assets/icons/speaker.vue diff --git a/src/assets/icons/speaker.vue b/src/assets/icons/speaker.vue new file mode 100644 index 0000000..3167ab8 --- /dev/null +++ b/src/assets/icons/speaker.vue @@ -0,0 +1,13 @@ + + + \ No newline at end of file diff --git a/src/pages/Playroom.vue b/src/pages/Playroom.vue index e5741e3..59603b2 100644 --- a/src/pages/Playroom.vue +++ b/src/pages/Playroom.vue @@ -19,6 +19,7 @@ import EllipsisHorizontalIcon from '../assets/icons/ellipsishorizontal.vue' import XIcon from '../assets/icons/x.vue' import ShuffleIcon from '../assets/icons/shuffle.vue' import CycleTwoArrowsIcon from '../assets/icons/cycletwoarrows.vue' +import SpeakerIcon from '../assets/icons/speaker.vue' const playQueueStore = usePlayQueueStore() gsap.registerPlugin(Draggable) @@ -147,27 +148,35 @@ function makePlayQueueListDismiss() {
-
-
-
- {{ playQueueStore.list[playQueueStore.currentIndex].song.name }} +
+
+
+
+ {{ playQueueStore.list[playQueueStore.currentIndex].song.name }} +
+
+ {{ artistsOrganize(playQueueStore.list[playQueueStore.currentIndex].song.artists ?? []) }} — + {{ playQueueStore.list[playQueueStore.currentIndex].album?.name ?? '未知专辑' }} +
-
- {{ artistsOrganize(playQueueStore.list[playQueueStore.currentIndex].song.artists ?? []) }} — - {{ playQueueStore.list[playQueueStore.currentIndex].album?.name ?? '未知专辑' }} + +
+
+ {{ playQueueStore.list[playQueueStore.currentIndex].song.name }} +
+
+ {{ artistsOrganize(playQueueStore.list[playQueueStore.currentIndex].song.artists ?? []) }} — + {{ playQueueStore.list[playQueueStore.currentIndex].album?.name ?? '未知专辑' }} +
+
-
-
- {{ playQueueStore.list[playQueueStore.currentIndex].song.name }} -
-
- {{ artistsOrganize(playQueueStore.list[playQueueStore.currentIndex].song.artists ?? []) }} — - {{ playQueueStore.list[playQueueStore.currentIndex].album?.name ?? '未知专辑' }} -
+
+
-
@@ -179,7 +188,8 @@ function makePlayQueueListDismiss() {
- {{ timeFormatter(Math.floor(playQueueStore.currentTime)) }} + {{ timeFormatter(Math.floor(playQueueStore.currentTime)) }} {{ timeFormatter(Math.floor(playQueueStore.currentTime)) }}
@@ -188,9 +198,9 @@ function makePlayQueueListDismiss() {
-
@@ -203,15 +213,23 @@ function makePlayQueueListDismiss() {
@@ -221,8 +239,12 @@ function makePlayQueueListDismiss() { @@ -230,18 +252,30 @@ function makePlayQueueListDismiss() { @click="playQueueStore.isPlaying = !playQueueStore.isPlaying">
- - + + + + + +
- - + + + + + +
- - + + + + + +
@@ -249,8 +283,12 @@ function makePlayQueueListDismiss() {
@@ -259,14 +297,22 @@ function makePlayQueueListDismiss() {
@@ -327,7 +373,8 @@ function makePlayQueueListDismiss() {
{{ track.song.name }}
{{ artistsOrganize(track.song.artists ?? []) }} — - {{ track.album?.name ?? '未知专辑' }}
+ {{ track.album?.name ?? '未知专辑' }} +