Commit 17582857 by 展昭

Merge branch 'master' into dev

parents 317feb7a 9d0f7423
Showing with 6 additions and 1 deletions
...@@ -420,11 +420,15 @@ export default { ...@@ -420,11 +420,15 @@ export default {
}, },
getBarHeight() { getBarHeight() {
try { try {
initJsBridge(() => {
window.WebViewJavascriptBridge.callHandler( window.WebViewJavascriptBridge.callHandler(
"getBarHeight", "getBarHeight",
null, null,
function(response) { function(response) {
console.log("getBarHeight来自 ios/android的回传数据: ", response); console.log(
"getBarHeight来自 ios/android的回传数据: ",
response
);
if (response) { if (response) {
const barHeight = response.statusBarHeight; const barHeight = response.statusBarHeight;
const conHeight = 46 + barHeight; const conHeight = 46 + barHeight;
...@@ -444,6 +448,7 @@ export default { ...@@ -444,6 +448,7 @@ export default {
} }
} }
); );
});
} catch (err) { } catch (err) {
console.log("getBarHeight is error,err=", err); console.log("getBarHeight is error,err=", err);
} }
......
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