新增:直接播放QQ音乐排行榜音乐

This commit is contained in:
lyswhut
2019-08-17 02:22:43 +08:00
parent 43bc2b6b90
commit bccadcf13d
21 changed files with 241 additions and 108 deletions
+3 -2
View File
@@ -98,6 +98,8 @@ export default {
watch: {
changePlay(n) {
if (!n) return
// console.log('changePlay')
this.handleRemoveMusic()
this.resetChangePlay()
if (this.playIndex < 0) return
this.stopPlay()
@@ -112,7 +114,7 @@ export default {
? n.findIndex(s => s.musicInfo.songmid === this.musicInfo.songmid)
: n.findIndex(s => s.songmid === this.musicInfo.songmid)
if (index < 0) {
this.handleRemoveMusic()
this.fixPlayIndex(this.playIndex - 1)
if (n.length) this.handleNext()
} else {
this.fixPlayIndex(index)
@@ -362,7 +364,6 @@ export default {
this.musicInfo.url = null
this.nowPlayTime = 0
this.maxPlayTime = 0
this.fixPlayIndex(this.playIndex - 1)
},
sendProgressEvent(status, mode) {
// console.log(status)