diff --git a/Plan.md b/Plan.md index 05f5c6af9b788ac5f0196de41484a9e9db1ff9d4..f541b96c0b881c39838a1564502a15b70d67414d 100644 --- a/Plan.md +++ b/Plan.md @@ -27,11 +27,17 @@ 7. mv 列表页 - [x] 无限滚动 - [x] mv 详情播放页 -8. 功能条 +8. 大功能条 + - [x] 播放 - 收藏 - 分享 - 添加 -9. [x] 懒加载 +9. 小功能条 + - [x] 播放 + - [x] 下载 + - [x] 分享 + - 添加 +10. [x] 懒加载 - [ ] 样式调整 - [ ] 组件抽离 diff --git a/demo/demo.gif b/demo/demo.gif index e122d5f05ed63c168419bae00a0220c58660b38f..4f6668f161b2d78c38363e92acb9368b71e4e114 100644 Binary files a/demo/demo.gif and b/demo/demo.gif differ diff --git a/src/api/song.js b/src/api/song.js index 617cad5f75cf3b72a5661e9ed0156cf94ea34c39..906151ee9dd7a15a1b373dda1f119b569e94e8fe 100644 --- a/src/api/song.js +++ b/src/api/song.js @@ -1,6 +1,6 @@ import { requset } from "./base"; -export const getSong = id => requset.get(`/song/url?id=${id}`); +export const getSongUrl = id => requset.get(`/song/url?id=${id}`); export const getSongDetail = ids => requset.get(`/song/detail?ids=${ids}`); diff --git a/src/components/common/ModListMenu.vue b/src/components/common/ModListMenu.vue index ada8bb9f2d468bf39e012ad1097b8a10b66198b7..cde287bf1269d8b431ea86eaa746231474c3b014 100644 --- a/src/components/common/ModListMenu.vue +++ b/src/components/common/ModListMenu.vue @@ -21,6 +21,7 @@ title="下载" aria-haspopup="true" v-if="kind == 0" + @click="download(song.id)" > 下载 @@ -29,18 +30,27 @@ class="list_menu__item list_menu__share js_share" title="分享" aria-haspopup="true" + @click="share" > 分享 + diff --git a/src/views/musicLibrary/Ranking.vue b/src/views/musicLibrary/Ranking.vue index f3524b64b46f86900a74ea7fa819aedccf5f1a6f..ac8e4630e2332bc153db484fde0f38051629e576 100644 --- a/src/views/musicLibrary/Ranking.vue +++ b/src/views/musicLibrary/Ranking.vue @@ -315,12 +315,9 @@ export default { sortType: 2, }; getCommentsNew(params).then((res) => { - console.log(res.data); this.commentCount = res.data.data.totalCount > 5000 ? 5000 : res.data.data.totalCount; this.comments = res.data.data.comments; - console.log(this.commentCount); - console.log(this.comments); }); }, currentChange(v) {