|
|
@ -205,20 +205,22 @@ export default {
|
|
|
|
this.rightClickedTrackIndex = -1;
|
|
|
|
this.rightClickedTrackIndex = -1;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
playThisListByTrack(track) {
|
|
|
|
playThisListByTrack(track) {
|
|
|
|
this.showToast('正在进行其他平台播放');
|
|
|
|
this.showToast('TrackList 正在进行其他平台播放');
|
|
|
|
let tracks = this.tracks.filter(_track => {
|
|
|
|
let tracks = this.tracks.filter(_track => {
|
|
|
|
return _track.playable == 1;
|
|
|
|
return _track.playable == 1;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.player.replacePlaylist(tracks, track, 'artist', track);
|
|
|
|
this.player.replacePlaylist(tracks, track, 'artist', track);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
playThisList(trackID) {
|
|
|
|
playThisList(trackID) {
|
|
|
|
if (trackID.constructor === Object) this.playThisListByTrack(trackID);
|
|
|
|
if (trackID.source) {
|
|
|
|
|
|
|
|
this.playThisListByTrack(trackID);
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
trackID = trackID.id || trackID.songId;
|
|
|
|
trackID = trackID.id || trackID.songId;
|
|
|
|
console.log(this.dbclickTrackFunc);
|
|
|
|
|
|
|
|
if (this.dbclickTrackFunc === 'default') {
|
|
|
|
if (this.dbclickTrackFunc === 'default') {
|
|
|
|
this.playThisListDefault(trackID);
|
|
|
|
this.playThisListDefault(trackID);
|
|
|
|
} else if (this.dbclickTrackFunc === 'none') {
|
|
|
|
} else if (this.dbclickTrackFunc === 'none') {
|
|
|
|
// do nothing
|
|
|
|
// this.player.addTrackToPlayNext(trackID, true);
|
|
|
|
} else if (this.dbclickTrackFunc === 'playTrackOnListByID') {
|
|
|
|
} else if (this.dbclickTrackFunc === 'playTrackOnListByID') {
|
|
|
|
this.player.playTrackOnListByID(trackID);
|
|
|
|
this.player.playTrackOnListByID(trackID);
|
|
|
|
} else if (this.dbclickTrackFunc === 'playPlaylistByID') {
|
|
|
|
} else if (this.dbclickTrackFunc === 'playPlaylistByID') {
|
|
|
|