优化播放详情页的打开
parent
7659a6cadf
commit
a0b9553158
|
@ -64,7 +64,7 @@ div(:class="$style.player")
|
||||||
//- transition(enter-active-class="animated lightSpeedIn"
|
//- transition(enter-active-class="animated lightSpeedIn"
|
||||||
transition(enter-active-class="animated lightSpeedIn"
|
transition(enter-active-class="animated lightSpeedIn"
|
||||||
leave-active-class="animated slideOutDown")
|
leave-active-class="animated slideOutDown")
|
||||||
core-player-detail(v-if="isShowPlayerDetail" :visible.sync="isShowPlayerDetail" :musicInfo="currentMusicInfo"
|
core-player-detail(v-show="isShowPlayerDetail" :visible.sync="isShowPlayerDetail" :musicInfo="currentMusicInfo"
|
||||||
:lyric="lyric" :list="list" :listId="listId"
|
:lyric="lyric" :list="list" :listId="listId"
|
||||||
:playInfo="{ nowPlayTimeStr, maxPlayTimeStr, progress, nowPlayTime, status }"
|
:playInfo="{ nowPlayTimeStr, maxPlayTimeStr, progress, nowPlayTime, status }"
|
||||||
:isPlay="isPlay" @action="handlePlayDetailAction"
|
:isPlay="isPlay" @action="handlePlayDetailAction"
|
||||||
|
@ -764,7 +764,7 @@ export default {
|
||||||
this.setProgressWidth()
|
this.setProgressWidth()
|
||||||
},
|
},
|
||||||
handleToMusicLocation() {
|
handleToMusicLocation() {
|
||||||
if (!this.listId || this.listId == '__temp__' || this.listId == 'download') return
|
if (!this.listId || this.listId == '__temp__' || this.listId == 'download' || !this.currentMusicInfo.songmid) return
|
||||||
if (this.playIndex == -1) return
|
if (this.playIndex == -1) return
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: 'list',
|
path: 'list',
|
||||||
|
@ -775,7 +775,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
showPlayerDetail() {
|
showPlayerDetail() {
|
||||||
if (!this.currentMusicInfo) return
|
if (!this.currentMusicInfo.songmid) return
|
||||||
this.isShowPlayerDetail = true
|
this.isShowPlayerDetail = true
|
||||||
},
|
},
|
||||||
handleTransitionEnd(e) {
|
handleTransitionEnd(e) {
|
||||||
|
|
Loading…
Reference in New Issue