Commit 4b24982b by 展昭

update

parent 3f4f9c36
Showing with 17 additions and 15 deletions
...@@ -422,22 +422,24 @@ export default { ...@@ -422,22 +422,24 @@ export default {
"getBarHeight", "getBarHeight",
null, null,
function(response) { function(response) {
console.log("来自 ios/android的回传数据: ", response); console.log("getBarHeight来自 ios/android的回传数据: ", response);
const barHeight = response; if (response) {
const conHeight = 46 + response; const barHeight = response;
document const conHeight = 46 + response;
.getElementsByClassName("iosStyle")[0] document
.setAttribute( .getElementsByClassName("iosStyle")[0]
"style", .setAttribute(
"padding-top:" + barHeight + "px !important" "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"
); );
}
} }
); );
} catch (err) { } catch (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