Janx 2 years ago
parent f082b887ef
commit bd24b0bb1f

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

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

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

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

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

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

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

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

Loading…
Cancel
Save