Authored by zhangxiaoru

error

... ... @@ -15,7 +15,7 @@ exports.notFound = () => {
}
headerModel.requestHeaderData().then((result) => {
return res.render('error/404', {
return res.display('error/404', {
module: 'common',
page: 'error',
title: '页面不存在 | Yoho!Buy有货 | 潮流购物逛不停',
... ... @@ -43,7 +43,7 @@ exports.serverError = () => {
}
const renderErrPage = (result) => {
res.render('error/500', {
res.display('error/500', {
module: 'common',
page: 'error',
err: err,
... ...
... ... @@ -2,7 +2,7 @@
<div class="err-500-img"></div>
<div class="tips">
<span class="tip">哎呀,您访问的页面走丢了...</span>
<span class="tips-english">505 HTTP Version Not Supported</span>
<span class="tips-english">500 HTTP Version Not Supported</span>
<span class="">建议您:<a href="javascript:location.reload()">刷新该网页/ </a> 升级您的Web服务器软件</span>
</div>
</div>
\ No newline at end of file
... ...
.error{
.error {
overflow: hidden;
margin: 85px 0 515px 0;
margin: 85px 0 515px;
.err-404-img {
width: 244px;
height: 105px;
background: resolve('404.png') no-repeat center center;
background: resolve('layout/404.png') no-repeat center center;
margin: 0 auto;
}
.tips {
width: 100%;
display: block;
margin: 200px auto;
margin: 400px auto;
text-align: center;
span {
display: block;
/* b {
cursor: pointer;
}*/
}
.tip {
height: 30px;
line-height: 30px;
font-size: 20px;
font-size: 20px;
}
}
... ... @@ -39,7 +35,7 @@
.err-500-img {
width: 244px;
height: 105px;
background: resolve('500.png') no-repeat center center;
background: resolve('layout/500.png') no-repeat center center;
margin: 0 auto;
}
}
... ...