更新登录模块
This commit is contained in:
parent
7cd3b73df8
commit
de2fcc055b
@ -6,6 +6,7 @@
|
||||
border-radius: 8px;
|
||||
/* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); */
|
||||
}
|
||||
|
||||
.config-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@ -13,15 +14,18 @@
|
||||
padding-bottom: 15px;
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
|
||||
.config-header span {
|
||||
font-size: 18px;
|
||||
color: #2c3e50;
|
||||
font-weight: 500;
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
.config-header a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.config-header a span {
|
||||
padding: 6px 15px;
|
||||
background: #f8f9fa;
|
||||
@ -30,62 +34,79 @@
|
||||
font-size: 14px;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.config-header a span:hover {
|
||||
background: #e9ecef;
|
||||
color: #409EFF;
|
||||
}
|
||||
|
||||
.action-buttons {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.layui-btn {
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
||||
transition: all 0.3s;
|
||||
height: 32px;
|
||||
line-height: 32px;
|
||||
padding: 0 16px;
|
||||
}
|
||||
|
||||
.layui-btn:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.layui-btn .layui-icon {
|
||||
margin-right: 4px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.layui-table {
|
||||
margin: 15px 0;
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.layui-table thead tr {
|
||||
background-color: #fafafa;
|
||||
}
|
||||
|
||||
.layui-table tbody tr:hover {
|
||||
background-color: #f5f7fa;
|
||||
}
|
||||
|
||||
.layui-table-cell {
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
}
|
||||
|
||||
.layui-badge {
|
||||
padding: 4px 8px;
|
||||
border-radius: 3px;
|
||||
font-weight: 500;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.layui-badge.layui-bg-green {
|
||||
background-color: #67C23A !important;
|
||||
}
|
||||
|
||||
.layui-badge.layui-bg-gray {
|
||||
background-color: #909399 !important;
|
||||
}
|
||||
|
||||
.layui-layer {
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.layui-textarea {
|
||||
width: 80% !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="config-container">
|
||||
@ -185,7 +206,7 @@
|
||||
};
|
||||
|
||||
var loadIndex = layer.load(1, {
|
||||
shade: [0.1,'#fff']
|
||||
shade: [0.1, '#fff']
|
||||
});
|
||||
|
||||
$.post('{$config["admin_route"]}yunzer/configadd', button, function (res) {
|
||||
@ -233,7 +254,7 @@
|
||||
};
|
||||
|
||||
var loadIndex = layer.load(1, {
|
||||
shade: [0.1,'#fff']
|
||||
shade: [0.1, '#fff']
|
||||
});
|
||||
|
||||
$.post('{$config["admin_route"]}yunzer/configedit', button, function (res) {
|
||||
@ -267,7 +288,7 @@
|
||||
btn: ['确定', '取消']
|
||||
}, function () {
|
||||
var loadIndex = layer.load(1, {
|
||||
shade: [0.1,'#fff']
|
||||
shade: [0.1, '#fff']
|
||||
});
|
||||
|
||||
$.post('{$config["admin_route"]}yunzer/configdel', { 'config_id': data[0].config_id }, function (res) {
|
||||
|
||||
@ -275,7 +275,7 @@
|
||||
<div class="container">
|
||||
<h2>微信扫码登录</h2>
|
||||
<div class="qrcode-container">
|
||||
<img id="qrcode" src="" alt="微信登录二维码" onclick="reGenerateQrcode()">
|
||||
<img id="qrcode" src="__IMAGES__/loading.gif" alt="微信登录二维码" onclick="reGenerateQrcode()">
|
||||
<p>点击二维码可刷新</p>
|
||||
</div>
|
||||
<div id="status" class="status">正在加载二维码...</div>
|
||||
@ -619,8 +619,8 @@
|
||||
var isAutoLogin = localStorage.getItem('is_auto_login');
|
||||
|
||||
if (expireTime && new Date().getTime() < expireTime && isAutoLogin === 'true') {
|
||||
// 只填充账号,不填充密码
|
||||
$('input[name="account"]').val(localStorage.getItem('user_account'));
|
||||
$('input[name="password"]').val(atob(localStorage.getItem('user_password')));
|
||||
} else {
|
||||
// 如果过期或未开启自动登录,清除数据
|
||||
localStorage.removeItem('user_account');
|
||||
|
||||
BIN
public/static/images/loading.gif
Normal file
BIN
public/static/images/loading.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 174 KiB |
Loading…
x
Reference in New Issue
Block a user