mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-02-06 09:05:54 +08:00
IM
This commit is contained in:
103
im/src/views/other/404.vue
Normal file
103
im/src/views/other/404.vue
Normal file
@@ -0,0 +1,103 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="not-found">
|
||||
<div class="not-found-left">
|
||||
<SvgNotFount class="svg-notfount" />
|
||||
</div>
|
||||
<div class="not-found-right">
|
||||
<h1>404</h1>
|
||||
<p>抱歉,你访问的页面不存在或仍在开发中...</p>
|
||||
<div>
|
||||
<el-button type="primary" size="small" @click="toHome">
|
||||
返回首页 ({{ second }}S)
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { SvgNotFount } from '@/core/icons'
|
||||
|
||||
export default {
|
||||
name: 'NotFoundPage',
|
||||
components: {
|
||||
SvgNotFount,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
second: 10,
|
||||
setInterval: null,
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.setInterval = setInterval(() => {
|
||||
this.second--
|
||||
if (this.second == 0) {
|
||||
clearInterval(this.setInterval)
|
||||
this.toHome()
|
||||
}
|
||||
}, 1000)
|
||||
},
|
||||
destroyed() {
|
||||
clearInterval(this.setInterval)
|
||||
},
|
||||
methods: {
|
||||
toHome() {
|
||||
this.$router.push({
|
||||
path: '/',
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
.not-found {
|
||||
position: fixed;
|
||||
width: 600px;
|
||||
height: 300px;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
|
||||
.not-found-left {
|
||||
width: 300px;
|
||||
height: 300px;
|
||||
float: left;
|
||||
|
||||
.svg-notfount {
|
||||
width: 300px;
|
||||
height: 300px;
|
||||
}
|
||||
}
|
||||
|
||||
.not-found-right {
|
||||
width: 300px;
|
||||
height: 300px;
|
||||
float: left;
|
||||
|
||||
h1 {
|
||||
margin-bottom: 24px;
|
||||
color: #434e59;
|
||||
font-weight: 600;
|
||||
font-size: 72px;
|
||||
line-height: 72px;
|
||||
padding-left: 30px;
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
p {
|
||||
padding-left: 30px;
|
||||
margin-bottom: 16px;
|
||||
color: rgba(0, 0, 0, 0.45);
|
||||
font-size: 20px;
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
div {
|
||||
padding-left: 30px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user