调整登录页面
This commit is contained in:
@@ -8,17 +8,21 @@
|
||||
<link rel="icon" href="/static/favicon.ico" type="image/x-icon">
|
||||
<link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon">
|
||||
<!-- Element UI CSS -->
|
||||
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
|
||||
<link rel="stylesheet" href="/static/css/element-ui/theme-chalk/index.min.css">
|
||||
<!-- 图表库 -->
|
||||
<script src="/static/js/chart.js"></script>
|
||||
<!-- Vue.js -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
|
||||
<script src="/static/js/vue.js"></script>
|
||||
<!-- Element UI JS -->
|
||||
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
|
||||
<script src="/static/js/element-ui/index.min.js"></script>
|
||||
<!-- Axios -->
|
||||
<script src="/static/js/axios.min.js"></script>
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
|
||||
background-color: #f5f7fa;
|
||||
background: linear-gradient(135deg, #006af5 0%, #4f8cff 100%);
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
@@ -26,46 +30,105 @@
|
||||
}
|
||||
.login-container {
|
||||
width: 400px;
|
||||
padding: 30px;
|
||||
background-color: white;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
||||
padding: 40px 36px 32px 36px;
|
||||
background-color: #fff;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 6px 32px 0 rgba(0, 106, 245, 0.15);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
animation: fadeIn 0.8s;
|
||||
}
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; transform: translateY(-30px);}
|
||||
to { opacity: 1; transform: translateY(0);}
|
||||
}
|
||||
.login-title {
|
||||
text-align: center;
|
||||
margin-bottom: 30px;
|
||||
color: #409EFF;
|
||||
margin-bottom: 32px;
|
||||
color: #006af5;
|
||||
font-size: 28px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 2px;
|
||||
}
|
||||
.login-form {
|
||||
margin-top: 20px;
|
||||
width: 100%;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.el-input__inner {
|
||||
border-radius: 6px;
|
||||
border: 1.5px solid #e6e6e6;
|
||||
transition: border-color 0.2s;
|
||||
}
|
||||
.el-input__inner:focus {
|
||||
border-color: #006af5;
|
||||
box-shadow: 0 0 0 2px rgba(0,106,245,0.08);
|
||||
}
|
||||
.el-form-item__content {
|
||||
margin-left: 0 !important;
|
||||
}
|
||||
.login-button {
|
||||
width: 100%;
|
||||
margin-top: 20px;
|
||||
margin-top: 10px;
|
||||
background: linear-gradient(90deg, #006af5 0%, #4f8cff 100%);
|
||||
border: none;
|
||||
color: #fff;
|
||||
font-weight: 600;
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 2px 8px 0 rgba(0,106,245,0.10);
|
||||
transition: background 0.2s;
|
||||
}
|
||||
.login-button:hover, .login-button:focus {
|
||||
background: linear-gradient(90deg, #0056c7 0%, #3577e5 100%);
|
||||
}
|
||||
.error-message {
|
||||
color: #F56C6C;
|
||||
margin-top: 10px;
|
||||
margin-top: 18px;
|
||||
text-align: center;
|
||||
font-size: 15px;
|
||||
}
|
||||
.login-logo {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
margin-bottom: 18px;
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 2px 8px 0 rgba(0,106,245,0.10);
|
||||
background: #f5f7fa;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.login-footer {
|
||||
margin-top: 28px;
|
||||
text-align: center;
|
||||
color: #b0b8c1;
|
||||
font-size: 13px;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
<div class="login-container">
|
||||
<div class="login-logo">
|
||||
<img src="/static/logo.png" alt="Logo" style="width:38px;height:38px;">
|
||||
</div>
|
||||
<h2 class="login-title">WeChatRobot管理后台</h2>
|
||||
<el-form class="login-form" ref="loginForm" :model="loginForm" :rules="rules" label-width="0px">
|
||||
<el-form-item prop="username">
|
||||
<el-input v-model="loginForm.username" prefix-icon="el-icon-user" placeholder="用户名"></el-input>
|
||||
<el-input v-model="loginForm.username" prefix-icon="el-icon-user" placeholder="用户名" size="large"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item prop="password">
|
||||
<el-input v-model="loginForm.password" prefix-icon="el-icon-lock" placeholder="密码" type="password" @keyup.enter.native="submitForm"></el-input>
|
||||
<el-input v-model="loginForm.password" prefix-icon="el-icon-lock" placeholder="密码" type="password" size="large" @keyup.enter.native="submitForm"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" class="login-button" @click="submitForm" :loading="loading">登录</el-button>
|
||||
<el-button type="primary" class="login-button" @click="submitForm" :loading="loading" size="large">登录</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div class="error-message" v-if="errorMessage">{{ errorMessage }}</div>
|
||||
<div class="login-footer">
|
||||
© 2024 WeChatRobot | 智能机器人管理平台
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -10,8 +10,6 @@ command-tip = """
|
||||
聊天 请求内容
|
||||
"""
|
||||
|
||||
price = 0 # 用一次扣积分,如果0则不扣
|
||||
|
||||
# Http代理设置
|
||||
# 格式: http://用户名:密码@代理地址:代理端口
|
||||
# 例如:http://127.0.0.1:7890
|
||||
|
||||
Reference in New Issue
Block a user