调整Play初始化

This commit is contained in:
buvta
2020-11-21 13:16:41 +08:00
parent f876b863e7
commit b8f010c4f5
2 changed files with 5 additions and 5 deletions

View File

@@ -8,7 +8,7 @@
<Star v-show="view === 'Star'" />
<History v-show="view === 'History'" />
<Setting v-show="view === 'Setting'" />
<IPTV v-if="view === 'IPTV'" />
<IPTV v-show="view === 'IPTV'" />
<EditSites v-if="view === 'EditSites'"/>
<Recommendation v-show="view === 'Recommendation'" />
</div>

View File

@@ -391,7 +391,7 @@ export default {
this.right.type = ''
if (this.view === 'Play') {
this.getChannelList()
if (this.video.key === '') this.channelListShow = true
if (this.video.key === '' && !this.video.iptv) this.channelListShow = true
}
},
video: {
@@ -478,7 +478,7 @@ export default {
},
async getUrls () {
if (this.video.key === '') {
this.channelListShow = true
if (!this.video.iptv) this.channelListShow = true
return false
}
this.name = ''
@@ -494,7 +494,7 @@ export default {
// 是直播源,直接播放
this.playChannel(this.video.iptv)
} else {
this.iptvMode = false
this.channelListShow = false
const index = this.video.info.index | 0
var time = this.video.info.time
if (!time) {
@@ -1396,7 +1396,7 @@ export default {
async mounted () {
const db = await setting.find()
this.playerInstall()
this.config.volume = db.volume
this.config.volume = db.volume ? db.volume : 0.6
this.xg = new HlsJsPlayer(this.config)
this.bindEvent()
this.minMaxEvent()