From 25af6cfedbf97b3fed121eb766abbee0531f636d Mon Sep 17 00:00:00 2001 From: zilong Date: Thu, 28 Oct 2021 22:58:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E6=9C=AC=E5=AE=8C=E6=88=90=E6=AD=8C?= =?UTF-8?q?=E6=9B=B2=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/App.vue | 2 +- src/components/AlbumSpan.vue | 27 +++++ src/components/ArtistsSpan.vue | 17 +-- src/views/common/SongDetail.vue | 198 ++++++++++++++++++++++++++++---- src/views/common/SongInfo.vue | 9 +- 6 files changed, 219 insertions(+), 35 deletions(-) create mode 100644 src/components/AlbumSpan.vue diff --git a/package.json b/package.json index a4c5487..155cb15 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "core-js": "^3.6.5", "dayjs": "^1.10.7", "element-plus": "^1.1.0-beta.19", + "lodash": "^4.17.21", "pubsub-js": "^1.9.3", "unplugin-vue-components": "^0.15.6", "vue": "^3.2.16", diff --git a/src/App.vue b/src/App.vue index 7a5c065..ebdd05d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -228,7 +228,7 @@ body { } } #wpSongDetail { - + z-index: 100; } #wpPlayingList { // position: absolute; diff --git a/src/components/AlbumSpan.vue b/src/components/AlbumSpan.vue new file mode 100644 index 0000000..5408f84 --- /dev/null +++ b/src/components/AlbumSpan.vue @@ -0,0 +1,27 @@ + + + + + + diff --git a/src/components/ArtistsSpan.vue b/src/components/ArtistsSpan.vue index f7aec72..b970563 100644 --- a/src/components/ArtistsSpan.vue +++ b/src/components/ArtistsSpan.vue @@ -2,14 +2,17 @@ import { ref, defineProps, onUnmounted, onDeactivated } from "vue"; import { useRouter } from "vue-router"; -const props = defineProps({ artists: Array, onLeave: Function }); -const router = useRouter() +const props = defineProps({ + artists: Array, + onLeave: Function, +}); +const router = useRouter(); // console.log(props.artists); const click = (id) => { - props.onLeave?.() - router.push('/singer/' + id) -} + props.onLeave?.(); + router.push("/singer/" + id); +};