diff --git a/src/api/artist.js b/src/api/artist.js index 023f35d..08428b1 100644 --- a/src/api/artist.js +++ b/src/api/artist.js @@ -61,15 +61,15 @@ export function toplistOfArtists(type = null) { /** * 获取歌手 mv * 说明 : 调用此接口 , 传入歌手 id, 可获得歌手 mv 信息 , 具体 mv 播放地址可调 用/mv传入此接口获得的 mvid 来拿到 , 如 : /artist/mv?id=6452,/mv?mvid=5461064 - * @param {number} id 歌手 id, 可由搜索接口获得 + * @param {number} params.id 歌手 id, 可由搜索接口获得 + * @param {number} params.offset + * @param {number} params.limit */ -export function artistMv(id) { +export function artistMv(params) { return request({ url: "/artist/mv", method: "get", - params: { - id, - }, + params, }); } diff --git a/src/components/MvRow.vue b/src/components/MvRow.vue index 477ca9c..80b6001 100644 --- a/src/components/MvRow.vue +++ b/src/components/MvRow.vue @@ -51,9 +51,11 @@ export default { this.$router.push({ path: "/mv/" + id, query }); }, getUrl(mv) { - if (mv.cover !== undefined) return mv.cover; - if (mv.imgurl16v9 !== undefined) return mv.imgurl16v9; - if (mv.coverUrl !== undefined) return mv.coverUrl; + if (mv.cover !== undefined) return mv.cover.replace(/^http:/, "https:"); + if (mv.imgurl16v9 !== undefined) + return mv.imgurl16v9.replace(/^http:/, "https:"); + if (mv.coverUrl !== undefined) + return mv.coverUrl.replace(/^http:/, "https:"); }, getID(mv) { if (mv.id !== undefined) return mv.id; diff --git a/src/router/index.js b/src/router/index.js index 6355f3e..3825258 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -49,6 +49,14 @@ const routes = [ keepAlive: true, }, }, + { + path: "/artist/:id/mv", + name: "artistMV", + component: () => import("@/views/artistMV.vue"), + meta: { + keepAlive: true, + }, + }, { path: "/mv/:id", name: "mv", diff --git a/src/views/artist.vue b/src/views/artist.vue index f32f03e..3bcb39f 100644 --- a/src/views/artist.vue +++ b/src/views/artist.vue @@ -81,7 +81,12 @@ />