mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-18 14:18:03 +00:00
parent
1496a8a0d0
commit
2a2ac5a37d
5 changed files with 56 additions and 15 deletions
|
|
@ -66,13 +66,9 @@
|
|||
<script>
|
||||
import { mapState, mapMutations } from 'vuex';
|
||||
import NProgress from 'nprogress';
|
||||
import {
|
||||
topPlaylist,
|
||||
highQualityPlaylist,
|
||||
recommendPlaylist,
|
||||
toplists,
|
||||
} from '@/api/playlist';
|
||||
import { topPlaylist, highQualityPlaylist, toplists } from '@/api/playlist';
|
||||
import { playlistCategories } from '@/utils/staticData';
|
||||
import { getRecommendPlayList } from '@/utils/playList';
|
||||
|
||||
import ButtonTwoTone from '@/components/ButtonTwoTone.vue';
|
||||
import CoverRow from '@/components/CoverRow.vue';
|
||||
|
|
@ -155,9 +151,9 @@ export default {
|
|||
return this.getTopPlayList();
|
||||
},
|
||||
getRecommendPlayList() {
|
||||
recommendPlaylist({ limit: 100 }).then(data => {
|
||||
getRecommendPlayList(100, true).then(list => {
|
||||
this.playlists = [];
|
||||
this.updatePlaylist(data.result);
|
||||
this.updatePlaylist(list);
|
||||
});
|
||||
},
|
||||
getHighQualityPlaylist() {
|
||||
|
|
|
|||
|
|
@ -69,10 +69,11 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { toplists, recommendPlaylist } from '@/api/playlist';
|
||||
import { toplists } from '@/api/playlist';
|
||||
import { toplistOfArtists } from '@/api/artist';
|
||||
import { byAppleMusic } from '@/utils/staticData';
|
||||
import { newAlbums } from '@/api/album';
|
||||
import { byAppleMusic } from '@/utils/staticData';
|
||||
import { getRecommendPlayList } from '@/utils/playList';
|
||||
import NProgress from 'nprogress';
|
||||
import { mapState } from 'vuex';
|
||||
import CoverRow from '@/components/CoverRow.vue';
|
||||
|
|
@ -112,10 +113,8 @@ export default {
|
|||
setTimeout(() => {
|
||||
if (!this.show) NProgress.start();
|
||||
}, 1000);
|
||||
recommendPlaylist({
|
||||
limit: 10,
|
||||
}).then(data => {
|
||||
this.recommendPlaylist.items = data.result;
|
||||
getRecommendPlayList(10, false).then(items => {
|
||||
this.recommendPlaylist.items = items;
|
||||
NProgress.done();
|
||||
this.show = true;
|
||||
});
|
||||
|
|
|
|||
|
|
@ -318,6 +318,10 @@ const specialPlaylist = {
|
|||
name: '一周原创发现',
|
||||
gradient: 'gradient-blue-purple',
|
||||
},
|
||||
2829883282: {
|
||||
name: '华语私人雷达',
|
||||
gradient: 'gradient-yellow-red',
|
||||
},
|
||||
3136952023: {
|
||||
name: '私人雷达',
|
||||
gradient: 'gradient-radar',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue