fix: bugs

This commit is contained in:
qier222 2021-01-31 00:52:02 +08:00
parent 6a64e73a2c
commit d6be72f5ce
9 changed files with 27 additions and 29 deletions

View file

@ -50,9 +50,7 @@ export default {
},
computed: {
imageStyles() {
let styles = {
objectFit: "cover",
};
let styles = {};
if (this.fixedSize !== 0) {
styles.width = this.fixedSize + "px";
styles.height = this.fixedSize + "px";

View file

@ -101,11 +101,11 @@ export default {
img1v1ID = img1v1ID[img1v1ID.length - 1];
if (img1v1ID === "5639395138885805.jpg") {
// img1v1Url 😅😅😅
return "https://p2.music.126.net/VnZiScyynLG7atLIZ2YPkw==/18686200114669622.jpg?param=512x512";
return "https://p2.music.126.net/VnZiScyynLG7atLIZ2YPkw==/18686200114669622.jpg?param=512y512";
}
}
let img = item.img1v1Url || item.picUrl || item.coverImgUrl;
return `${img}?param=512x512`;
return `${img}?param=512y512`;
},
},
};
@ -128,6 +128,7 @@ export default {
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
word-break: break-all;
}
.info {
font-size: 12px;
@ -137,6 +138,7 @@ export default {
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
word-break: break-word;
}
}
}

View file

@ -51,7 +51,7 @@ export default {
},
getUrl(mv) {
let url = mv.imgurl16v9 ?? mv.cover ?? mv.coverUrl;
return url.replace(/^http:/, "https:") + "?param=464x260";
return url.replace(/^http:/, "https:") + "?param=464y260";
},
getID(mv) {
if (mv.id !== undefined) return mv.id;