193b3c530962981d3a4dc850749aaa8b.php 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <?php /*a:1:{s:59:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\login\index.html";i:1591593521;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="UTF-8">
  6. <title><?php echo site_name(); ?>后台管理-登陆</title>
  7. <meta name="keywords" content="thinkphp6,thinkphp,layui,easywechat框架,框架,组件">
  8. <meta name="description" content="是一款采用 layui开发的极简后台管理框架 基于thinkphp6 ,easywechat,开发的cms后台管理系统,thinkphp,yii2,cms,php后台管理系统,cms,cms系统,restful api,thinkphp后台管理系统">
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  10. <meta http-equiv="Access-Control-Allow-Origin" content="*">
  11. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  12. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  13. <meta name="apple-mobile-web-app-capable" content="yes">
  14. <meta name="format-detection" content="telephone=no">
  15. <link rel="stylesheet" href="/static/plugins/layui/css/layui.css" media="all">
  16. <!--[if lt IE 9]>
  17. <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
  18. <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
  19. <![endif]-->
  20. <style>
  21. html, body {width: 100%;height: 100%;overflow: hidden}
  22. body {background: #000;}
  23. body:after {content:'';background-repeat:no-repeat;background-size:cover;-webkit-filter:blur(3px);-moz-filter:blur(3px);-o-filter:blur(3px);-ms-filter:blur(3px);filter:blur(3px);position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;}
  24. .layui-container {width: 100%;height: 100%;overflow: hidden;}
  25. .admin-login-background {width:360px;height:300px;position:absolute;left:50%;top:40%;margin-left:-180px;margin-top:-100px;}
  26. .logo-title {text-align:center;letter-spacing:2px;padding:14px 0;}
  27. .logo-title h1 {color:#009688;font-size:25px;font-weight:bold;}
  28. .login-form {background-color:#fff;border:1px solid #fff;border-radius:3px;padding:14px 20px;box-shadow:0 0 8px #eeeeee;}
  29. .login-form .layui-form-item {position:relative;}
  30. .login-form .layui-form-item label {position:absolute;left:1px;top:1px;width:38px;line-height:36px;text-align:center;color:#d2d2d2;}
  31. .login-form .layui-form-item input {padding-left:36px;}
  32. .captcha {width:60%;display:inline-block;}
  33. .captcha-img {display:inline-block;width:34%;float:right;}
  34. .captcha-img img {height:34px;border:1px solid #e6e6e6;height:36px;width:100%;}
  35. .copyright{font-size:12px;color: #ccc; text-align: center;}
  36. @media screen and (max-width: 320px) {
  37. .admin-login-background {
  38. width:300px;
  39. left: 59%;
  40. }
  41. }
  42. </style>
  43. </head>
  44. <body>
  45. <div id="canvas"></div>
  46. <div class="layui-container">
  47. <div class="admin-login-background">
  48. <div class="layui-form login-form">
  49. <form class="layui-form" action="">
  50. <div class="layui-form-item logo-title">
  51. <h1><?php echo site_name(); ?>管理后台</h1>
  52. </div>
  53. <div class="layui-form-item">
  54. <label class="layui-icon layui-icon-username" for="username"></label>
  55. <input type="text" name="username" lay-verify="required|account" placeholder="用户名或者邮箱" autocomplete="off" class="layui-input" value="">
  56. </div>
  57. <div class="layui-form-item">
  58. <label class="layui-icon layui-icon-password" for="password"></label>
  59. <input type="password" name="password" lay-verify="required|password" placeholder="密码" autocomplete="off" class="layui-input" value="">
  60. </div>
  61. <div class="layui-form-item">
  62. <label class="layui-icon layui-icon-vercode" for="captcha"></label>
  63. <input type="text" name="captcha" lay-verify="required|captcha" placeholder="图形验证码" autocomplete="off" class="layui-input verification captcha" value="">
  64. <div class="captcha-img">
  65. <img id="captchaPic" src="<?php echo url('verify'); ?>?<?php echo time(); ?>" alt="captcha" onclick="this.src='<?php echo url("verify"); ?>?'+'id='+Math.random()"/>
  66. </div>
  67. </div>
  68. <div class="layui-form-item">
  69. <input type="checkbox" name="rememberMe" checked value="true" lay-skin="primary" title="记住密码">
  70. <input type="checkbox" name="daili" value="true" lay-skin="primary" title="代理商登录">
  71. </div>
  72. <div class="layui-form-item">
  73. <button class="layui-btn layui-btn-fluid" lay-submit="" lay-filter="login">登 入</button>
  74. </div>
  75. <div class="copyright">
  76. © 2009-<?php echo date("Y");?> <a href="http://quyum.com" target="_blank">千翼科技</a> All Rights Reserved.
  77. </div>
  78. </form>
  79. </div>
  80. </div>
  81. </div>
  82. <script src="/static/plugins/jquery-3.4.1/jquery-3.4.1.min.js" charset="utf-8"></script>
  83. <script src="/static/plugins/layui/layui.js" charset="utf-8"></script>
  84. <script src="/static/plugins/firework/firework.js" charset="utf-8"></script>
  85. <script>
  86. layui.use(['form'], function () {
  87. var form = layui.form,
  88. layer = layui.layer;
  89. // 登录过期的时候,跳出ifram框架
  90. if (top.location != self.location) top.location = self.location;
  91. // 粒子线条背景
  92. $(document).ready(function(){
  93. $("#canvas").fireworks({
  94. width: "100%",
  95. height: "100%"
  96. });
  97. });
  98. // 进行登录操作
  99. form.on('submit(login)', function (data) {
  100. data = data.field;
  101. if (data.username == '') {
  102. layer.msg('用户名不能为空');
  103. return false;
  104. }
  105. if (data.password == '') {
  106. layer.msg('密码不能为空');
  107. return false;
  108. }
  109. if (data.captcha == '') {
  110. layer.msg('验证码不能为空');
  111. return false;
  112. }
  113. $.ajax({
  114. method:'post',
  115. data:data,
  116. success:function (res) {
  117. if(res.code>0){
  118. layer.msg(res.msg, function () {
  119. window.location = "<?php echo url('index/index'); ?>";
  120. });
  121. }else{
  122. layer.msg(res.msg);
  123. $('#captchaPic').attr('src','<?php echo url("verify"); ?>?id='+Math.random());
  124. return false;
  125. }
  126. },fail:function (res) {
  127. layer.msg(res.msg, function () {
  128. $('#captchaPic').attr('src','<?php echo url("verify"); ?>?id='+Math.random());
  129. return false;
  130. });
  131. }
  132. });
  133. return false;
  134. });
  135. });
  136. </script>
  137. </body>
  138. </html>