Commit d8f458f3 by 展昭

dom

parent 0bdd26f3
...@@ -3,15 +3,15 @@ const setBarHeight = { ...@@ -3,15 +3,15 @@ const setBarHeight = {
const barHeight = localStorage.getItem('barHeight'); const barHeight = localStorage.getItem('barHeight');
const conHeight = 46 + barHeight; const conHeight = 46 + barHeight;
console.log('mixins barHeight=', barHeight); console.log('mixins barHeight=', barHeight);
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("container")[0];
if (dom) { // if (dom) {
dom2.setAttribute("style", "padding-top:" + conHeight + "px !important"); // dom2.setAttribute("style", "padding-top:" + conHeight + "px !important");
} // }
} }
} }
......
...@@ -117,12 +117,12 @@ export default { ...@@ -117,12 +117,12 @@ export default {
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 barHeight=", barHeight);
//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("container")[0];
// if (dom) { // if (dom) {
// dom2.setAttribute( // dom2.setAttribute(
// "style", // "style",
......
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