Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mt-education-mobile
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王旭
mt-education-mobile
Commits
1d62f1c9
Commit
1d62f1c9
authored
Apr 23, 2020
by
yun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改蒙版 输入框问题
parent
0c69d1b6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
5 deletions
+16
-5
MtPdf.vue
src/components/MtPdf.vue
+2
-0
MtPdfPpt.vue
src/components/MtPdfPpt.vue
+2
-0
MtWord.vue
src/components/MtWord.vue
+2
-0
index.vue
src/views/CourseDetail/index.vue
+10
-5
No files found.
src/components/MtPdf.vue
View file @
1d62f1c9
...
...
@@ -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
()
...
...
src/components/MtPdfPpt.vue
View file @
1d62f1c9
...
...
@@ -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
()
...
...
src/components/MtWord.vue
View file @
1d62f1c9
...
...
@@ -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
()
...
...
src/views/CourseDetail/index.vue
View file @
1d62f1c9
...
...
@@ -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) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment