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
b91af5c5
authored
May 09, 2020
by
展昭
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
61d4dfe0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
22 deletions
src/views/Bill/index.vue
src/views/Bill/index.vue
View file @
b91af5c5
...
@@ -419,30 +419,37 @@ export default {
...
@@ -419,30 +419,37 @@ export default {
}
}
},
},
setBarHeight
()
{
setBarHeight
()
{
window
.
WebViewJavascriptBridge
.
callHandler
(
"getBarHeight"
,
null
,
function
(
initJsBridge
(()
=>
{
response
window
.
WebViewJavascriptBridge
.
callHandler
(
)
{
"getBarHeight"
,
console
.
log
(
"billindex getBarHeight来自 ios/android的回传数据: "
,
response
);
null
,
if
(
response
)
{
function
(
response
)
{
response
=
JSON
.
parse
(
response
);
console
.
log
(
const
barHeight
=
response
.
statusBarHeight
;
"billindex getBarHeight来自 ios/android的回传数据: "
,
localStorage
.
setItem
(
"barHeight"
,
barHeight
);
response
const
conHeight
=
46
+
barHeight
;
console
.
log
(
"billindex barHeight="
,
barHeight
);
document
.
getElementsByClassName
(
"iosStyle"
)[
0
]
.
setAttribute
(
"style"
,
"padding-top:"
+
barHeight
+
"px !important"
);
);
if
(
response
)
{
response
=
JSON
.
parse
(
response
);
const
barHeight
=
response
.
statusBarHeight
;
localStorage
.
setItem
(
"barHeight"
,
barHeight
);
const
conHeight
=
46
+
barHeight
;
console
.
log
(
"billindex barHeight="
,
barHeight
);
document
.
getElementsByClassName
(
"iosStyle"
)[
0
]
.
setAttribute
(
"style"
,
"padding-top:"
+
barHeight
+
"px !important"
);
document
document
.
getElementsByClassName
(
"container"
)[
0
]
.
getElementsByClassName
(
"container"
)[
0
]
.
setAttribute
(
.
setAttribute
(
"style"
,
"style"
,
"padding-top:"
+
conHeight
+
"px !important"
"padding-top:"
+
conHeight
+
"px !important"
);
);
}
}
}
);
});
});
},
},
closeWebView
()
{
closeWebView
()
{
...
...
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