Commit 1d62f1c9 authored by yun's avatar yun

修改蒙版 输入框问题

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