Commit ee4cf1e2 by 李伟康

提交代码

1 parent 233046cf
...@@ -280,7 +280,9 @@ export default { ...@@ -280,7 +280,9 @@ export default {
/**安卓退出全屏 */ /**安卓退出全屏 */
document.addEventListener('webkitfullscreenchange', () => { document.addEventListener('webkitfullscreenchange', () => {
if (!document.webkitIsFullScreen && data.activityMusic) { if (!document.webkitIsFullScreen && data.activityMusic) {
let { currentVideoIndex } = this
this.audioAutoPlay() this.audioAutoPlay()
this.$refs[`video-${currentVideoIndex}`][0].pause()
} }
}) })
} }
...@@ -362,6 +364,7 @@ export default { ...@@ -362,6 +364,7 @@ export default {
video.controls = false video.controls = false
video.addEventListener('webkitendfullscreen', () => { video.addEventListener('webkitendfullscreen', () => {
if (audioFlag) this.audioAutoPlay() if (audioFlag) this.audioAutoPlay()
video.pause()
video.removeEventListener('webkitendfullscreen') video.removeEventListener('webkitendfullscreen')
}) })
if (ISMOBILE) this.showLoading('准备中...') if (ISMOBILE) this.showLoading('准备中...')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!