更新内容
This commit is contained in:
1
app/view/admin/index/clear.html
Normal file
1
app/view/admin/index/clear.html
Normal file
@@ -0,0 +1 @@
|
||||
{extend name="admin/base"/}
|
||||
@@ -40,13 +40,13 @@
|
||||
<div class="form-group">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon" id="basic-addon1"><i class="fa fa-user"></i></span>
|
||||
<input type="text" class="form-control" placeholder="用户名" aria-describedby="basic-addon1">
|
||||
<input type="text" class="form-control" name="username" placeholder="用户名" aria-describedby="basic-addon1">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon" id="basic-addon1"><i class="fa fa-lock"></i></span>
|
||||
<input type="password" class="form-control" placeholder="密码" aria-describedby="basic-addon1">
|
||||
<input type="password" class="form-control" name="password" placeholder="密码" aria-describedby="basic-addon1">
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn btn-default btn-block" type="submit">确认登录</button>
|
||||
@@ -64,6 +64,7 @@
|
||||
|
||||
</div>
|
||||
<script src="__static__/libs/jquery/jquery.min.js"></script>
|
||||
<script src="__static__/libs/layui/layui.all.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
//表单提交
|
||||
@@ -79,14 +80,14 @@ $(function () {
|
||||
return false;
|
||||
|
||||
function success(data){
|
||||
if(data.code){
|
||||
if(data.code == 0){
|
||||
layer.msg(data.msg, {time:3000, end:function(){
|
||||
window.location.href = data.url;
|
||||
}});
|
||||
} else {
|
||||
layer.msg(data.msg, {time:3000, end:function(){
|
||||
//刷新验证码
|
||||
$(".reloadverify").click();
|
||||
//$(".reloadverify").click();
|
||||
}});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user