Commit c8e40d92 by 展昭

tj

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