Commit 1d62f1c9 authored by yun's avatar yun

修改蒙版 输入框问题

parent 0c69d1b6
...@@ -258,6 +258,7 @@ export default { ...@@ -258,6 +258,7 @@ export default {
} }
}, },
exitFullScreen(location) { exitFullScreen(location) {
this.$emit('fullChange', false)
if (document.exitFullscreen) { if (document.exitFullscreen) {
document.exitFullscreen() document.exitFullscreen()
} else if (document.msExitFullscreen) { } else if (document.msExitFullscreen) {
...@@ -279,6 +280,7 @@ export default { ...@@ -279,6 +280,7 @@ export default {
} }
}, },
beFullScreen(location) { beFullScreen(location) {
this.$emit('fullChange', true)
const element = document.getElementsByClassName(location)[0] const element = document.getElementsByClassName(location)[0]
if (element.requestFullscreen) { if (element.requestFullscreen) {
element.requestFullscreen() element.requestFullscreen()
......
...@@ -255,6 +255,7 @@ export default { ...@@ -255,6 +255,7 @@ export default {
} }
}, },
exitFullScreen(location) { exitFullScreen(location) {
this.$emit('fullChange', false)
$(location).height('56.26667vw') $(location).height('56.26667vw')
if (document.exitFullscreen) { if (document.exitFullscreen) {
document.exitFullscreen() document.exitFullscreen()
...@@ -276,6 +277,7 @@ export default { ...@@ -276,6 +277,7 @@ export default {
} }
}, },
beFullScreen(location) { beFullScreen(location) {
this.$emit('fullChange', true)
const element = document.getElementsByClassName(location)[0] const element = document.getElementsByClassName(location)[0]
if (element.requestFullscreen) { if (element.requestFullscreen) {
element.requestFullscreen() element.requestFullscreen()
......
...@@ -252,6 +252,7 @@ export default { ...@@ -252,6 +252,7 @@ export default {
} }
}, },
exitFullScreen(location) { exitFullScreen(location) {
this.$emit('fullChange', false)
if (document.exitFullscreen) { if (document.exitFullscreen) {
document.exitFullscreen() document.exitFullscreen()
} else if (document.msExitFullscreen) { } else if (document.msExitFullscreen) {
...@@ -273,6 +274,7 @@ export default { ...@@ -273,6 +274,7 @@ export default {
} }
}, },
beFullScreen(location) { beFullScreen(location) {
this.$emit('fullChange', true)
const element = document.getElementsByClassName(location)[0] const element = document.getElementsByClassName(location)[0]
if (element.requestFullscreen) { if (element.requestFullscreen) {
element.requestFullscreen() element.requestFullscreen()
......
...@@ -98,6 +98,7 @@ ...@@ -98,6 +98,7 @@
@hideBackBarToIos="iosHideBack = false" @hideBackBarToIos="iosHideBack = false"
@showBackBarToIos="iosHideBack = true" @showBackBarToIos="iosHideBack = true"
:is-course-train-out="isOutLine" :is-course-train-out="isOutLine"
@fullChange="isFullchange"
/> />
<mt-pdf <mt-pdf
v-else-if="currentSection.isTest==='3' && upLoad" v-else-if="currentSection.isTest==='3' && upLoad"
...@@ -110,6 +111,7 @@ ...@@ -110,6 +111,7 @@
@hideBackBarToIos="iosHideBack = false" @hideBackBarToIos="iosHideBack = false"
@showBackBarToIos="iosHideBack = true" @showBackBarToIos="iosHideBack = true"
:is-course-train-out="isOutLine" :is-course-train-out="isOutLine"
@fullChange="isFullchange"
/> />
<mt-word <mt-word
v-else-if="currentSection.isTest==='4' && upLoad" v-else-if="currentSection.isTest==='4' && upLoad"
...@@ -122,6 +124,7 @@ ...@@ -122,6 +124,7 @@
@hideBackBarToIos="iosHideBack = false" @hideBackBarToIos="iosHideBack = false"
@showBackBarToIos="iosHideBack = true" @showBackBarToIos="iosHideBack = true"
:is-course-train-out="isOutLine" :is-course-train-out="isOutLine"
@fullChange="isFullchange"
/> />
<ul class="tag-group"> <ul class="tag-group">
<div style="width: 54%;display: flex;justify-content: space-between;height: 100%"> <div style="width: 54%;display: flex;justify-content: space-between;height: 100%">
...@@ -296,7 +299,7 @@ ...@@ -296,7 +299,7 @@
</div> </div>
</div> </div>
<div class="input" <div class="input"
v-if="currentTag == tags[2] && !isOutLine" v-if="currentTag == tags[2] && !isOutLine && !isFull"
> >
<van-field <van-field
:disabled="course.releaseState === '4'" :disabled="course.releaseState === '4'"
...@@ -478,6 +481,7 @@ export default { ...@@ -478,6 +481,7 @@ export default {
}, },
data() { data() {
return { return {
isFull: false, // 文件是否全屏
bQrUrl: '', bQrUrl: '',
isOutLine: window.location.href.indexOf('CourseTrainOut') > -1, // 是否为外链 isOutLine: window.location.href.indexOf('CourseTrainOut') > -1, // 是否为外链
showShare: false, // 是否展示分享弹出框 showShare: false, // 是否展示分享弹出框
...@@ -579,6 +583,10 @@ export default { ...@@ -579,6 +583,10 @@ export default {
}) })
}, },
methods: { methods: {
isFullchange(data) {
console.log(data, 'HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH')
this.isFull = data
},
loadingHide() { loadingHide() {
this.loadingToSendDiscuss = false this.loadingToSendDiscuss = false
document.getElementById('btnFocus2').blur() document.getElementById('btnFocus2').blur()
...@@ -1024,7 +1032,6 @@ export default { ...@@ -1024,7 +1032,6 @@ export default {
}) })
return return
} }
this.loading = true
// 判断上一节的资料类型是否正常(刚进入页面时this.currentSection未赋值),正常则在切换新的一节前做“学习进度和学习位置”记录处理、处理成功后再跳转至新的节, 不正常则跳过处理直接切换节。 // 判断上一节的资料类型是否正常(刚进入页面时this.currentSection未赋值),正常则在切换新的一节前做“学习进度和学习位置”记录处理、处理成功后再跳转至新的节, 不正常则跳过处理直接切换节。
if (this.currentSection.isTest !== undefined && !this.isOutLine) { if (this.currentSection.isTest !== undefined && !this.isOutLine) {
// currentLoc:上一节资料的学习位置 (视频音频则为“第几秒”,pdf、ppt和word则为“第几页”); // currentLoc:上一节资料的学习位置 (视频音频则为“第几秒”,pdf、ppt和word则为“第几页”);
...@@ -1158,6 +1165,7 @@ export default { ...@@ -1158,6 +1165,7 @@ export default {
this.currentSection = section this.currentSection = section
this.currentChapter.index = chapterIndex this.currentChapter.index = chapterIndex
this.upLoad = true this.upLoad = true
this.loading = false
}) })
} }
}, },
...@@ -1232,9 +1240,6 @@ export default { ...@@ -1232,9 +1240,6 @@ export default {
onPdfLoaded(pages) { onPdfLoaded(pages) {
this.loadPdf = true this.loadPdf = true
this.allPage = pages this.allPage = pages
setTimeout(() => {
this.loading = false
}, 1000)
const progress = this.currentSection.progress && parseInt(Number(this.currentSection.progress.split('%')[0])) >= 100, const progress = this.currentSection.progress && parseInt(Number(this.currentSection.progress.split('%')[0])) >= 100,
valueZero = this.course.valueGain === '0' || this.course.valueGain === '' valueZero = this.course.valueGain === '0' || this.course.valueGain === ''
if (progress || valueZero || this.isOutLine) { if (progress || valueZero || this.isOutLine) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment