Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
pingan-life-index-pro
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
8627bf65
authored
2020-03-30 19:14:15 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
e01783e1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
13 deletions
.gitignore
src/App.vue
src/pages/vhis/vhis.js
.gitignore
View file @
8627bf6
...
...
@@ -6,7 +6,7 @@ node_modules
.DS_Store
sync.sh
git.sh
/sandbox
#
/sandbox
# local env files
.env.local
...
...
src/App.vue
View file @
8627bf6
...
...
@@ -67,13 +67,13 @@ export default {
}
}
catch
(
e
)
{}
}
},
initData
()
{
this
.
lang
=
this
.
$i18n
.
locale
==
"en"
?
"en"
:
"zh"
;
}
},
initData
()
{
this
.
lang
=
this
.
$i18n
.
locale
==
"en"
?
"en"
:
"zh"
;
}
},
created
()
{
this
.
initData
();
this
.
initData
();
this
.
refreshUA
();
this
.
refreshProfile
();
this
.
$root
.
eventBus
.
$on
(
"langChange"
,
()
=>
{
...
...
@@ -311,9 +311,13 @@ input::-webkit-search-cancel-button {
opacity
:
1
;
}
::-webkit-scrollbar
{
width
:
0px
;
height
:
0px
;
//
::-webkit-scrollbar
{
//
width
:
0px
;
//
height
:
0px
;
//
display
:
none
;
//
}
.hide-scrollbar
::-webkit-scrollbar
{
display
:
none
;
}
...
...
src/pages/vhis/vhis.js
View file @
8627bf6
...
...
@@ -94,7 +94,7 @@ export default {
try
{
iframe
.
height
=
0
;
iframe
.
style
.
height
=
"0px"
;
}
catch
(
ex
)
{
}
}
catch
(
ex
)
{}
let
_this
=
this
;
setTimeout
(
function
()
{
...
...
@@ -125,7 +125,10 @@ export default {
// }, 500);
// }
window
.
removeEventListener
(
"message"
,
function
()
{
});
// 隐藏滚动条
// document.getElementsByTagName("body")[0].className = "hide-scrollbar";
window
.
removeEventListener
(
"message"
,
function
()
{});
window
.
addEventListener
(
'message'
,
function
(
e
)
{
let
height
=
e
.
data
?
e
.
data
.
height
:
null
;
if
(
height
)
{
...
...
@@ -133,9 +136,15 @@ export default {
try
{
iframe
.
height
=
height
;
iframe
.
style
.
height
=
height
+
"px"
;
}
catch
(
ex
)
{
}
}
catch
(
ex
)
{}
}
});
},
created
()
{
}
beforeDestroy
()
{
// 移除隐藏滚动条样式
// document.body.removeAttribute("class", "hide-scrollbar");
},
created
()
{
}
}
...
...
Please
register
or
sign in
to post a comment