Commit c8e40d92 by 展昭

tj

parent 045b1bc4
Showing with 4 additions and 6 deletions
<template> <template>
<div class="container"> <div class="container temp-container">
<div class="header"> <div class="header">
<tab-header :title="title" /> <tab-header :title="title" />
</div> </div>
...@@ -116,18 +116,16 @@ export default { ...@@ -116,18 +116,16 @@ export default {
setBarHeight() { setBarHeight() {
const barHeight = localStorage.getItem("barHeight"); const barHeight = localStorage.getItem("barHeight");
const conHeight = 46 + barHeight; const conHeight = 46 + barHeight;
console.log("setBarHeight barHeight=", barHeight); console.log("setBarHeight conHeight=", conHeight);
const dom = document.getElementsByClassName("iosStyle")[0]; const dom = document.getElementsByClassName("iosStyle")[0];
if (dom) { if (dom) {
dom.setAttribute("style", "padding-top:" + barHeight + "px !important"); dom.setAttribute("style", "padding-top:" + barHeight + "px !important");
} }
const dom2 = document.getElementsByClassName("container")[0]; const dom2 = document.getElementsByClassName("temp-container")[0];
console.log("dom2=", dom2); console.log("dom2=", dom2);
if (dom2) { if (dom2) {
dom2.setAttribute( dom2.setAttribute("style","padding-top:" + conHeight + "px !important"
"style",
"padding-top:" + conHeight + "px !important"
); );
} }
}, },
......
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