mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 05:08:04 +00:00
parent
64c56e33f0
commit
cf7dd55bf4
1 changed files with 10 additions and 67 deletions
|
|
@ -1,23 +1,14 @@
|
|||
<template>
|
||||
<div class="newAlbum">
|
||||
<h1>{{ $t("home.newAlbum") }}</h1>
|
||||
|
||||
<div class="playlist-row">
|
||||
<div class="playlists">
|
||||
<div class="item" v-for="album in albums" :key="album.id">
|
||||
<Cover
|
||||
:id="album.id"
|
||||
:type="'album'"
|
||||
:url="album.picUrl | resizeImage"
|
||||
:hoverEffect="true"
|
||||
:showBlackShadow="true"
|
||||
/>
|
||||
|
||||
<div class="text">
|
||||
<div class="name">{{ album.name }}</div>
|
||||
<div class="info">{{ album.artist.name }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<CoverRow
|
||||
type="album"
|
||||
:items="albums"
|
||||
subText="artist"
|
||||
:show-play-button="true"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -27,7 +18,7 @@
|
|||
import { newAlbums } from "@/api/album";
|
||||
import NProgress from "nprogress";
|
||||
|
||||
import Cover from "@/components/Cover.vue";
|
||||
import CoverRow from "@/components/CoverRow.vue";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
|
|
@ -36,7 +27,7 @@ export default {
|
|||
};
|
||||
},
|
||||
components: {
|
||||
Cover,
|
||||
CoverRow,
|
||||
},
|
||||
created() {
|
||||
newAlbums({
|
||||
|
|
@ -52,55 +43,7 @@ export default {
|
|||
|
||||
<style lang="scss" scoped>
|
||||
h1 {
|
||||
span {
|
||||
color: rgba(0, 0, 0, 0.58);
|
||||
}
|
||||
}
|
||||
|
||||
.playlist-row {
|
||||
margin-top: 36px;
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
.playlists {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin: {
|
||||
right: -12px;
|
||||
left: -12px;
|
||||
}
|
||||
.index-playlist {
|
||||
margin: 12px 12px 24px 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.item {
|
||||
margin: 12px 12px 24px 12px;
|
||||
.text {
|
||||
width: 208px;
|
||||
margin-top: 8px;
|
||||
.name {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: rgba(0, 0, 0, 0.88);
|
||||
line-height: 20px;
|
||||
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
overflow: hidden;
|
||||
}
|
||||
.info {
|
||||
font-size: 12px;
|
||||
color: rgba(0, 0, 0, 0.68);
|
||||
line-height: 18px;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
overflow: hidden;
|
||||
// margin-top: 4px;
|
||||
}
|
||||
}
|
||||
color: var(--color-text);
|
||||
font-size: 56px;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue