|
|
@ -50,7 +50,7 @@ |
|
|
|
</el-popover> |
|
|
|
</el-popover> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<img class="menu-icon" src="@/assets/images/menu.svg" alt="" @click.stop="updateType(!modelType)"> |
|
|
|
<img class="menu-icon" :src="menuIcon" alt="" @click.stop="updateType(!modelType)"> |
|
|
|
<div class="contentBox" v-show="modelType"> |
|
|
|
<div class="contentBox" v-show="modelType"> |
|
|
|
<navbar ref="nav" :isHome.sync="isHome" @updateModelType="updateType"></navbar> |
|
|
|
<navbar ref="nav" :isHome.sync="isHome" @updateModelType="updateType"></navbar> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -72,6 +72,7 @@ export default { |
|
|
|
data () { |
|
|
|
data () { |
|
|
|
return { |
|
|
|
return { |
|
|
|
Util, |
|
|
|
Util, |
|
|
|
|
|
|
|
menuIcon: require(location.href.includes('eduvessel') ? '@/assets/images/menu-gray.svg' : '@/assets/images/menu.svg'), |
|
|
|
isHome: true, |
|
|
|
isHome: true, |
|
|
|
isEstate: false, |
|
|
|
isEstate: false, |
|
|
|
isIasf: false, |
|
|
|
isIasf: false, |
|
|
@ -167,7 +168,7 @@ export default { |
|
|
|
const h = this.height |
|
|
|
const h = this.height |
|
|
|
let scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop |
|
|
|
let scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop |
|
|
|
// const rule = scrollTop > h |
|
|
|
// const rule = scrollTop > h |
|
|
|
const rule = scrollTop > 120 |
|
|
|
const rule = scrollTop > 10 |
|
|
|
if (this.isHome == rule) { |
|
|
|
if (this.isHome == rule) { |
|
|
|
if (this.isHome != !(rule)) this.navShow = false |
|
|
|
if (this.isHome != !(rule)) this.navShow = false |
|
|
|
this.isHome = !(rule) |
|
|
|
this.isHome = !(rule) |
|
|
|