fix: bugs

This commit is contained in:
qier222 2021-01-05 22:21:01 +08:00
parent 15ac2b5815
commit db14c9283f
11 changed files with 64 additions and 25 deletions

View file

@ -287,6 +287,7 @@ h1 {
.load-more {
display: flex;
justify-content: center;
margin-top: 32px;
}
.button.more {

View file

@ -41,7 +41,7 @@
}}</router-link>
</div>
<CoverRow
:type="'chart'"
type="playlist"
:items="topList.items"
:subText="'updateFrequency'"
:imageSize="1024"

View file

@ -401,9 +401,6 @@ h1 {
}
.section-two {
// margin-top: 42px;
// padding-top: 14px;
// border-top: 1px solid rgba(128, 128, 128, 0.18);
margin-top: 54px;
min-height: calc(100vh - 182px);
}
@ -411,7 +408,7 @@ h1 {
.tabs-row {
display: flex;
justify-content: space-between;
margin-bottom: 12px;
margin-bottom: 24px;
}
.tabs {

View file

@ -14,7 +14,7 @@
:key="artist.id"
>
<Cover
:imageUrl="artist.img1v1Url | resizeImage"
:imageUrl="getArtistImageUrl(artist)"
type="artist"
:id="artist.id"
:fixedSize="128"
@ -159,6 +159,17 @@ export default {
this.mvs = data.result.mvs;
});
},
getArtistImageUrl(artist) {
if (artist.img1v1Url) {
let img1v1ID = artist.img1v1Url.split("/");
img1v1ID = img1v1ID[img1v1ID.length - 1];
if (img1v1ID === "5639395138885805.jpg") {
// img1v1Url 😅😅😅
return "https://p2.music.126.net/VnZiScyynLG7atLIZ2YPkw==/18686200114669622.jpg?param=512x512";
}
}
return artist.img1v1Url + "?param=512x512";
},
},
created() {
this.getData(this.$route.query.keywords);