|
|
|
@ -71,19 +71,19 @@
|
|
|
|
|
<button-icon
|
|
|
|
|
v-show="!player.isPersonalFM"
|
|
|
|
|
:title="$t('player.previous')"
|
|
|
|
|
@click.native="player.playPrevTrack"
|
|
|
|
|
@click.native="playPrevTrack"
|
|
|
|
|
><svg-icon icon-class="previous"
|
|
|
|
|
/></button-icon>
|
|
|
|
|
<button-icon
|
|
|
|
|
v-show="player.isPersonalFM"
|
|
|
|
|
title="不喜欢"
|
|
|
|
|
@click.native="player.moveToFMTrash"
|
|
|
|
|
@click.native="moveToFMTrash"
|
|
|
|
|
><svg-icon icon-class="thumbs-down"
|
|
|
|
|
/></button-icon>
|
|
|
|
|
<button-icon
|
|
|
|
|
class="play"
|
|
|
|
|
:title="$t(player.playing ? 'player.pause' : 'player.play')"
|
|
|
|
|
@click.native="player.playOrPause"
|
|
|
|
|
@click.native="playOrPause"
|
|
|
|
|
>
|
|
|
|
|
<svg-icon :icon-class="player.playing ? 'pause' : 'play'"
|
|
|
|
|
/></button-icon>
|
|
|
|
@ -115,7 +115,7 @@
|
|
|
|
|
? $t('player.repeatTrack')
|
|
|
|
|
: $t('player.repeat')
|
|
|
|
|
"
|
|
|
|
|
@click.native="player.switchRepeatMode"
|
|
|
|
|
@click.native="switchRepeatMode"
|
|
|
|
|
>
|
|
|
|
|
<svg-icon
|
|
|
|
|
v-show="player.repeatMode !== 'one'"
|
|
|
|
@ -129,18 +129,18 @@
|
|
|
|
|
<button-icon
|
|
|
|
|
:class="{ active: player.shuffle, disabled: player.isPersonalFM }"
|
|
|
|
|
:title="$t('player.shuffle')"
|
|
|
|
|
@click.native="player.switchShuffle"
|
|
|
|
|
@click.native="switchShuffle"
|
|
|
|
|
><svg-icon icon-class="shuffle"
|
|
|
|
|
/></button-icon>
|
|
|
|
|
<button-icon
|
|
|
|
|
v-if="settings.enableReversedMode"
|
|
|
|
|
:class="{ active: player.reversed, disabled: player.isPersonalFM }"
|
|
|
|
|
:title="$t('player.reversed')"
|
|
|
|
|
@click.native="player.switchReversed"
|
|
|
|
|
@click.native="switchReversed"
|
|
|
|
|
><svg-icon icon-class="sort-up"
|
|
|
|
|
/></button-icon>
|
|
|
|
|
<div class="volume-control">
|
|
|
|
|
<button-icon :title="$t('player.mute')" @click.native="player.mute">
|
|
|
|
|
<button-icon :title="$t('player.mute')" @click.native="mute">
|
|
|
|
|
<svg-icon v-show="volume > 0.5" icon-class="volume" />
|
|
|
|
|
<svg-icon v-show="volume === 0" icon-class="volume-mute" />
|
|
|
|
|
<svg-icon
|
|
|
|
@ -214,6 +214,12 @@ export default {
|
|
|
|
|
methods: {
|
|
|
|
|
...mapMutations(['toggleLyrics']),
|
|
|
|
|
...mapActions(['showToast', 'likeATrack']),
|
|
|
|
|
playPrevTrack() {
|
|
|
|
|
this.player.playPrevTrack();
|
|
|
|
|
},
|
|
|
|
|
playOrPause() {
|
|
|
|
|
this.player.playOrPause();
|
|
|
|
|
},
|
|
|
|
|
playNextTrack() {
|
|
|
|
|
if (this.player.isPersonalFM) {
|
|
|
|
|
this.player.playNextFMTrack();
|
|
|
|
@ -246,6 +252,21 @@ export default {
|
|
|
|
|
goToArtist(id) {
|
|
|
|
|
this.$router.push({ path: '/artist/' + id });
|
|
|
|
|
},
|
|
|
|
|
moveToFMTrash() {
|
|
|
|
|
this.player.moveToFMTrash();
|
|
|
|
|
},
|
|
|
|
|
switchRepeatMode() {
|
|
|
|
|
this.player.switchRepeatMode();
|
|
|
|
|
},
|
|
|
|
|
switchShuffle() {
|
|
|
|
|
this.player.switchShuffle();
|
|
|
|
|
},
|
|
|
|
|
switchReversed() {
|
|
|
|
|
this.player.switchReversed();
|
|
|
|
|
},
|
|
|
|
|
mute() {
|
|
|
|
|
this.player.mute();
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|