Skip to content

Commit 22f99cf

Browse files
committed
404
1 parent f7b1e20 commit 22f99cf

File tree

5 files changed

+63
-93
lines changed

5 files changed

+63
-93
lines changed

.eslintrc.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,10 @@ module.exports = {
182182
'array-bracket-spacing': [2, 'never']
183183
},
184184
parserOptions: {
185-
parser: 'babel-eslint'
185+
parser: 'babel-eslint',
186+
"ecmaFeatures": {
187+
"legacyDecorators": true
188+
}
186189
},
187190
globals: {
188191
location: true,

src/assets/images/404.png

95.8 KB
Loading

src/assets/images/404_cloud.png

4.65 KB
Loading

src/router/index.js

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -61,23 +61,28 @@ export const constantRoutes = [
6161
}]
6262
},
6363
{
64-
hidden: true,
65-
path: '/404',
66-
component: r => require.ensure([], () => r(require('@/views/layout'))),
67-
redirect: '/404/index',
68-
name: '404',
69-
meta: {
70-
firstChildName: 'dashBoardIndex'
71-
},
72-
children: [{
73-
path: 'index',
74-
name: '404',
75-
component: r => require.ensure([], () => r(require('@/views/404'))),
76-
meta: {
77-
title: '404'
78-
}
79-
}]
64+
65+
path: '*', hidden: true, name: '404', component: r => require.ensure([], () => r(require('@/views/404')))
66+
8067
}
68+
// {
69+
// hidden: true,
70+
// path: '/404',
71+
// component: r => require.ensure([], () => r(require('@/views/layout'))),
72+
// redirect: '/404/index',
73+
// name: '404',
74+
// meta: {
75+
// firstChildName: 'dashBoardIndex'
76+
// },
77+
// children: [{
78+
// path: 'index',
79+
// name: '404',
80+
// component: r => require.ensure([], () => r(require('@/views/404'))),
81+
// meta: {
82+
// title: '404'
83+
// }
84+
// }]
85+
// }
8186

8287
]
8388

src/views/404/index.vue

Lines changed: 38 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,86 +1,48 @@
11
<template>
2-
<div class="container">
3-
<div class="screen">
4-
<ul>
5-
<li />
6-
<li />
7-
<li />
8-
<li />
9-
<li />
10-
<li />
11-
<li />
12-
<li />
13-
<li />
14-
<li />
15-
<li />
16-
<li />
17-
<li />
18-
<li />
19-
<li />
20-
<li />
21-
<li />
22-
<li />
23-
</ul>
2+
<div style="background:#f0f2f5;margin-top: -20px;">
3+
<div class="wscn-http404">
4+
<div
5+
class="pic-404"
6+
style="text-align:center;margin-top:150px"
7+
>
8+
<img
9+
:src="img404"
10+
class="pic-404__parent"
11+
alt="404"
12+
>
13+
<!-- <img
14+
:src="img404cloud"
15+
class="pic-404__child left"
16+
alt="404"
17+
>
18+
<img
19+
:src="img404cloud"
20+
class="pic-404__child mid"
21+
alt="404"
22+
>
23+
<img
24+
:src="img404cloud"
25+
class="pic-404__child right"
26+
alt="404"
27+
> -->
28+
</div>
2429
</div>
2530
</div>
2631
</template>
2732

28-
<script>
29-
export default {
33+
<script lang="ts">
34+
import { Emit, Vue, Component } from 'vue-property-decorator'
3035
31-
}
32-
</script>
36+
const img404 = require('@/assets/images/404.png')
37+
const img404cloud = require('@/assets/images/404_cloud.png')
3338
34-
<style scoped>
35-
.container{
39+
@Component
40+
export default class UpdatePwd extends Vue {
41+
img404: any = img404;
3642
37-
}
38-
.screen{
39-
position:relative;
40-
height:100px;
41-
width:100px;
42-
overflow:hidden;
43-
background:#301353;
44-
margin: 0 auto;
45-
margin-top: 100px;
46-
/* border: 10px solid #000;
47-
border-radius: 10px; */
48-
/* padding: 10px */
49-
}
50-
.screen ul{
51-
position: absolute;
52-
list-style:none;
53-
top: 0;
54-
padding:0;
55-
margin: 0;
56-
width:100px;
57-
animation: codeMove 5s linear infinite;
58-
}
59-
.screen li {
60-
position: relative;
61-
height: 5px;
62-
margin: 0 0 5px 0;
63-
border-radius: 5px;
64-
width:60px;
65-
background:#ffb023;
66-
}
43+
img404cloud: any = img404cloud;
6744
68-
.screen li:nth-child(2n+0){
69-
background:#ff4766;
70-
width:50%
71-
}
72-
.screen li:nth-child(3n+0){
73-
background:#29b97d;
74-
width:70%
75-
}
76-
.screen .title{
77-
width:100%;
78-
height:20px;
79-
background:#000000;
80-
}
81-
@keyframes codeMove{
82-
100%{
83-
top: -60%
45+
message: string = '特朗普说这个页面你不能进......';
8446
}
85-
}
86-
</style>
47+
</script>
48+

0 commit comments

Comments
 (0)