|
|
@ -43,8 +43,8 @@
|
|
|
|
<span v-if="isAlbum && track.mark === 1318912" class="explicit-symbol"
|
|
|
|
<span v-if="isAlbum && track.mark === 1318912" class="explicit-symbol"
|
|
|
|
><ExplicitSymbol
|
|
|
|
><ExplicitSymbol
|
|
|
|
/></span>
|
|
|
|
/></span>
|
|
|
|
<span v-if="isTranslate" :title="translate" class="translate">
|
|
|
|
<span v-if="isSubTitle" :title="subTitle" class="subTitle">
|
|
|
|
({{ translate }})
|
|
|
|
({{ subTitle }})
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div v-if="!isAlbum" class="artist">
|
|
|
|
<div v-if="!isAlbum" class="artist">
|
|
|
@ -124,11 +124,21 @@ export default {
|
|
|
|
album() {
|
|
|
|
album() {
|
|
|
|
return this.track.album || this.track.al || this.track?.simpleSong?.al;
|
|
|
|
return this.track.album || this.track.al || this.track?.simpleSong?.al;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
translate() {
|
|
|
|
subTitle() {
|
|
|
|
let t;
|
|
|
|
let tn = undefined;
|
|
|
|
if (this.track?.tns?.length > 0) t = this.track.tns[0];
|
|
|
|
if (
|
|
|
|
else t = this.track.alia[0];
|
|
|
|
this.track?.tns?.length > 0 &&
|
|
|
|
return t;
|
|
|
|
this.track.name !== this.track.tns[0]
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
tn = this.track.tns[0];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//优先显示alia
|
|
|
|
|
|
|
|
if (this.$store.state.settings.subTitleDefault) {
|
|
|
|
|
|
|
|
return this.track?.alia?.length > 0 ? this.track.alia[0] : tn;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return tn === undefined ? this.track.alia[0] : tn;
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
type() {
|
|
|
|
type() {
|
|
|
|
return this.$parent.type;
|
|
|
|
return this.$parent.type;
|
|
|
@ -136,8 +146,12 @@ export default {
|
|
|
|
isAlbum() {
|
|
|
|
isAlbum() {
|
|
|
|
return this.type === 'album';
|
|
|
|
return this.type === 'album';
|
|
|
|
},
|
|
|
|
},
|
|
|
|
isTranslate() {
|
|
|
|
isSubTitle() {
|
|
|
|
return this.track?.tns?.length > 0 || this.track.alia?.length > 0;
|
|
|
|
return (
|
|
|
|
|
|
|
|
(this.track?.tns?.length > 0 &&
|
|
|
|
|
|
|
|
this.track.name !== this.track.tns[0]) ||
|
|
|
|
|
|
|
|
this.track.alia?.length > 0
|
|
|
|
|
|
|
|
);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
isPlaylist() {
|
|
|
|
isPlaylist() {
|
|
|
|
return this.type === 'playlist';
|
|
|
|
return this.type === 'playlist';
|
|
|
@ -294,7 +308,7 @@ button {
|
|
|
|
font-size: 14px;
|
|
|
|
font-size: 14px;
|
|
|
|
opacity: 0.72;
|
|
|
|
opacity: 0.72;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.translate {
|
|
|
|
.subTitle {
|
|
|
|
color: #aeaeae;
|
|
|
|
color: #aeaeae;
|
|
|
|
margin-left: 4px;
|
|
|
|
margin-left: 4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -398,7 +412,7 @@ button {
|
|
|
|
.title,
|
|
|
|
.title,
|
|
|
|
.album,
|
|
|
|
.album,
|
|
|
|
.time,
|
|
|
|
.time,
|
|
|
|
.title-and-artist .translate {
|
|
|
|
.title-and-artist .subTitle {
|
|
|
|
color: var(--color-primary);
|
|
|
|
color: var(--color-primary);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.title .featured,
|
|
|
|
.title .featured,
|
|
|
|