移动端样式修复

master
yujialong 3 months ago
parent 42ec27d6e7
commit fdbaf562c3
  1. 4
      src/components/menuTree/index.vue
  2. 20
      src/layouts/header/index.vue
  3. 4
      src/layouts/home/index.vue
  4. 1
      src/layouts/navbar/index.vue
  5. 5
      src/pages/column/index.vue
  6. 1
      src/pages/home/index.vue
  7. 13
      src/pages/singlePage/index.vue
  8. 2
      src/setting.js

@ -81,6 +81,10 @@ export default {
line-height: 40px; line-height: 40px;
font-size: 1rem; font-size: 1rem;
color: black !important; color: black !important;
.el-submenu__icon-arrow {
font-size: 16px;
}
} }
} }
} }

@ -51,10 +51,13 @@
</div> </div>
<img class="menu-icon" :src="menuIcon" alt="" @click.stop="updateType(!modelType)"> <img class="menu-icon" :src="menuIcon" alt="" @click.stop="updateType(!modelType)">
<div class="contentBox" v-show="modelType"> <div v-show="modelType">
<div class="mobile-mask"></div>
<div class="mobile-nav">
<navbar ref="nav" :isHome.sync="isHome" @updateModelType="updateType"></navbar> <navbar ref="nav" :isHome.sync="isHome" @updateModelType="updateType"></navbar>
</div> </div>
</div> </div>
</div>
<el-dialog title="" :visible.sync="toolVisible" center :width="$store.getters.getModelType ? '500px' : '100%'" <el-dialog title="" :visible.sync="toolVisible" center :width="$store.getters.getModelType ? '500px' : '100%'"
append-to-body :top="qrcodeTop" lock-scroll custom-class="qrcode-dia"> append-to-body :top="qrcodeTop" lock-scroll custom-class="qrcode-dia">
@ -76,7 +79,6 @@ export default {
isHome: true, isHome: true,
isEstate: false, isEstate: false,
isIasf: false, isIasf: false,
showSearch: false,
height: 907, height: 907,
title: '', title: '',
searchTimer: null, searchTimer: null,
@ -130,7 +132,8 @@ export default {
window.addEventListener('scroll', this.handleScroll) // window.addEventListener('scroll', this.handleScroll) //
document.body.addEventListener('click', e => { document.body.addEventListener('click', e => {
e.stopPropagation() 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: { 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%; width: 100%;
position: absolute; position: absolute;
top: 90px; top: 90px;

@ -34,10 +34,6 @@ export default {
}, },
mounted () { mounted () {
this.$route.query.siteId && this.setSite(this.$route.query.siteId) this.$route.query.siteId && this.setSite(this.$route.query.siteId)
document.body.onclick = e => {
e.stopPropagation()
this.$refs.header.showSearch = false
}
this.getSeo() this.getSeo()
}, },

@ -152,7 +152,6 @@ export default {
this.getPath(this.otherMenus, id) this.getPath(this.otherMenus, id)
this.getPath(this.menus, id) this.getPath(this.menus, id)
this.columnTo(this.toItem) this.columnTo(this.toItem)
this.$parent.showSearch = false
this.$emit('updateModelType', false) this.$emit('updateModelType', false)
} }
} }

@ -1427,6 +1427,11 @@ export default {
margin-right: 0; margin-right: 0;
} }
.detail {
max-width: 100%;
margin-top: 20px;
}
.articles { .articles {
li { li {
.leftBox { .leftBox {

@ -599,7 +599,6 @@ export default {
img { img {
height: 15rem; height: 15rem;
object-fit: cover;
} }
} }
} }

@ -13,7 +13,7 @@
您的浏览器不支持 video 标签 您的浏览器不支持 video 标签
</video> </video>
<div class="text-wrap"> <div class="text-wrap">
<div class="qrcodes fadeInUp"> <div v-if="item.weixinPic1 || item.weixinPic2" class="qrcodes fadeInUp">
<div v-if="item.weixinPic1" class="qrcode"> <div v-if="item.weixinPic1" class="qrcode">
<img width="103" :src="item.weixinPic1" alt=""> <img width="103" :src="item.weixinPic1" alt="">
<p v-if="item.weixinText1" class="text">{{ item.weixinText1 }}</p> <p v-if="item.weixinText1" class="text">{{ item.weixinText1 }}</p>
@ -175,7 +175,7 @@ export default {
.pic { .pic {
height: 100%; height: 100%;
background-position: center center; background-position: center center;
background-size: 100% auto; background-size: cover;
background-repeat: no-repeat; background-repeat: no-repeat;
} }
@ -395,4 +395,13 @@ export default {
} }
} }
} }
@media (max-width: 1200px) {
.carousel {
.text-wrap {
left: 0;
padding: 0 20px;
}
}
}
</style> </style>

@ -7,7 +7,7 @@ const isGta = url.includes('139.159.254.212'); // 国泰安
let host = `${location.origin}/` let host = `${location.origin}/`
if (isDev) { if (isDev) {
host = 'http://192.168.31.217:10000/' host = 'http://192.168.31.217:10000/'
host = 'https://huorantech.com' // host = 'https://huorantech.com'
} }
const Setting = { const Setting = {

Loading…
Cancel
Save