|
|
|
@ -51,8 +51,11 @@ |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<img class="menu-icon" :src="menuIcon" alt="" @click.stop="updateType(!modelType)"> |
|
|
|
|
<div class="contentBox" v-show="modelType"> |
|
|
|
|
<navbar ref="nav" :isHome.sync="isHome" @updateModelType="updateType"></navbar> |
|
|
|
|
<div v-show="modelType"> |
|
|
|
|
<div class="mobile-mask"></div> |
|
|
|
|
<div class="mobile-nav"> |
|
|
|
|
<navbar ref="nav" :isHome.sync="isHome" @updateModelType="updateType"></navbar> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
@ -76,7 +79,6 @@ export default { |
|
|
|
|
isHome: true, |
|
|
|
|
isEstate: false, |
|
|
|
|
isIasf: false, |
|
|
|
|
showSearch: false, |
|
|
|
|
height: 907, |
|
|
|
|
title: '', |
|
|
|
|
searchTimer: null, |
|
|
|
@ -130,7 +132,8 @@ export default { |
|
|
|
|
window.addEventListener('scroll', this.handleScroll) // 监听页面滚动 |
|
|
|
|
document.body.addEventListener('click', e => { |
|
|
|
|
e.stopPropagation() |
|
|
|
|
this.modelType = false |
|
|
|
|
console.log("🚀 ~ mounted ~ e:", !e.target.className.includes('el-submenu__icon-arrow')) |
|
|
|
|
if (!e.target.className.includes('el-submenu__icon-arrow')) this.modelType = false |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
@ -348,7 +351,16 @@ $height: 90px; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.contentBox { |
|
|
|
|
.mobile-mask { |
|
|
|
|
position: absolute; |
|
|
|
|
top: 90px; |
|
|
|
|
left: 0; |
|
|
|
|
width: 100vw; |
|
|
|
|
height: 100vh; |
|
|
|
|
background-color: rgba(0, 0, 0, .4); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.mobile-nav { |
|
|
|
|
width: 100%; |
|
|
|
|
position: absolute; |
|
|
|
|
top: 90px; |
|
|
|
|