123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
- <title>{$title}-登录</title>
- <meta name="renderer" content="webkit">
- <meta http-equiv="Cache-Control" content="no-siteapp"/>
- <link rel="Shortcut Icon" href="/favicon.ico" type="image/x-icon" />
- <link href="/static/hplus/css/bootstrap.min.css?v=3.3.7" rel="stylesheet" />
- <link href="/static/hplus/css/font-awesome.min.css?v=4.4.0" rel="stylesheet" />
- <link href="/static/hplus/css/animate.css" rel="stylesheet" />
- <link href="/static/admin/css/style.css?v=4.1.0" rel="stylesheet" />
- <link href="/static/admin/css/login.css" rel="stylesheet">
- <!--[if lt IE 9]>
- <meta http-equiv="refresh" content="0;ie.html" />
- <![endif]-->
- <script>
- if(window.top!==window.self){window.top.location=window.location};
- </script>
- <style>
- .verifyimg{
- width:46%;
- height: 40px;
- margin-bottom: 3px;
- border: 1px solid #ccc;
- cursor: pointer;
- }
- .login-title{
- font-size: 18px;
- color: #222;
- }
- .form-control{
- }
- </style>
- </head>
- <body>
- <!--<div class="bg-top"></div>-->
- <div class="login-box">
- <div class="login-box-left">
- <div class="login-box-banner">
- <img src="/static/admin/img/tu.png" alt="">
- </div>
- <div class="l-title">
- <div class="l-title-a">欢迎使用</div>
- <div class="l-title-a">{$title}</div>
- </div>
- </div>
- <div class="login-box-right">
- <div class="from-data">
- <div class="form-right">
- <div class="logo-title">
- 登 录
- </div>
- <form method="post" style="margin: 0 49px;" action="{:url('login')}">
- <div class="login-input-box">
- <div class="login_input-box">
- <input type="text" name="account" class="form-control uname" placeholder="用户名" />
- </div>
- </div>
- <div class="login-input-box">
- <div class="login_input-box">
- <input type="password" name="password" class="form-control pword m-b" placeholder="密码" />
- </div>
- </div>
- <button class="btn btn-info btn-block" >登 录</button>
- <h5 class="forget"><a href="{:url('forget')}">忘记密码?</a></h5>
- </form>
- </div>
- </div>
- </div>
- </div>
- <!--<div class="l-title">
- <div class="l-title-a">欢迎使用</div>
- <div class="l-title-a">{$title}</div>
- </div>
- <div class="from-data">
- <div class="form-right">
- <div class="logo-title">
- 登录
- </div>
- <form method="post" style="margin: 0 39px;" action="{:url('login')}">
- <div class="login-input-box">
- <div class="login_input-box">
- <input type="text" name="account" class="form-control uname" placeholder="用户名" />
- </div>
- </div>
- <div class="login-input-box">
- <div class="login_input-box">
- <input type="password" name="password" class="form-control pword m-b" placeholder="密码" />
- </div>
- </div>
- <button class="btn btn-info btn-block" >登 录</button>
- <h5 class="forget"><a href="{:url('forget')}">忘记密码?</a></h5>
- </form>
- </div>
- </div>-->
- <div class="copyright-text">
- Copyright © 2022 {$title} 版权所有
- </div>
- <script src="/static/hplus/js/jquery.min.js?v=2.1.4"></script>
- <script src="/static/hplus/js/bootstrap.min.js?v=3.3.7"></script>
- <script src="/static/layer/layer.js"></script>
- <script>
- $(function(){
- //表单提交
- $(document)
- .ajaxStart(function(){
- $("button:submit").html('登 录 中...').attr("disabled", true);
- })
- .ajaxStop(function(){
- $("button:submit").html('登 录').attr("disabled", false);
- });
- $("form").submit(function(){
- var self = $(this);
- self.find(".check-tips").text('');
- $.post(self.attr("action"), self.serialize(), success, "json");
- return false;
- function success(data){
- if(data.code){
- window.location.href = data.url;
- } else {
- layer.msg(data.msg)
- //刷新验证码
- $(".reloadverify").click();
- }
- }
- });
- //刷新验证码
- var verifyimg = $(".verifyimg").attr("src");
- $(".reloadverify").click(function(){
- if( verifyimg.indexOf('?')>0){
- $(".verifyimg").attr("src", verifyimg+'&random='+Math.random());
- }else{
- $(".verifyimg").attr("src", verifyimg.replace(/\?.*$/,'')+'?'+Math.random());
- }
- });
- });
- </script>
- </body>
- </html>
|