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
c9834752
authored
May 08, 2020
by
展昭
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
tj
parent
da81a7e3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
1 deletions
src/assets/js/setBarHeight.js
src/main.js
src/assets/js/setBarHeight.js
View file @
c9834752
...
...
@@ -2,6 +2,7 @@ const setBarHeight = {
mounted
()
{
const
barHeight
=
localStorage
.
getItem
(
'barHeight'
);
const
conHeight
=
46
+
barHeight
;
console
.
log
(
'mixins barHeight='
,
barHeight
);
document
.
getElementsByClassName
(
"iosStyle"
)[
0
]
.
setAttribute
(
"style"
,
"padding-top:"
+
barHeight
+
"px !important"
);
...
...
src/main.js
View file @
c9834752
...
...
@@ -57,7 +57,6 @@ Vue.prototype.setPageNavState = function () {
if
(
response
)
{
response
=
JSON
.
parse
(
response
);
const
barHeight
=
response
.
statusBarHeight
;
console
.
log
(
'barHeight='
,
barHeight
);
localStorage
.
setItem
(
'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