错误处理页面进行更新
This commit is contained in:
@@ -21,7 +21,7 @@ def get_captcha():
|
|||||||
@bp.get('/login')
|
@bp.get('/login')
|
||||||
def login():
|
def login():
|
||||||
if current_user.is_authenticated:
|
if current_user.is_authenticated:
|
||||||
return redirect(url_for('system.index'))
|
return redirect(url_for('index.index'))
|
||||||
return render_template('system/login.html')
|
return render_template('system/login.html')
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
}
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title></title>
|
<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"/>
|
<link href="{{ url_for('static', filename='system/admin/css/other/error.css') }}" rel="stylesheet"/>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
<div class="content-r">
|
<div class="content-r">
|
||||||
<h1>403</h1>
|
<h1>403</h1>
|
||||||
<p>抱歉,你无权访问该页面</p>
|
<p>抱歉,你无权访问该页面</p>
|
||||||
<button class="pear-btn pear-btn-primary">返回首页</button>
|
<button class="layui-btn layui-btn-primary">返回首页</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title></title>
|
<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"/>
|
<link href="{{ url_for('static', filename='system/admin/css/other/error.css') }}" rel="stylesheet"/>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
<div class="content-r">
|
<div class="content-r">
|
||||||
<h1>404</h1>
|
<h1>404</h1>
|
||||||
<p>抱歉,你访问的页面不存在或仍在开发中</p>
|
<p>抱歉,你访问的页面不存在或仍在开发中</p>
|
||||||
<button class="pear-btn pear-btn-primary">返回首页</button>
|
<button class="layui-btn layui-btn-primary">返回首页</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title></title>
|
<title>500</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"/>
|
<link href="{{ url_for('static', filename='system/admin/css/other/error.css') }}" rel="stylesheet"/>
|
||||||
</head>
|
</head>
|
||||||
<body>admin/
|
<body>admin/
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
<div class="content-r">
|
<div class="content-r">
|
||||||
<h1>500</h1>
|
<h1>500</h1>
|
||||||
<p>抱歉,服务器出错了</p>
|
<p>抱歉,服务器出错了</p>
|
||||||
<button class="pear-btn pear-btn-primary">返回首页</button>
|
<button class="layui-btn layui-btn-primary">返回首页</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user