You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
165 lines
9.1 KiB
165 lines
9.1 KiB
<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:84:"/alidata/www/myproject/hospitalZzc/public/../application/admin/view/login/index.html";i:1590934428;}*/ ?>
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<link rel="apple-touch-icon" sizes="76x76" href="/hospital/public/static/admin/assets/img/apple-icon.png">
|
|
<link rel="icon" type="image/png" href="/hospital/public/static/admin/assets/img/favicon.png">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
|
<title>医院就诊管理系统后台</title>
|
|
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport' />
|
|
<!-- Fonts and icons -->
|
|
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,200" rel="stylesheet" />
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" />
|
|
<!-- CSS Files -->
|
|
<link href="/hospital/public/static/admin/assets/css/bootstrap.min.css" rel="stylesheet" />
|
|
<link href="/hospital/public/static/admin/assets/css/now-ui-kit.css?v=1.1.0" rel="stylesheet" />
|
|
<!-- CSS Just for demo purpose, don't include it in your project -->
|
|
<link href="/hospital/public/static/admin/assets/css/demo.css" rel="stylesheet" />
|
|
<meta name="renderer" content="webkit|ie-comp|ie-stand">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
|
|
<meta http-equiv="Cache-Control" content="no-siteapp" />
|
|
|
|
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
|
<link rel="stylesheet" href="/hospital/public/static/admin/x-admin/css/font.css">
|
|
<!--<link rel="stylesheet" href="/hospital/public/static/admin/x-admin/css/xadmin.css">-->
|
|
<script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
|
|
<script src="/hospital/public/static/admin/x-admin/lib/layui/layui.js" charset="utf-8"></script>
|
|
<script src="/hospital/public/static/admin/x-admin/lib/layui/layui.js" charset="utf-8"></script>
|
|
<script src="/hospital/public/static/admin/assets/fonts/nucleo-outline.eot" charset="utf-8"></script>
|
|
<script src="/hospital/public/static/admin/assets/fonts/nucleo-outline.woff2" charset="utf-8"></script>
|
|
<script src="/hospital/public/static/admin/assets/fonts/nucleo-outline.woff" charset="utf-8"></script>
|
|
<script src="/hospital/public/static/admin/assets/fonts/nucleo-outline.ttf" charset="utf-8"></script>
|
|
<script type="text/javascript" src="/hospital/public/static/admin/x-admin/js/xadmin.js"></script>
|
|
<link rel="canonical" href="" />
|
|
<!-- Social tags -->
|
|
<meta name="keywords" content="">
|
|
<meta name="description" content="">
|
|
|
|
|
|
|
|
</head>
|
|
|
|
<body class="login-page sidebar-collapse">
|
|
<!-- Navbar -->
|
|
<nav class="navbar navbar-expand-lg bg-primary fixed-top navbar-transparent " color-on-scroll="400">
|
|
<div class="container">
|
|
<div class="dropdown button-dropdown">
|
|
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
|
<a class="dropdown-header">Dropdown header</a>
|
|
<a class="dropdown-item" href="#">Action</a>
|
|
<a class="dropdown-item" href="#">Another action</a>
|
|
<a class="dropdown-item" href="#">Something else here</a>
|
|
<div class="dropdown-divider"></div>
|
|
<a class="dropdown-item" href="#">Separated link</a>
|
|
<div class="dropdown-divider"></div>
|
|
<a class="dropdown-item" href="#">One more separated link</a>
|
|
</div>
|
|
</div>
|
|
<div class="navbar-translate">
|
|
</div>
|
|
<div class="collapse navbar-collapse justify-content-end" data-nav-image="/hospital/public/static/admin/assets/img/blurred-image-1.jpg">
|
|
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
<!-- End Navbar -->
|
|
<div class="page-header" filter-color="blue">
|
|
<div class="page-header-image" style="background-image:url(/hospital/public/static/admin/assets/img/denglu.png)"></div>
|
|
<div class="container">
|
|
<div class="col-md-4 content-center">
|
|
<div class="card card-login card-plain">
|
|
<div class="header header-primary text-center">
|
|
<div class="logo-container">
|
|
<img src="/hospital/public/static/admin/assets/img/now-logo.png" alt="">
|
|
</div>
|
|
</div>
|
|
<form method="post" class="layui-form">
|
|
<div class="content">
|
|
<div class="input-group form-group-no-border input-lg">
|
|
<span class="input-group-addon">
|
|
<i class="now-ui-icons users_circle-08"></i>
|
|
</span>
|
|
<input lay-verify="required" name="username" type="text" class="form-control" placeholder="用户名">
|
|
</div>
|
|
<div class="input-group form-group-no-border input-lg">
|
|
<span class="input-group-addon">
|
|
<i class="now-ui-icons text_caps-small"></i>
|
|
</span>
|
|
<input lay-verify="required" name="password" type="password" placeholder="密码" class="form-control" />
|
|
</div>
|
|
<div >
|
|
<input name="captcha" lay-verify="required" placeholder="验证码" type="text" class="layui-input" style="width:35% !important;display: inline-block;margin-right: 10px;">
|
|
<img id="captcha" src="<?php echo url('verify','',''); ?>" alt="验证码" style="display:inline-block;width:60%;cursor: pointer;" onclick="this.src='<?php echo url('verify'); ?>?id='+Math.random()" />
|
|
</div>
|
|
</div>
|
|
<div class="footer text-center">
|
|
<input lay-submit="" lay-filter="login" type="submit" value="登录" class="form-control" />
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
<!-- Core JS Files -->
|
|
<script src="/hospital/public/static/admin/assets/js/core/jquery.3.2.1.min.js" type="text/javascript"></script>
|
|
<script src="/hospital/public/static/admin/assets/js/core/popper.min.js" type="text/javascript"></script>
|
|
<script src="/hospital/public/static/admin/assets/js/core/bootstrap.min.js" type="text/javascript"></script>
|
|
<!-- Plugin for Switches, full documentation here: http://www.jque.re/plugins/version3/bootstrap.switch/ -->
|
|
<script src="/hospital/public/static/admin/assets/js/plugins/bootstrap-switch.js"></script>
|
|
<!-- Plugin for the Sliders, full documentation here: http://refreshless.com/nouislider/ -->
|
|
<script src="/hospital/public/static/admin/assets/js/plugins/nouislider.min.js" type="text/javascript"></script>
|
|
<!-- Plugin for the DatePicker, full documentation here: https://github.com/uxsolutions/bootstrap-datepicker -->
|
|
<script src="/hospital/public/static/admin/assets/js/plugins/bootstrap-datepicker.js" type="text/javascript"></script>
|
|
<!-- Share Library etc -->
|
|
<script src="/hospital/public/static/admin/assets/js/plugins/jquery.sharrre.js" type="text/javascript"></script>
|
|
<!-- Control Center for Now Ui Kit: parallax effects, scripts for the example pages etc -->
|
|
<script src="/hospital/public/static/admin/assets/js/now-ui-kit.js?v=1.1.0" type="text/javascript"></script>
|
|
<script>
|
|
|
|
$(function() {
|
|
layui.use('form', function(){
|
|
var form = layui.form;
|
|
console.log(form);
|
|
// layer.msg('玩命卖萌中', function(){
|
|
// //关闭后的操作
|
|
// });
|
|
//监听提交
|
|
form.on('submit(login)', function(data){
|
|
console.log(data)
|
|
// alert(888)
|
|
const {field:postData} = data;
|
|
const url = "<?php echo url('login','',''); ?>";
|
|
$.ajax({
|
|
url,
|
|
data:postData,
|
|
type:"Post",
|
|
dataType:"json",
|
|
success:function(data){
|
|
console.log("data")
|
|
const {status,message} = data;
|
|
if(!status){
|
|
console.log('okkkkkk')
|
|
layer.msg(message,{icon: 6, time: 2000});
|
|
window.location.href = "<?php echo url('Index/index'); ?>";
|
|
} else {
|
|
console.log('question')
|
|
layer.msg(message,{icon: 5, time: 2000});
|
|
}
|
|
},
|
|
error:function(data){
|
|
console.log('noooooo')
|
|
console.log(data);
|
|
}
|
|
});
|
|
return false;
|
|
});
|
|
});
|
|
})
|
|
</script>
|
|
</html>
|