Janx 2 years ago
parent f082b887ef
commit bd24b0bb1f

@ -109,13 +109,13 @@ export default {
@media (max-width: 700px) {
.mv-row {
--col-num: 2;
--col-num: 3;
}
}
@media (max-width: 550px) {
.mv-row {
--col-num: 1;
--col-num: 3;
}
}

@ -57,7 +57,7 @@
<ContextMenu ref="showSearchList">
<div class="item" @click="toCoSearch('tencent')">
<svg-icon icon-class="settings" />
QQ音乐
其他搜索
</div>
</ContextMenu>
<ContextMenu ref="userProfileMenu">

@ -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') {

@ -231,8 +231,7 @@ export default {
this.$router.push({ path: '/album/' + this.track.al.id });
},
playTrack() {
if (this.track.constructor === Object)
this.$parent.playThisListByTrack(this.track);
if (this.track.source) this.$parent.playThisList(this.track);
else this.$parent.playThisList(this.track.id);
},
likeThisSong() {

@ -1,6 +1,5 @@
export default {
server: {
netease: '网易云音乐',
tencent: 'QQ音乐',
kugou: '酷狗音乐',
},

@ -102,7 +102,6 @@ export default {
},
serverNameTable() {
return {
netease: locale.t('server.netease'),
tencent: locale.t('server.tencent'),
kugou: locale.t('server.kugou'),
};
@ -119,7 +118,7 @@ export default {
methods: {
...mapActions(['showToast']),
playThisListByTrack(id) {
this.showToast('正在进行其他平台播放');
this.showToast('coSearch 正在进行其他平台播放');
getPlaylistDetail(id, true, this.$route.query.server).then(data => {
console.log(data);
let playlist = data.playlist;

@ -434,7 +434,7 @@ export default {
);
},
playThisListByTrack(id) {
this.showToast('正在进行其他平台播放');
this.showToast('Playlist:正在进行其他平台播放');
getPlaylistDetail(id, true, this.$route.query.server).then(data => {
console.log(data);
let playlist = data.playlist;

@ -14,8 +14,8 @@ module.exports = {
proxy: {
'^/api': {
target:
// 'https://service-osrz4um8-1257251314.gz.apigw.tencentcs.com/release/',
'http://127.0.0.1:3000/',
'https://service-osrz4um8-1257251314.gz.apigw.tencentcs.com/release/',
// 'http://127.0.0.1:3000/',
changeOrigin: true,
pathRewrite: {
'^/api': '/',

Loading…
Cancel
Save