king
2019-07-16 ed58afaaa564c54d22a42593265addce08bd5850
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
<template>
    <div>
        <Header></Header>
        <div class="center">
            <router-view />
        </div>
        <Footer v-if="isShow"></Footer>
 
        <div class="information" @click="jump">
            <img src="../../img/information.png" alt="">
        </div>
        <el-backtop :bottom="40">
            <img src="../../img/top.png" alt="">
        </el-backtop>
    </div>
</template>
 
<script>
    export default {
        data() {
            return {
                isShow:true
            }
        },
        methods: {
            jump() {
                this.$router.push('companyProfile#anchor-3')
            }
        },
        watch:{ //监听路由
            $route(to, from) {
                if (to.path === '/postDetails') {
                    this.isShow = false
                }
            }
        }
    }
</script>
 
<style lang="less" scoped>
    .information {
        cursor: pointer;
        position: fixed;
        bottom: 1.2rem;
        right: 0.4rem;
        width: 0.4rem;
        height: 0.4rem;
 
        img {
            width: 0.42rem;
            height: 0.42rem;
            position: fixed;
            bottom: 1.2rem;
            right: 0.4rem;
        }
    }
 
    @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: 1.8rem;
            z-index: 9999;
 
            img {
                width: 0.6rem;
                height: 0.6rem;
                bottom: 1.8rem;
            }
        }
    }
</style>