登录页验证码

develop
就眠仪式 2020-08-15 12:45:41 +08:00
parent 281d66aa15
commit 0fa63afc7e
7 changed files with 58 additions and 39 deletions

View File

@ -1,5 +1,5 @@
.layui-form {
width: 330px!important;
width: 320px !important;
margin: auto !important;
margin-top: 160px !important;
}
@ -71,3 +71,13 @@ body {
background-color: whitesmoke;
height: 100%;
}
.code {
margin-right: 13px;
border: #e6e6e6 1px solid;
}
.codeImage {
height: 42px;
border: #e6e6e6 1px solid;
}

View File

@ -23,7 +23,7 @@
"title": "百度一下",
"icon": "layui-icon layui-icon-console",
"type": 1,
"openType": "_blank",
"openType": "_iframe",
"href": "http://www.baidu.com"
}]
},

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 91 KiB

BIN
admin/images/captcha.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@ -820,3 +820,8 @@ div[xm-select-search-type="1"] .xm-select .xm-select-input {
.icon-expand:before {
content: "\e641";
}
.xm-select-parent .xm-form-select dl{
position: relative;
top: 5px!important;
}

View File

@ -209,9 +209,9 @@ layui.define(['table', 'jquery', 'element', 'form', 'tab', 'menu', 'frame'],
if ($("iframe").contents().find("#customTheme").length > 0) {
$("iframe").contents().find("#customTheme").remove();
}
var theme = "<style>";
/* var theme = "<style>";
theme += '</style>';
$("iframe").contents().find("head").append(theme);
$("iframe").contents().find("head").append(theme); */
$("#pearadmin-bg-color").html(style);
}
};

View File

@ -22,6 +22,10 @@
<div class="layui-form-item">
<input placeholder="密 码 : admin " hover class="layui-input" />
</div>
<div class="layui-form-item">
<input placeholder="验证码 : " hover class="code layui-input layui-input-inline" />
<img src="admin/images/captcha.gif" class="codeImage" />
</div>
<div class="layui-form-item">
<input type="checkbox" name="" title="记住密码" lay-skin="primary" checked>
</div>