hookehuyr

fix 处理后退导航栏影响高度问题

......@@ -50,17 +50,17 @@ function hasScrollbar() {
return document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight);
}
onMounted(() => {
// TODO: 临时处理位置不对问题
// onMounted(() => {
// 因为微信第一次进入默认全屏,之后产生的导航栏会影响位置
if (hasScrollbar()) {
if (wxInfo().isiOS || wxInfo().isAndroid) {
location.reload()
}
}
// if (hasScrollbar()) {
// if (wxInfo().isiOS || wxInfo().isAndroid) {
// location.reload()
// $router.go(0)
// }
// }
// 背景颜色全屏
$('.client-index-page').height($(document).height());
})
// $('.client-index-page').height($(document).height());
// })
// 自定义按钮颜色样式
const styleObject1 = reactive({
......@@ -145,6 +145,7 @@ export default {
background-image: url('@images/yindao@2x.png');
background-repeat: no-repeat;
width: 100%;
height: 100vh;
background-size: 100% 85%;
position: relative;
}
......