king
2023-12-01 836b9c80161cebbc03c163228be1cff15dd37d17
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<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>