完成404错误页面
This commit is contained in:
parent
a78c86150d
commit
be87df7d69
|
@ -8,7 +8,7 @@ body {
|
|||
font-size: 14px;
|
||||
line-height: 1.15;
|
||||
color: #333;
|
||||
background-color: #f0f0f0;
|
||||
background-color: #fff;
|
||||
}
|
||||
*,
|
||||
:focus {
|
||||
|
@ -51,6 +51,7 @@ img {
|
|||
.site-wrapper {
|
||||
position: relative;
|
||||
min-width: 1180px;
|
||||
background: #f0f0f0;
|
||||
}
|
||||
|
||||
/* site-sidebar-collapse */
|
||||
|
|
|
@ -1,8 +1,61 @@
|
|||
<template>
|
||||
<div>404</div>
|
||||
<div class="site-wrapper site-page--not-found">
|
||||
<div class="site-content__wrapper">
|
||||
<div class="site-content">
|
||||
<h2 class="not-found-title">400</h2>
|
||||
<p class="not-found-desc">抱歉!您访问的页面<em>失联</em>啦 ...</p>
|
||||
<el-button @click="$router.go(-1)">返回上一页</el-button>
|
||||
<el-button type="primary" class="not-found-btn-gohome" @click="$router.push({ name: 'home' })">进入首页</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.site-wrapper.site-page--not-found {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background-color: #fff;
|
||||
overflow: hidden;
|
||||
.site-content__wrapper {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
.site-content {
|
||||
position: fixed;
|
||||
top: 15%;
|
||||
left: 50%;
|
||||
z-index: 2;
|
||||
padding: 30px;
|
||||
text-align: center;
|
||||
transform: translate(-50%, 0);
|
||||
}
|
||||
.not-found-title {
|
||||
margin: 20px 0 15px;
|
||||
font-size: 10em;
|
||||
font-weight: 400;
|
||||
color: rgb(55, 71, 79);
|
||||
}
|
||||
.not-found-desc {
|
||||
margin: 0 0 30px;
|
||||
font-size: 26px;
|
||||
text-transform: uppercase;
|
||||
color: rgb(118, 131, 143);
|
||||
> em {
|
||||
font-style: normal;
|
||||
color: #ee8145;
|
||||
}
|
||||
}
|
||||
.not-found-btn-gohome {
|
||||
margin-left: 30px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -173,4 +173,3 @@
|
|||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
;(function () {
|
||||
window.SITE_CONFIG = {}
|
||||
// api接口请求地址
|
||||
window.SITE_CONFIG.baseUrl = '//demo.renren.io/renren-fast/'
|
||||
window.SITE_CONFIG.baseUrl = '//dev.demo.renren.io/renren-fast/'
|
||||
|
||||
// 嵌套iframe地址
|
||||
window.SITE_CONFIG.nestIframeUrl = '//demo.renren.io/renren-fast/'
|
||||
|
|
Loading…
Reference in New Issue