新增我的音乐列表歌曲源显示

This commit is contained in:
lyswhut
2019-10-07 22:17:13 +08:00
parent f7546b0090
commit 843e453b21
4 changed files with 33 additions and 2 deletions
+25 -1
View File
@@ -21,7 +21,9 @@
@click="handleDoubleClick(index)" :class="[isPlayList && playIndex === index ? $style.active : '', (isAPITemp && item.source != 'kw') || item.source == 'wy' ? $style.disabled : '']")
td.nobreak.center(style="width: 37px;" @click.stop)
material-checkbox(:id="index.toString()" v-model="selectdData" :value="item")
td.break(style="width: 25%;") {{item.name}}
td.break(style="width: 25%;")
| {{item.name}}
span(:class="$style.labelSource" v-if="isShowSource") {{item.source}}
//- span.badge.badge-light(v-if="item._types['128k']") 128K
//- span.badge.badge-light(v-if="item._types['192k']") 192K
//- span.badge.badge-secondary(v-if="item._types['320k']") 320K
@@ -104,6 +106,9 @@ export default {
excludeListId() {
return [this.listId]
},
isShowSource() {
return this.setting.list.isShowSource
},
},
watch: {
selectdData(n) {
@@ -279,6 +284,14 @@ export default {
if (isSelect) this.resetSelect()
this.isShowListAddMultiple = false
},
getSource(source) {
switch (source) {
case 'kw':
return '酷我'
default:
break
}
},
// handleScroll(e) {
// console.log(e.target.scrollTop)
// },
@@ -328,6 +341,14 @@ export default {
}
}
.labelSource {
color: @color-theme;
padding: 5px;
font-size: .8em;
line-height: 1;
opacity: .75;
}
.disabled {
opacity: .5;
}
@@ -355,6 +376,9 @@ each(@themes, {
}
}
}
.labelSource {
color: ~'@{color-@{value}-theme}';
}
.no-item {
p {
color: ~'@{color-@{value}-theme_2-font-label}';
+5
View File
@@ -36,6 +36,10 @@ div.scroll(:class="$style.setting")
div
material-checkbox(id="setting_player_showTaskProgess" v-model="current_setting.player.isShowTaskProgess" label="是否启用")
dt 列表设置
dd(title='是否显示歌曲源')
h3 是否显示歌曲源(仅对我的音乐分类有效)
div
material-checkbox(id="setting_list_showSource_enable" v-model="current_setting.list.isShowSource" label="是否显示")
dd(title='是否恢复播放列表滚动条位置')
h3 恢复列表滚动位置(仅对我的音乐分类有效)
div
@@ -197,6 +201,7 @@ export default {
},
list: {
isShowAlbumName: true,
isShowSource: true,
scroll: {
enable: true,
locations: {},