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
fc60b025
Commit
fc60b025
authored
Dec 05, 2019
by
yun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
全屏试验
parent
110aa1df
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
79 deletions
+34
-79
MtPdf.vue
src/components/MtPdf.vue
+11
-24
MtPdfPpt.vue
src/components/MtPdfPpt.vue
+12
-28
MtWord.vue
src/components/MtWord.vue
+11
-27
No files found.
src/components/MtPdf.vue
View file @
fc60b025
...
@@ -172,35 +172,13 @@ export default {
...
@@ -172,35 +172,13 @@ export default {
}
}
// $('.pdf-container').css('transform', 'rotate(90deg)')
// $('.pdf-container').css('transform', 'rotate(90deg)')
}
else
{
}
else
{
if
(
getSystem
()
===
'android'
)
{
this
.
exitFullScreen
(
'.pdf-container'
)
this
.
$wnsdk
.
device
.
setOrientation
({
type
:
1
,
success
(
res
)
{
that
.
exitFullScreen
(
'.pdf-container'
)
},
error
(
err
)
{
console
.
log
(
err
)
}})
}
else
{
this
.
exitFullScreen
(
'.pdf-container'
)
}
// $('.pdf-container').css('transform', 'rotate(-90deg)')
// $('.pdf-container').css('transform', 'rotate(-90deg)')
}
}
},
},
backToSmall
()
{
backToSmall
()
{
const
that
=
this
if
(
this
.
fullState
)
{
if
(
this
.
fullState
)
{
if
(
getSystem
()
===
'android'
)
{
this
.
exitFullScreen
(
'.pdf-container'
)
this
.
$wnsdk
.
device
.
setOrientation
({
type
:
4
,
success
(
res
)
{
that
.
exitFullScreen
(
'.pdf-container'
)
console
.
log
(
res
)
},
error
(
err
)
{
console
.
log
(
err
)
}})
}
else
{
this
.
exitFullScreen
(
'.pdf-container'
)
}
}
}
},
},
exitFullScreen
(
location
)
{
exitFullScreen
(
location
)
{
...
@@ -214,6 +192,15 @@ export default {
...
@@ -214,6 +192,15 @@ export default {
document
.
webkitExitFullscreen
()
document
.
webkitExitFullscreen
()
}
}
$
(
location
).
height
(
'211px'
)
$
(
location
).
height
(
'211px'
)
if
(
getSystem
()
===
'android'
)
{
this
.
$wnsdk
.
device
.
setOrientation
({
type
:
1
,
success
(
res
)
{
console
.
log
(
res
)
},
error
(
err
)
{
console
.
log
(
err
)
}})
}
},
},
beFullScreen
(
location
)
{
beFullScreen
(
location
)
{
const
element
=
document
.
getElementsByClassName
(
location
)[
0
]
const
element
=
document
.
getElementsByClassName
(
location
)[
0
]
...
...
src/components/MtPdfPpt.vue
View file @
fc60b025
...
@@ -172,38 +172,13 @@ export default {
...
@@ -172,38 +172,13 @@ export default {
}
}
// $('.pdf-container').css('transform', 'rotate(90deg)')
// $('.pdf-container').css('transform', 'rotate(90deg)')
}
else
{
}
else
{
if
(
getSystem
()
===
'android'
)
{
that
.
exitFullScreen
(
'.pdf-container'
)
this
.
$wnsdk
.
device
.
setOrientation
({
type
:
1
,
success
(
res
)
{
that
.
exitFullScreen
(
'.pdf-container'
)
that
.
exitFullScreen
(
'.pdf-container'
)
console
.
log
(
res
)
},
error
(
err
)
{
console
.
log
(
err
)
}})
}
else
{
this
.
exitFullScreen
(
'.pdf-container'
)
}
// $('.pdf-container').css('transform', 'rotate(-90deg)')
// $('.pdf-container').css('transform', 'rotate(-90deg)')
}
}
},
},
backToSmall
()
{
backToSmall
()
{
const
that
=
this
if
(
this
.
fullState
)
{
if
(
this
.
fullState
)
{
if
(
getSystem
()
===
'android'
)
{
this
.
exitFullScreen
(
'.pdf-container'
)
this
.
$wnsdk
.
device
.
setOrientation
({
type
:
4
,
success
(
res
)
{
that
.
exitFullScreen
(
'.pdf-container'
)
that
.
exitFullScreen
(
'.pdf-container'
)
console
.
log
(
res
)
},
error
(
err
)
{
console
.
log
(
err
)
}})
}
else
{
this
.
exitFullScreen
(
'.pdf-container'
)
}
}
}
},
},
pdfClick
()
{
pdfClick
()
{
...
@@ -216,6 +191,7 @@ export default {
...
@@ -216,6 +191,7 @@ export default {
}
}
},
},
exitFullScreen
(
location
)
{
exitFullScreen
(
location
)
{
$
(
location
).
height
(
'211px'
)
if
(
document
.
exitFullscreen
)
{
if
(
document
.
exitFullscreen
)
{
document
.
exitFullscreen
()
document
.
exitFullscreen
()
}
else
if
(
document
.
msExitFullscreen
)
{
}
else
if
(
document
.
msExitFullscreen
)
{
...
@@ -225,7 +201,15 @@ export default {
...
@@ -225,7 +201,15 @@ export default {
}
else
if
(
document
.
webkitExitFullscreen
)
{
}
else
if
(
document
.
webkitExitFullscreen
)
{
document
.
webkitExitFullscreen
()
document
.
webkitExitFullscreen
()
}
}
$
(
location
).
height
(
'211px'
)
if
(
getSystem
()
===
'android'
)
{
this
.
$wnsdk
.
device
.
setOrientation
({
type
:
1
,
success
(
res
)
{
console
.
log
(
res
)
},
error
(
err
)
{
console
.
log
(
err
)
}})
}
},
},
beFullScreen
(
location
)
{
beFullScreen
(
location
)
{
const
element
=
document
.
getElementsByClassName
(
location
)[
0
]
const
element
=
document
.
getElementsByClassName
(
location
)[
0
]
...
...
src/components/MtWord.vue
View file @
fc60b025
...
@@ -171,38 +171,13 @@ export default {
...
@@ -171,38 +171,13 @@ export default {
this
.
beFullScreen
(
'pdf-container'
)
this
.
beFullScreen
(
'pdf-container'
)
}
}
}
else
{
}
else
{
if
(
getSystem
()
===
'android'
)
{
this
.
exitFullScreen
(
'.pdf-container'
)
this
.
$wnsdk
.
device
.
setOrientation
({
type
:
1
,
success
(
res
)
{
that
.
exitFullScreen
(
'.pdf-container'
)
console
.
log
(
res
)
},
error
(
err
)
{
console
.
log
(
err
)
}})
}
else
{
this
.
exitFullScreen
(
'.pdf-container'
)
}
// $('.pdf-container').css('transform', 'rotate(-90deg)')
// $('.pdf-container').css('transform', 'rotate(-90deg)')
}
}
},
},
backToSmall
()
{
backToSmall
()
{
const
that
=
this
if
(
this
.
fullState
)
{
if
(
this
.
fullState
)
{
if
(
this
.
fullState
)
{
this
.
exitFullScreen
(
'.pdf-container'
)
if
(
getSystem
()
===
'android'
)
{
this
.
$wnsdk
.
device
.
setOrientation
({
type
:
4
,
success
(
res
)
{
that
.
exitFullScreen
(
'.pdf-container'
)
console
.
log
(
res
)
},
error
(
err
)
{
console
.
log
(
err
)
}})
}
else
{
this
.
exitFullScreen
(
'.pdf-container'
)
}
}
}
}
},
},
pdfClick
()
{
pdfClick
()
{
...
@@ -225,6 +200,15 @@ export default {
...
@@ -225,6 +200,15 @@ export default {
document
.
webkitExitFullscreen
()
document
.
webkitExitFullscreen
()
}
}
$
(
location
).
height
(
'211px'
)
$
(
location
).
height
(
'211px'
)
if
(
getSystem
()
===
'android'
)
{
this
.
$wnsdk
.
device
.
setOrientation
({
type
:
1
,
success
(
res
)
{
console
.
log
(
res
)
},
error
(
err
)
{
console
.
log
(
err
)
}})
}
},
},
beFullScreen
(
location
)
{
beFullScreen
(
location
)
{
const
element
=
document
.
getElementsByClassName
(
location
)[
0
]
const
element
=
document
.
getElementsByClassName
(
location
)[
0
]
...
...
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