diff --git a/src/assets/css/base.css b/src/assets/css/base.css index ce17d701f3f0686192527bcff9ff1ef1d20dc162..a412ab512038de5ee378f0f20b49121886d4e062 100644 --- a/src/assets/css/base.css +++ b/src/assets/css/base.css @@ -14,9 +14,6 @@ a { color: #000; text-decoration: none; } -a:hover { - color: #31c27c; -} li { list-style: none; diff --git a/src/assets/css/fakeqqmusic.css b/src/assets/css/fakeqqmusic.css index ed49f38bfecbe9a316c5212151c0a404bf8c735b..81a0b31894d5009b41b9c89ec8b3d708a73a74e4 100644 --- a/src/assets/css/fakeqqmusic.css +++ b/src/assets/css/fakeqqmusic.css @@ -852,7 +852,7 @@ img .playlist__pic { .data_info__item { float: left; line-height: 27px; - width: 166px; + width: 200px; margin-right: 10px; white-space: nowrap; overflow: hidden; diff --git a/src/components/common/DetailInfoCard.vue b/src/components/common/DetailInfoCard.vue new file mode 100644 index 0000000000000000000000000000000000000000..47538cb06ad78b89721dc3af6058bc67ce7e1711 --- /dev/null +++ b/src/components/common/DetailInfoCard.vue @@ -0,0 +1,191 @@ + + + + + diff --git a/src/components/common/Player.vue b/src/components/common/Player.vue index c9f136030482e7286037a7daaa2b4ebaf9e1c379..4c41127e4240f0e1066c9f098cad072d7ede6a61 100644 --- a/src/components/common/Player.vue +++ b/src/components/common/Player.vue @@ -51,10 +51,11 @@ hidefocus="true" class="f-thide name fc1 f-fl" :title="currentSong.name" + @click="gotoSongDetail(currentSong.id)" >{{ currentSong.name }} - + {{ currentSong.artistsText }} @@ -110,17 +111,9 @@ > + - - {{ playlist.length }} @@ -294,6 +282,14 @@ export default { this.$store.commit("music/setPlayingState", true); } }, + gotoSongDetail(id) { + console.log(id); + this.$router.push({ + path: "/musicLibrary/songDetail", + query: { id: id }, + }); + }, + gotoSongerDetail(id) {}, }, computed: { audio() { diff --git a/src/components/content/RecommendedBar.vue b/src/components/content/RecommendedBar.vue index db49c9f8c6ea4726b0394507f387b46226af6aab..dfb51f758bc98777e9f84952831a5d8e2661748d 100644 --- a/src/components/content/RecommendedBar.vue +++ b/src/components/content/RecommendedBar.vue @@ -25,9 +25,9 @@ />

- {{ item.name }} + + {{ item.name }} +

播放量:{{ processCount(item.playCount) }}
@@ -126,6 +126,12 @@ export default { }); }); }, + gotoPlaylistDetail(id) { + this.$router.push({ + path: "/musicLibrary/playlistDetail", + query: { id: id }, + }); + }, }, }; @@ -201,4 +207,7 @@ export default { filter: progid:DXImageTransform.Microsoft.gradient(enabled='true', startColorstr='#4C000000', endColorstr='#4C000000'); background-color: rgba(0, 0, 0, 0.3); } +a:hover { + color: #31c27c; +} diff --git a/src/router/index.js b/src/router/index.js index 0a24f265d0887c0e885c8a2d2d563b23404db163..e535dd107f07cd72d0dd56c8278f8e8a5d7b8307 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -11,6 +11,7 @@ const MV = () => import("views/musicLibrary/MV"); const SongerDetail = () => import("views/musicLibrary/SongerDetail"); const SongDetail = () => import("views/musicLibrary/SongDetail"); const AlbumDetail = () => import("views/musicLibrary/AlbumDetail"); +const PlaylistDetail = () => import("views/musicLibrary/PlaylistDetail"); const My = () => import("views/My"); @@ -33,7 +34,8 @@ const routes = [ { path: "mv", component: MV }, { path: "songerDetail", name: "songerDetail", component: SongerDetail }, { path: "songDetail", component: SongDetail }, - { path: "albumDetail", component: AlbumDetail } + { path: "albumDetail", component: AlbumDetail }, + { path: "playlistDetail", component: PlaylistDetail } ] }, { diff --git a/src/views/musicLibrary/AlbumDetail.vue b/src/views/musicLibrary/AlbumDetail.vue index 1e05d56e39ceeeee5ce7ee908edc10abbada49fc..8c527562e90e8b585775ffb670c6313afe53b5fe 100644 --- a/src/views/musicLibrary/AlbumDetail.vue +++ b/src/views/musicLibrary/AlbumDetail.vue @@ -1,76 +1,7 @@ + + diff --git a/src/views/musicLibrary/SongDetail.vue b/src/views/musicLibrary/SongDetail.vue index 0352fad6405dfec4b7b4776af226d5fd34d991c9..2e0342c3df4bea3057f9f1cea09979dc9ecc883e 100644 --- a/src/views/musicLibrary/SongDetail.vue +++ b/src/views/musicLibrary/SongDetail.vue @@ -1,84 +1,6 @@ diff --git a/src/views/musicLibrary/SongerDetail.vue b/src/views/musicLibrary/SongerDetail.vue index bd52d86e34c4bbed95b220e77768f84f9de79a0e..66c57e1179239cdb277c06e009b3505a6982f4e9 100644 --- a/src/views/musicLibrary/SongerDetail.vue +++ b/src/views/musicLibrary/SongerDetail.vue @@ -1,79 +1,11 @@