Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
hrs_app_h5
/
bill
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
eb15652f
authored
May 09, 2020
by
展昭
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
tj
parent
1c26d8e6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
17 deletions
src/main.js
src/main.js
View file @
eb15652f
...
...
@@ -46,6 +46,7 @@ Vue.prototype.setPageNavState = function () {
console
.
log
(
"setPageNavState来自 ios/android的回传数据: "
,
response
);
}
);
window
.
WebViewJavascriptBridge
.
callHandler
(
"getBarHeight"
,
null
,
...
...
@@ -58,23 +59,7 @@ Vue.prototype.setPageNavState = function () {
response
=
JSON
.
parse
(
response
);
const
barHeight
=
response
.
statusBarHeight
;
localStorage
.
setItem
(
"barHeight"
,
barHeight
);
const
conHeight
=
46
+
barHeight
;
console
.
log
(
"main barHeight="
,
barHeight
);
const
dom
=
document
.
getElementsByClassName
(
"iosStyle"
)[
0
];
if
(
dom
)
{
dom
.
setAttribute
(
"style"
,
"padding-top:"
+
barHeight
+
"px !important"
);
}
const
dom2
=
document
.
getElementsByClassName
(
"container"
)[
0
];
if
(
dom
)
{
dom2
.
setAttribute
(
"style"
,
"padding-top:"
+
conHeight
+
"px !important"
);
}
console
.
log
(
'main barHeight='
,
barHeight
);
}
}
);
...
...
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