🦄 refactor: 适配 web移动端 改造

This commit is contained in:
alger
2024-05-23 17:12:35 +08:00
parent a2af0f3904
commit c09707867b
19 changed files with 265 additions and 79 deletions
+11 -3
View File
@@ -14,9 +14,11 @@ defineOptions({
const recommendList = ref();
const showMusic = ref(false);
const recommendItem = ref<IRecommendItem>();
const listDetail = ref<IListDetail>();
const recommendItem = ref<IRecommendItem | null>();
const listDetail = ref<IListDetail | null>();
const selectRecommendItem = async (item: IRecommendItem) => {
recommendItem.value = null;
listDetail.value = null;
showMusic.value = true;
const { data } = await getListDetail(item.id);
recommendItem.value = item;
@@ -98,7 +100,7 @@ watch(
<style lang="scss" scoped>
.list-page {
@apply relative h-full w-full;
@apply relative h-full w-full px-4;
}
.recommend {
@@ -149,4 +151,10 @@ watch(
}
}
}
.mobile {
.recommend-list {
grid-template-columns: repeat(auto-fill, minmax(25%, 1fr));
}
}
</style>