zjf
2023-02-24 2126cd24b8a0174ac0597340917c0a4595f72254
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
<template>
  <div class="wrapper">
    <div class="http404-container">
      <img
        class="pic"
        src="@/assets/404_images/404.png"
        alt="">
      <div class="title">抱歉,您要访问的页面丢失了</div>
      <div class="desc">请检查您输入的网址是否正确,请点击以下按钮返回首页</div>
      <div
        class="btn"
        @click="handleBack">
        返回首页
      </div>
    </div>
 
  </div>
</template>
 
<script>
export default {
  name: 'Page404',
  methods: {
    handleBack () {
      this.$router.push('/')
    }
  }
}
</script>
 
<style lang="less" scoped>
.wrapper {
  position: relative;
}
 
.http404-container {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  .pic {
    width: 600px;
    display: block;
    margin: 0 auto;
  }
  .title {
    width: 100%;
    text-align: center;
    font-size: 24px;
    color: #111;
    line-height: 38px;
    margin-top: 77px;
  }
  .desc {
    width: 100%;
    font-size: 18px;
    color: #777;
    text-align: center;
    line-height: 38px;
    margin-top: 8px;
  }
  .btn {
    width: 125px;
    height: 44px;
    text-align: center;
    font-size: 14px;
    color: #fefefe;
    line-height: 44px;
    background: #4D88FF;
    border-radius: 6px;
    margin: 50px auto 0;
    cursor: pointer;
  }
}
 
@media screen and (max-width: 1500px) {
  .http404-container {
    .pic {
      width: 500px;
    }
    .title {
      margin-top: 50px;
    }
    .btn {
      margin-top: 40px;
    }
  }
}
</style>