Commit 17582857 by 展昭

Merge branch 'master' into dev

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