Commit b91af5c5 by 展昭

update

parent 61d4dfe0
Showing with 10 additions and 3 deletions
...@@ -419,10 +419,15 @@ export default { ...@@ -419,10 +419,15 @@ export default {
} }
}, },
setBarHeight() { setBarHeight() {
window.WebViewJavascriptBridge.callHandler("getBarHeight", null, function( initJsBridge(() => {
window.WebViewJavascriptBridge.callHandler(
"getBarHeight",
null,
function(response) {
console.log(
"billindex getBarHeight来自 ios/android的回传数据: ",
response response
) { );
console.log("billindex getBarHeight来自 ios/android的回传数据: ", response);
if (response) { if (response) {
response = JSON.parse(response); response = JSON.parse(response);
const barHeight = response.statusBarHeight; const barHeight = response.statusBarHeight;
...@@ -443,6 +448,8 @@ export default { ...@@ -443,6 +448,8 @@ export default {
"padding-top:" + conHeight + "px !important" "padding-top:" + conHeight + "px !important"
); );
} }
}
);
}); });
}, },
closeWebView() { closeWebView() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment