错误处理页面进行更新

This commit is contained in:
wojiaoyishang
2025-01-24 19:13:41 +08:00
parent 3c4377915b
commit 2ee703d2eb
5 changed files with 84 additions and 8 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ def get_captcha():
@bp.get('/login')
def login():
if current_user.is_authenticated:
return redirect(url_for('system.index'))
return redirect(url_for('index.index'))
return render_template('system/login.html')
+76
View File
@@ -0,0 +1,76 @@
* {
padding: 0;
margin: 0;
font-size: 0.38rem;
}
ul {
list-style: none;
}
a {
text-decoration: none;
-webkit-tap-highlight-color: transparent
}
.clearfix:after {
content: '';
width: 0;
height: 0;
display: block;
clear: both;
}
html {
height: 100%;
width: 100%;
}
body {
font-size: 0.28rem;
height: 100%;
width: 100%;
display: flex;
flex-direction: column;
position: relative;
background-color: white !important;
}
.content {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 100%;
text-align: center;
}
.content>img {
height: 300px;
max-width: 370px;
margin-right: 180px;
}
.content>* {
display: inline-block;
}
.content-r {
vertical-align: top;
}
.content-r>h1 {
font-size: 72px;
color: #434e59;
margin-bottom: 24px;
font-weight: 600;
}
.content-r>p {
font-size: 20px;
color: rgba(0, 0, 0, .45);
margin-bottom: 16px;
}
button {
margin-top: 20px;
}
+2 -2
View File
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<title></title>
<link href="{{ url_for('static', filename='system/component/pear/css/pear.css') }}" rel="stylesheet"/>
{% include 'system/common/header.html' %}
<link href="{{ url_for('static', filename='system/admin/css/other/error.css') }}" rel="stylesheet"/>
</head>
<body>
@@ -12,7 +12,7 @@
<div class="content-r">
<h1>403</h1>
<p>抱歉,你无权访问该页面</p>
<button class="pear-btn pear-btn-primary">返回首页</button>
<button class="layui-btn layui-btn-primary">返回首页</button>
</div>
</div>
</body>
+2 -2
View File
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<title></title>
<link href="{{ url_for('static', filename='system/component/pear/css/pear.css') }}" rel="stylesheet"/>
{% include 'system/common/header.html' %}
<link href="{{ url_for('static', filename='system/admin/css/other/error.css') }}" rel="stylesheet"/>
</head>
<body>
@@ -12,7 +12,7 @@
<div class="content-r">
<h1>404</h1>
<p>抱歉,你访问的页面不存在或仍在开发中</p>
<button class="pear-btn pear-btn-primary">返回首页</button>
<button class="layui-btn layui-btn-primary">返回首页</button>
</div>
</div>
</body>
+3 -3
View File
@@ -2,8 +2,8 @@
<html>
<head>
<meta charset="utf-8">
<title></title>
<link href="{{ url_for('static', filename='system/component/pear/css/pear.css') }}" rel="stylesheet"/>
<title>500</title>
{% include 'system/common/header.html' %}
<link href="{{ url_for('static', filename='system/admin/css/other/error.css') }}" rel="stylesheet"/>
</head>
<body>admin/
@@ -12,7 +12,7 @@
<div class="content-r">
<h1>500</h1>
<p>抱歉,服务器出错了</p>
<button class="pear-btn pear-btn-primary">返回首页</button>
<button class="layui-btn layui-btn-primary">返回首页</button>
</div>
</div>
</body>