Commit 83eb6cac authored by zhangjianguo's avatar zhangjianguo

首页高度判断

parent 9ce328f8
......@@ -167,7 +167,7 @@ export default {
this.navs = uni.getStorageSync("basedata")
? uni.getStorageSync("basedata").navbar.navs
: [];
},500)
},1000)
}
this.activeHandler();
......
......@@ -214,8 +214,14 @@ export default {
} else {
y.templateBg = `background:#${x.data.backgroundColor};`;
}
y.templateBg +=
"overflow-y:auto;height:" + this.contentHeight + "px;";
if(this.myPageData.home_pages.navs.length>1){
y.templateBg +=
"overflow-y:auto;height:" + this.contentHeight + "px;";
}else{
y.templateBg +=
"overflow-y:auto;height:" + (this.contentHeight+40) + "px;";
}
// y.templateBg +="padding-bottom:"+(this.$uiConfig.is_bang ? '88px' : '60px')+";box-sizing: border-box;";
}
});
......
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 to comment