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