我的列表右键菜单添加搜索当前歌曲功能
parent
9953c61d62
commit
093bfd26a3
|
@ -5,6 +5,7 @@
|
||||||
- 添加鼠标指向歌曲封面的提示(对于进度条左边的歌曲封面,你可能不知道的操作->右击在“我的列表”定位当前播放的歌曲)
|
- 添加鼠标指向歌曲封面的提示(对于进度条左边的歌曲封面,你可能不知道的操作->右击在“我的列表”定位当前播放的歌曲)
|
||||||
- 隐藏播放详情页按钮添加快速隐藏详情页提示(你可能不知道的操作->在播放详情页内的任意非窗口可拖动区域右键双击可以快速隐藏详情页)
|
- 隐藏播放详情页按钮添加快速隐藏详情页提示(你可能不知道的操作->在播放详情页内的任意非窗口可拖动区域右键双击可以快速隐藏详情页)
|
||||||
- 添加桌面歌词字体、透明度调整按钮微调提示(你可能不知道的操作->对于字体、透明度可右击微调)
|
- 添加桌面歌词字体、透明度调整按钮微调提示(你可能不知道的操作->对于字体、透明度可右击微调)
|
||||||
|
- 我的列表右键菜单添加搜索当前歌曲功能
|
||||||
|
|
||||||
### 修复
|
### 修复
|
||||||
|
|
||||||
|
|
|
@ -469,7 +469,7 @@ export default {
|
||||||
},
|
},
|
||||||
async play() {
|
async play() {
|
||||||
console.log('play', this.playIndex)
|
console.log('play', this.playIndex)
|
||||||
this.checkDelayNextTimeout()
|
this.clearDelayNextTimeout()
|
||||||
let targetSong = this.targetSong = this.list[this.playIndex]
|
let targetSong = this.targetSong = this.list[this.playIndex]
|
||||||
if (this.setting.player.togglePlayMethod == 'random') this.setPlayedList(targetSong)
|
if (this.setting.player.togglePlayMethod == 'random') this.setPlayedList(targetSong)
|
||||||
this.retryNum = 0
|
this.retryNum = 0
|
||||||
|
@ -506,7 +506,7 @@ export default {
|
||||||
album: this.musicInfo.album,
|
album: this.musicInfo.album,
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
checkDelayNextTimeout() {
|
clearDelayNextTimeout() {
|
||||||
// console.log(this.delayNextTimeout)
|
// console.log(this.delayNextTimeout)
|
||||||
if (this.delayNextTimeout) {
|
if (this.delayNextTimeout) {
|
||||||
clearTimeout(this.delayNextTimeout)
|
clearTimeout(this.delayNextTimeout)
|
||||||
|
@ -514,7 +514,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
addDelayNextTimeout() {
|
addDelayNextTimeout() {
|
||||||
this.checkDelayNextTimeout()
|
this.clearDelayNextTimeout()
|
||||||
this.delayNextTimeout = setTimeout(() => {
|
this.delayNextTimeout = setTimeout(() => {
|
||||||
this.delayNextTimeout = null
|
this.delayNextTimeout = null
|
||||||
this.handleNext()
|
this.handleNext()
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
"list_move_to": "Move to ...",
|
"list_move_to": "Move to ...",
|
||||||
"list_sort": "Adjust position",
|
"list_sort": "Adjust position",
|
||||||
"list_download": "Download",
|
"list_download": "Download",
|
||||||
|
"list_search": "Search",
|
||||||
"list_remove": "Remove",
|
"list_remove": "Remove",
|
||||||
"list_source_detail": "Song Page",
|
"list_source_detail": "Song Page",
|
||||||
"default_list": "Recently Played",
|
"default_list": "Recently Played",
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
"list_move_to": "移动到...",
|
"list_move_to": "移动到...",
|
||||||
"list_sort": "调整位置",
|
"list_sort": "调整位置",
|
||||||
"list_download": "下载",
|
"list_download": "下载",
|
||||||
|
"list_search": "搜索",
|
||||||
"list_remove": "删除",
|
"list_remove": "删除",
|
||||||
"default_list": "试听列表",
|
"default_list": "试听列表",
|
||||||
"love_list": "收藏",
|
"love_list": "收藏",
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
"list_move_to": "移動到...",
|
"list_move_to": "移動到...",
|
||||||
"list_sort": "調整位置",
|
"list_sort": "調整位置",
|
||||||
"list_download": "下載",
|
"list_download": "下載",
|
||||||
|
"list_search": "搜索",
|
||||||
"list_remove": "刪除",
|
"list_remove": "刪除",
|
||||||
"list_source_detail": "歌曲詳情頁",
|
"list_source_detail": "歌曲詳情頁",
|
||||||
"default_list": "試聽列表",
|
"default_list": "試聽列表",
|
||||||
|
|
|
@ -127,6 +127,7 @@ export default {
|
||||||
moveTo: true,
|
moveTo: true,
|
||||||
sort: true,
|
sort: true,
|
||||||
download: true,
|
download: true,
|
||||||
|
search: true,
|
||||||
remove: true,
|
remove: true,
|
||||||
sourceDetail: true,
|
sourceDetail: true,
|
||||||
},
|
},
|
||||||
|
@ -222,6 +223,21 @@ export default {
|
||||||
action: 'download',
|
action: 'download',
|
||||||
disabled: !this.listMenu.itemMenuControl.download,
|
disabled: !this.listMenu.itemMenuControl.download,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: this.$t('view.list.list_add_to'),
|
||||||
|
action: 'addTo',
|
||||||
|
disabled: !this.listMenu.itemMenuControl.addTo,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: this.$t('view.list.list_move_to'),
|
||||||
|
action: 'moveTo',
|
||||||
|
disabled: !this.listMenu.itemMenuControl.moveTo,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: this.$t('view.list.list_sort'),
|
||||||
|
action: 'sort',
|
||||||
|
disabled: !this.listMenu.itemMenuControl.sort,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: this.$t('view.list.list_copy_name'),
|
name: this.$t('view.list.list_copy_name'),
|
||||||
action: 'copyName',
|
action: 'copyName',
|
||||||
|
@ -233,19 +249,9 @@ export default {
|
||||||
disabled: !this.listMenu.itemMenuControl.sourceDetail,
|
disabled: !this.listMenu.itemMenuControl.sourceDetail,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: this.$t('view.list.list_sort'),
|
name: this.$t('view.list.list_search'),
|
||||||
action: 'sort',
|
action: 'search',
|
||||||
disabled: !this.listMenu.itemMenuControl.sort,
|
disabled: !this.listMenu.itemMenuControl.search,
|
||||||
},
|
|
||||||
{
|
|
||||||
name: this.$t('view.list.list_add_to'),
|
|
||||||
action: 'addTo',
|
|
||||||
disabled: !this.listMenu.itemMenuControl.addTo,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: this.$t('view.list.list_move_to'),
|
|
||||||
action: 'moveTo',
|
|
||||||
disabled: !this.listMenu.itemMenuControl.moveTo,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: this.$t('view.list.list_remove'),
|
name: this.$t('view.list.list_remove'),
|
||||||
|
@ -653,6 +659,7 @@ export default {
|
||||||
return assertApiSupport(source)
|
return assertApiSupport(source)
|
||||||
},
|
},
|
||||||
handleContainerClick(event) {
|
handleContainerClick(event) {
|
||||||
|
if (!this.$refs.dom_lists) return
|
||||||
let isFocusList = event.target == this.$refs.dom_lists || this.$refs.dom_lists.contains(event.target)
|
let isFocusList = event.target == this.$refs.dom_lists || this.$refs.dom_lists.contains(event.target)
|
||||||
this.focusTarget = isFocusList ? 'list' : 'listDetail'
|
this.focusTarget = isFocusList ? 'list' : 'listDetail'
|
||||||
},
|
},
|
||||||
|
@ -838,6 +845,10 @@ export default {
|
||||||
// })
|
// })
|
||||||
// }
|
// }
|
||||||
break
|
break
|
||||||
|
case 'search':
|
||||||
|
minfo = this.list[index]
|
||||||
|
this.handleSearch(minfo)
|
||||||
|
break
|
||||||
case 'remove':
|
case 'remove':
|
||||||
if (this.selectdListDetailData.length) {
|
if (this.selectdListDetailData.length) {
|
||||||
this.listRemoveMultiple({ id: this.listId, list: this.selectdListDetailData })
|
this.listRemoveMultiple({ id: this.listId, list: this.selectdListDetailData })
|
||||||
|
@ -899,6 +910,14 @@ export default {
|
||||||
this.removeAllSelectListDetail()
|
this.removeAllSelectListDetail()
|
||||||
this.isShowListSortModal = false
|
this.isShowListSortModal = false
|
||||||
},
|
},
|
||||||
|
handleSearch(musicInfo) {
|
||||||
|
this.$router.push({
|
||||||
|
path: 'search',
|
||||||
|
query: {
|
||||||
|
text: `${musicInfo.name} ${musicInfo.singer}`,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue