<template>
|
<div>
|
<Header></Header>
|
<div class="center">
|
<router-view />
|
</div>
|
<Footer v-if="isShow"></Footer>
|
|
<div class="information">
|
<div>
|
<el-popover placement="left" width="150" trigger="hover">
|
<img src="@/img/weixin.jpg" alt="">
|
<img class="img" src="@/img/wei.png" slot="reference" alt style="margin-right: 0.16rem;" />
|
</el-popover>
|
<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2549738898&site=qq&menu=yes">
|
<img class="img" src="@/img/QQ.png" alt />
|
</a>
|
<a class="tel" href="tel:400-189-1819">
|
<!-- <a class="tel" href="javascript:;" v-on:click="tel"> -->
|
<img class="img" src="@/img/tel1.png" alt />
|
</a>
|
</div>
|
</div>
|
<el-backtop :bottom="40" >
|
<img class="return-top" src="@/img/top.png" alt="">
|
</el-backtop>
|
</div>
|
</template>
|
|
<script>
|
export default {
|
data() {
|
return {
|
isShow: true
|
}
|
},
|
methods: {
|
tel () {
|
this.$confirm('确认拨打电话 400-189-1819 吗?', '', {
|
confirmButtonText: '确定',
|
cancelButtonText: '取消'
|
}).then(() => {
|
window.location.href = 'tel://400-189-1819'
|
}).catch(() => {
|
|
})
|
}
|
},
|
watch:{ //监听路由
|
$route(to, from) {
|
if (to.path === '/postDetails') {
|
this.isShow = false
|
}
|
}
|
}
|
}
|
</script>
|
|
<style lang="less" scoped>
|
.center {
|
min-height: 60vh;
|
}
|
.information {
|
cursor: pointer;
|
position: fixed;
|
bottom: 1.5rem;
|
right: 0.4rem;
|
width: 0.4rem;
|
height: 0.4rem;
|
z-index: 1005;
|
.img {
|
width: 0.42rem;
|
height: 0.42rem;
|
background: #00A5E3;
|
border-radius: 0.42rem;
|
margin-top: 0.05rem;
|
border: 1px solid #00A5E3;
|
}
|
.tel {
|
display: none;
|
}
|
}
|
.el-backtop {
|
z-index: 1005;
|
.return-top {
|
border-radius: 40px;
|
transform: scale(1.04);
|
}
|
}
|
|
@media (max-width: 750px) and (min-width: 0) {
|
.el-backtop {
|
width: 0.6rem;
|
height: 0.6rem;
|
right: 0.4rem !important;
|
}
|
|
.information {
|
width: 0.6rem;
|
height: 0.6rem;
|
bottom: 2.8rem;
|
z-index: 100;
|
|
.img {
|
width: 0.6rem;
|
height: 0.6rem;
|
margin-top: 0.05rem;
|
}
|
.tel {
|
display: inline-block;
|
}
|
}
|
}
|
</style>
|