123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <title>大友房估·数据库</title>
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="shortcut icon" href="favicon.ico">
- <script type="text/javascript" src="vendor/jquery-v1.8.3/jquery.min.js"></script>
- <style>
- body {
- margin: 0;
- padding: 0;
- min-height: 700px;
- overflow: auto;
- position: relative;
- }
- .header {
- height: 100px;
- }
- .header > .logo img {
- margin-top: 10px;
- height: 80px;
- width: 340px;
- margin-left: 20px;
- }
- .main {
- background: rgb(5, 6, 28) url('/style/login/images/bg.jpg') no-repeat center;
- position: relative;
- height: 402px;
- padding: 60px 0;
- }
- .main > .box {
- position: relative;
- height: 100%;
- margin: 0 auto;
- width: 1000px;
- }
- .main > .box > .login {
- background-color: #fff;
- width: 360px;
- position: absolute;
- right: 0;
- top: 35px;
- }
- .main > .box > .login > .title {
- height: 70px;
- text-align: center;
- font-size: 22px;
- line-height: 70px;
- border-bottom: 1px solid #e5e5e5;
- box-sizing: border-box;
- }
- .main > .box > .login > .center {
- padding: 0 48px;
- }
- .main > .box > .login > .center > div {
- height: 40px;
- line-height: 40px;
- }
- .main > .box > .login > .center > .error {
- text-align: center;
- color: #ea0805;
- font-size: 16px;
- }
- .main > .box > .login > .center > .username,
- .main > .box > .login > .center > .password {
- height: 46px;
- line-height: 46px;
- border: 1px solid #e5e5e5;
- box-sizing: border-box;
- }
- .main > .box > .login > .center .icon {
- border-right: 1px solid #e5e5e5;
- box-sizing: border-box;
- display: inline-block;
- height: 46px;
- width: 46px;
- text-align: center;
- }
- .main > .box > .login > .center .icon > img {
- position: relative;
- top: 5px;
- }
- .main > .box > .login > .center > .password {
- margin-top: 24px;
- }
- .main > .box > .login > .center > .password > input,
- .main > .box > .login > .center > .username > input {
- border: none;
- outline: none;
- font-size: 16px;
- padding: 0 20px;
- height: 40px;
- line-height: 40px;
- width: 170px;
- box-sizing: border-box;
- }
- input[required]:invalid, input:focus:invalid, textarea[required]:invalid, textarea:focus:invalid {
- box-shadow: none;
- }
- .main > .box > .login > .center > .rf {
- }
- .main > .box > .login .btn-login {
- }
- .main > .box > .login .btn-login > button {
- height: 50px;
- line-height: 50px;
- color: #fff;
- background-color: #31bbff;
- width: 100%;
- text-align: center;
- font-size: 20px;
- outline: none;
- border: 0;
- cursor: pointer;
- }
- .main > .box > .login > .center > .register {
- text-align: center;
- height: 40px;
- line-height: 40px;
- margin-bottom: 10px;
- margin-top: 15px;
- }
- .main > .box > .login > .center > .register > a {
- font-size: 20px;
- cursor: pointer;
- color: #0f0f0f;
- padding: 0 20px;
- text-underline: none;
- text-decoration: none;
- }
- .main > .box > .login > .center > .register > a:hover {
- border-bottom: 1px solid #ff1f2e;
- }
- .footer {
- position: absolute;
- height: 60px;
- bottom: 0;
- width: 100%;
- }
- .footer .copyright {
- color: #a5a5a5;
- height: 100%;
- padding: 12px 0px;
- box-sizing: border-box;
- width: 100%;
- text-align: center;
- font-size: 13px;
- }
- @media only screen and (max-width: 1000px) {
- body {
- min-height: 600px;
- overflow: auto;
- }
- .header {
- text-align: center;
- height: 60px;
- }
- .header > .logo img {
- margin-top: 2px;
- height: 56px;
- width: auto;
- }
- .header p {
- height: 60px;
- line-height: 60px;
- }
- .main {
- padding: 2em 0;
- }
- .main > .box {
- width: 100% !important;
- text-align: center;
- height: 335px;
- }
- .main > .box > .login {
- background-color: #fff;
- width: 94%;
- max-width: 600px;
- margin: 0 auto;
- top: 2em;
- left: 0;
- height: 100%;
- position: relative;
- }
- .main > .box > .login > .center {
- width: 100%;
- padding: 0 1em;
- box-sizing: border-box;
- text-align: left;
- }
- input[type="text"], input[type="password"] {
- width: calc(100% - 60px) !important;
- padding: 0 1em;
- }
- .login > .center > div {
- }
- .register {
- display: none;
- }
- .footer .copyright {
- padding: 1em 0;
- }
- }
- </style>
- </head>
- <body>
- <div class="header">
- <div class="logo">
- <a>
- <img src="/logo.png" alt="四川大友房地产评估咨询有限公司">
- </a>
- </div>
- </div>
- <div class="main">
- <div class="box">
- <div class="login">
- <div class="title">用户登录</div>
- <div class="center">
- <div class="error" ng-cloak></div>
- <div class="username">
- <div class="icon">
- <img src="/style/login/images/icon-user.png"/>
- </div>
- <input type="text" id="username" name="username" required tabindex="2"
- placeholder="输入用户名" maxlength="16"/>
- </div>
- <div class="password">
- <div class="icon">
- <img src="/style/login/images/icon-lock.png"/>
- </div>
- <input type="password" id="password" name="password" required tabindex="3"
- placeholder="输入密码" maxlength="16"/>
- </div>
- <div class="rf">
- <label class="remember"><input type="checkbox" value="true"/> 记住用户</label>
- <div class="forget"><a href="#">忘记密码?</a></div>
- </div>
- <div class="btn-login">
- <button>登录</button>
- </div>
- <div class="register">
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="footer">
- <div class="copyright">@2019 四川大友房地产评估咨询有限公司</div>
- <div class="copyright"><a href="http://leeroa.com" style="text-decoration: none">成都利锐计算机有限公司</a> 提供技术支持</div>
- </div>
- <script type="text/javascript">
- $(function () {
- var username = localStorage.getItem("username") || '';
- $('#username')[0].focus();
- if (username) {
- $('#username').val(username);
- $('.remember>:checkbox').attr('checked', 'checked');
- $('#password')[0].focus();
- }
- var busy = false;
- function login() {
- if (busy) {
- return;
- }
- username = $('#username').val();
- if (!username) {
- $('.error').html('请输入用户名!');
- $('.username>input').focus();
- return;
- }
- var password = $('#password').val();
- if (!password) {
- $('.error').html('请输入密码!');
- $('.password>input').focus();
- return;
- }
- $('.btn-login>button').html('登录中...');
- $.post('login', {loginName: username, password: password})
- .success(function (data) {
- data = data || {};
- if ($('.remember>:checkbox').is(":checked")) {
- localStorage.setItem("username", username);
- } else {
- localStorage.removeItem("username");
- }
- if (data['success']) {//登录成功
- window.location.href = 'main';
- } else {//登录失败
- busy = false;
- $('.btn-login>button').html('登录');
- $('.error').html(data['message']);
- }
- })
- .error(function () {
- busy = false;
- $('.btn-login>button').html('登录');
- $('.error').html('请求错误,请重试!');
- });
- }
- $('.btn-login>button').bind('click', login);
- $('input').on('keyup', function (e) {
- var key = e.keyCode || e.which;
- if (key === 13) login();
- });
- });
- //解决session失效后登录页面不是顶层窗口的问题
- if (window.top !== window) {
- window.top.location.href = window.location.href;
- }
- </script>
- </body>
- </html>
|