mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 21:28:06 +00:00
fix: bugs
This commit is contained in:
parent
15ac2b5815
commit
db14c9283f
11 changed files with 64 additions and 25 deletions
|
|
@ -287,6 +287,7 @@ h1 {
|
|||
.load-more {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-top: 32px;
|
||||
}
|
||||
|
||||
.button.more {
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@
|
|||
}}</router-link>
|
||||
</div>
|
||||
<CoverRow
|
||||
:type="'chart'"
|
||||
type="playlist"
|
||||
:items="topList.items"
|
||||
:subText="'updateFrequency'"
|
||||
:imageSize="1024"
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue