🦄 refactor(style): 修改页面样式为全屏样式

This commit is contained in:
algerkc@qq.com
2023-12-14 17:56:55 +08:00
parent c6d72de681
commit 4f7d066376
3 changed files with 16 additions and 21 deletions
+7 -6
View File
@@ -8,7 +8,7 @@
<!-- 搜索栏 --> <!-- 搜索栏 -->
<search-bar /> <search-bar />
<!-- 主页面路由 --> <!-- 主页面路由 -->
<n-layout class="main-content bg-black" :native-scrollbar="false"> <div class="main-content bg-black" :native-scrollbar="false">
<n-message-provider> <n-message-provider>
<router-view class="main-page" v-slot="{ Component }"> <router-view class="main-page" v-slot="{ Component }">
<!-- <keep-alive> <!-- <keep-alive>
@@ -19,7 +19,7 @@
<component :is="Component" /> <component :is="Component" />
</router-view> </router-view>
</n-message-provider> </n-message-provider>
</n-layout> </div>
</div> </div>
</div> </div>
<!-- 底部音乐播放 --> <!-- 底部音乐播放 -->
@@ -56,18 +56,19 @@ const menus = store.state.menus;
.layout-main { .layout-main {
@apply bg-black rounded-lg text-white shadow-xl flex-col relative; @apply bg-black rounded-lg text-white shadow-xl flex-col relative;
height: 900px; height: 100%;
width: 1500px; width: 100%;
overflow: hidden; overflow: hidden;
min-width: 1500px;
.menu { .menu {
width: 90px; width: 90px;
} }
.main { .main {
@apply pt-6 pr-6 flex-1 box-border; @apply pt-6 pr-6 flex-1 box-border;
height: 100vh;
&-content { &-content {
@apply rounded-2xl; @apply rounded-2xl;
height: 834px; height: calc(100vh - 60px);
margin-bottom: 90px;
} }
&-page { &-page {
margin: 20px 0; margin: 20px 0;
+5 -7
View File
@@ -152,7 +152,7 @@ const handlePlay = (item: any) => {
<style lang="scss" scoped> <style lang="scss" scoped>
.list-page { .list-page {
position: relative; @apply relative h-full;
} }
.musicPage-enter-active { .musicPage-enter-active {
@@ -164,15 +164,13 @@ const handlePlay = (item: any) => {
} }
.recommend { .recommend {
width: 100%; @apply w-full h-full;
height: 800px;
background-color: #000000;
&-title { &-title {
@apply text-lg font-bold text-white py-4; @apply text-lg font-bold text-white py-4;
} }
&-list { &-list {
@apply flex flex-wrap; @apply flex flex-wrap justify-between;
padding-bottom: 100px; padding-bottom: 100px;
} }
&-item { &-item {
@@ -220,10 +218,10 @@ const handlePlay = (item: any) => {
.music { .music {
&-page { &-page {
width: 100%; width: 100%;
height: 734px; height: 70%;
position: absolute; position: absolute;
background-color: #000000f0; background-color: #000000f0;
top: 100px; bottom: 0;
left: 0; left: 0;
border-radius: 30px 30px 0 0; border-radius: 30px 30px 0 0;
animation-duration: 300ms; animation-duration: 300ms;
+4 -8
View File
@@ -34,7 +34,7 @@
v-for="(item, index) in searchDetail?.result.songs" v-for="(item, index) in searchDetail?.result.songs"
:key="item.id" :key="item.id"
:class="setAnimationClass('animate__bounceInRight')" :class="setAnimationClass('animate__bounceInRight')"
:style="setAnimationDelay(index, 100)" :style="setAnimationDelay(index, 50)"
> >
<SongItem :item="item" /> <SongItem :item="item" />
</div> </div>
@@ -116,19 +116,15 @@ watch(
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.search {
height: 750px;
background-color: #333;
}
.search-page { .search-page {
@apply flex; @apply flex h-full;
} }
.hot-search { .hot-search {
@apply mt-3 mr-4 rounded-xl flex-1 overflow-hidden; @apply mt-3 mr-4 rounded-xl flex-1 overflow-hidden;
height: 740px;
background-color: #0d0d0d; background-color: #0d0d0d;
animation-duration: 0.2s; animation-duration: 0.2s;
min-width: 400px; min-width: 400px;
height: 100%;
&-item { &-item {
@apply px-4 py-3 text-lg hover:bg-gray-700 rounded-xl cursor-pointer; @apply px-4 py-3 text-lg hover:bg-gray-700 rounded-xl cursor-pointer;
&-count { &-count {
@@ -142,8 +138,8 @@ watch(
.search-list { .search-list {
@apply mt-3 flex-1 rounded-xl; @apply mt-3 flex-1 rounded-xl;
height: 740px;
background-color: #0d0d0d; background-color: #0d0d0d;
height: 100%;
} }
.title { .title {