feat: 添加每日推荐 样式, 请求等大量优化

This commit is contained in:
alger
2024-05-22 12:07:48 +08:00
parent c6f1e0b233
commit 32b39c7927
23 changed files with 409 additions and 103 deletions
+4 -2
View File
@@ -2,12 +2,15 @@
import { useRoute } from 'vue-router';
import { getListByCat, getListDetail, getRecommendList } from '@/api/list';
import PlayBottom from '@/components/common/PlayBottom.vue';
import MusicList from '@/components/MusicList.vue';
import type { IRecommendItem } from '@/type/list';
import type { IListDetail } from '@/type/listDetail';
import { formatNumber, getImgUrl, setAnimationClass, setAnimationDelay } from '@/utils';
defineOptions({
name: 'List',
});
const recommendList = ref();
const showMusic = ref(false);
@@ -82,7 +85,6 @@ watch(
<div class="recommend-item-title">{{ item.name }}</div>
</div>
</div>
<play-bottom />
</n-scrollbar>
<music-list
v-if="listDetail?.playlist"