diff --git a/README.md b/README.md index 812edb5..878d4a2 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ > 一个简约的在线音乐播放器,**项目尚未完成**,不保证可用性 +![播放页面](/screenshots/SPlayer%20-%20%E6%92%AD%E6%94%BE%E9%A1%B5%E9%9D%A2.png) + ## 🎉 功能 - 账号登录( 目前仅支持扫码,更多登录方式待添加 ) diff --git a/screenshots/SPlayer - 播放页面.png b/screenshots/SPlayer - 播放页面.png new file mode 100644 index 0000000..580d3ad Binary files /dev/null and b/screenshots/SPlayer - 播放页面.png differ diff --git a/src/api/index.js b/src/api/index.js index db1e9c4..4690467 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -363,6 +363,28 @@ export const getArtistVideos = (id, limit = 30, offset = 0) => { * 歌单与专辑部分 */ +// 歌单分类 +export const getPlayListCatlist = (hot = false) => { + return axios({ + method: "GET", + url: `/playlist/${hot?'hot':'catlist'}` + }) +} + +// 歌单 ( 网友精选碟 ) +export const getTopPlaylist = (cat = "全部", limit = 30, offset = 0, order = "hot") => { + return axios({ + method: "GET", + url: "/top/playlist", + params: { + cat, + limit, + offset, + order, + } + }) +} + // 获取歌单详情 export const getPlayListDetail = (id) => { return axios({ diff --git a/src/components/DataList/CoverLists.vue b/src/components/DataList/CoverLists.vue index 77e3fba..732b970 100644 --- a/src/components/DataList/CoverLists.vue +++ b/src/components/DataList/CoverLists.vue @@ -179,6 +179,7 @@ const toLink = (id) => { align-items: center; .n-icon { margin-right: 2px; + transform: translateY(-1px); } } } diff --git a/src/components/DataList/DataLists.vue b/src/components/DataList/DataLists.vue index 2422dd2..908e121 100644 --- a/src/components/DataList/DataLists.vue +++ b/src/components/DataList/DataLists.vue @@ -437,7 +437,7 @@ const jumpLink = (id, type) => { // transform: scale(0.99); // } &.play { - background-color: #f55e5520; + background-color: $mainSecondaryColor; border-color: $mainColor; a, span, diff --git a/src/components/DataList/DataTable.vue b/src/components/DataList/DataTable.vue index 1dd6740..626dd04 100644 --- a/src/components/DataList/DataTable.vue +++ b/src/components/DataList/DataTable.vue @@ -240,7 +240,7 @@ const addPlaylists = (data, row) => { &.play { td { color: $mainColor; - background-color: #f55e5520; + background-color: $mainSecondaryColor; .n-text { color: $mainColor; } diff --git a/src/components/DataList/PlayList.vue b/src/components/DataList/PlayList.vue index e843656..ce66f37 100644 --- a/src/components/DataList/PlayList.vue +++ b/src/components/DataList/PlayList.vue @@ -131,7 +131,7 @@ watch( } &.play { color: $mainColor; - background-color: #f55e5520; + background-color: $mainSecondaryColor; border-color: $mainColor; } diff --git a/src/components/Nav/index.vue b/src/components/Nav/index.vue index 298ab92..2e231b3 100644 --- a/src/components/Nav/index.vue +++ b/src/components/Nav/index.vue @@ -73,6 +73,7 @@ v-html="packageJson.author" /> + 日本 韩国 - 更多 + 更多 @@ -22,8 +22,11 @@ + + \ No newline at end of file diff --git a/src/views/Discover/playlists.vue b/src/views/Discover/playlists.vue new file mode 100644 index 0000000..2d4f702 --- /dev/null +++ b/src/views/Discover/playlists.vue @@ -0,0 +1,245 @@ + + + + + \ No newline at end of file diff --git a/src/views/Discover/toplists.vue b/src/views/Discover/toplists.vue new file mode 100644 index 0000000..b7011cb --- /dev/null +++ b/src/views/Discover/toplists.vue @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/src/views/Login/LoginView.vue b/src/views/Login/LoginView.vue index c5cc838..0cb020f 100644 --- a/src/views/Login/LoginView.vue +++ b/src/views/Login/LoginView.vue @@ -21,7 +21,7 @@