| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216 |
- <html>
- <!DOCTYPE html>
- <html lang="en" class="no-js">
- <head>
- <meta charset="utf-8">
- <title>江苏港口智能监管信息平台</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
- <meta name="description" content="">
- <meta name="author" content="">
- <script src="assets/js/jquery-1.8.2.min.js" ></script>
- <script src="assets/js/supersized.3.2.7.min.js" ></script>
- <script src="assets/js/supersized-init.js" ></script>
- <!-- CSS -->
- <link rel="stylesheet" href="assets/css/reset.css">
- <link rel="stylesheet" href="assets/css/supersized.css">
- <link rel="stylesheet" href="assets/css/style.css">
- <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
- <!--[if lt IE 9]>
- <script src="assets/js/html5.js"></script>
- <![endif]-->
- <script type="text/javascript">
- //alert(getQueryString("code"))
- var code = getQueryString("code");
- $(function(){
- $.ajax({
- type: 'post',
- url: '../../usercontroller/findinfo.do',
- data:{code:code},
- dataType: 'json',
- success: function(data){
- console.log(data)
- $("#names").html(data.names)
- $("#over").remove();
- $("#layout").remove();
- console.log("请求结束")
- }});
-
-
- $("#login").live("click",function(){
- var username = $("#username").val();
- var password = $("#password").val();
- var dsid = $("#dsid").val();
- if(username.length<1){
- layer.open({
- shade:false,
- content: '用户名不能为空',
- style: 'background:rgba(0,0,0,0.5); color:white; border:none;font-size:20px;text-align:center',
- time:1
- });
- return;
- }
- if(password.length<1){
- layer.open({
- shade:false,
- content: '密码不能为空',
- style: 'background-color:rgba(0,0,0,0.5); color:white; border:none;font-size:20px;text-align:center',
- time:1
- });
- return;
- }
- if(dsid.length<1){
- layer.open({
- shade:false,
- content: '请选择地市',
- style: 'background-color:rgba(0,0,0,0.5); color:white; border:none;font-size:20px;text-align:center',
- time:1
- });
- return;
- }
-
-
-
- $.ajax({
- type: 'post',
- url: '../../usercontroller/login.do',
- data:{username:username,password:password,code:code,dsid:dsid},
- dataType: 'json',
- success: function(data){
- if(data=="500"){
- layer.open({
- shade:false,
- content: '用户名或密码错误',
- style: 'background-color:rgba(0,0,0,0.5); color:white; border:none;font-size:20px;text-align:center',
- time:1
- });
- $("#over").remove();
- $("#layout").remove();
- }else if(data=="200"){
- layer.open({
- shade:false,
- content: '登录成功',
- style: 'background-color:rgba(0,0,0,0.5); color:white; border:none;font-size:20px;text-align:center',
- time:1
- });
- $("#over").remove();
- $("#layout").remove();
-
- setTimeout(function(){
- WeixinJSBridge.call('closeWindow');
- },1000)
- }else{
- layer.open({
- shade:false,
- content: '服务器异常!',
- style: 'background-color:rgba(0,0,0,0.5); color:white; border:none;font-size:20px;text-align:center',
- time:1
- });
- setTimeout(function(){
- window.location.reload();
- },1000)
- $("#over").remove();
- $("#layout").remove();
- }
- }});
- });
- /**
-
- $.ajax({
- type: 'post',
- url: '../usercontroller/login.do',
- data:{username:username,password:password},
- dataType: 'json',
- success: function(data){
- console.log(data);
- if(data.userEntity==null){
- layer.open({
- shade:false,
- content: '用户名或密码错误',
- style: 'background-color:rgba(0,0,0,0.5); color:white; border:none;font-size:20px;text-align:center',
- time:1
- });
- }else{
- $.ajax({
- type: 'post',
- url: '../usercontroller/updateuser.do',
- data:{dsid:dsid,code:code,bmid:data.bmid,username:data.userEntity.uname,uid:data.userEntity.id,name:data.userEntity.name,orgName:data.userEntity.orgName},
- dataType: 'json',
- success: function(data){
- layer.open({
- shade:false,
- content: '登录成功',
- style: 'background-color:rgba(0,0,0,0.5); color:white; border:none;font-size:20px;text-align:center',
- time:1
- });
- setTimeout(function(){
-
- }, 500)
- }});
- }
- }})
- **/
- })
- </script>
- <script type="text/javascript">
- function inputse(a){
- $("#dsidshow").val($('#dsid option:selected').text())
- }
- </script>
-
- <style type="text/css">
- .aaa{
- font-family: Microsoft YaHei,Segoe UI,Tahoma,Arial,Verdana,sans-serif;
- text-decoration: none;
- width: 100%;
- height: 42px;
- margin-top: 25px;
- padding: 0 15px;
- background: #2d2d2d;
- background: rgba(45,45,45,.15);
- -moz-border-radius: 6px;
- -webkit-border-radius: 6px;
- border-radius: 6px;
- border: 1px solid #3d3d3d;
- border: 1px solid rgba(255,255,255,.15);
- -moz-box-shadow: 0 2px 3px 0 rgba(0,0,0,.1) inset;
- -webkit-box-shadow: 0 2px 3px 0 rgba(0,0,0,.1) inset;
- box-shadow: 0 2px 3px 0 rgba(0,0,0,.1) inset;
- font-size: 14px;
- color: #fff;
- text-shadow: 0 1px 2px rgba(0,0,0,.1);
- -o-transition: all .2s;
- -moz-transition: all .2s;
- -webkit-transition: all .2s;
- -ms-transition: all .2s;
- }
- </style>
- </head>
- <body>
- <div class="" style="position:absolute;right: 10px;top: 10px">当前绑定用户: <span id="names" style="text-decoration: underline;"></span></div>
- <div class="page-container">
- <h1>登录</h1>
- <form action="" method="post">
- <input type="text" name="username" id="username" class="username" placeholder="请输入您的用户名">
- <input type="password" name="password" id="password" class="password" placeholder="请输入您的用户密码">
- <div style="position: relative;">
- <input type="text" readonly="readonly" id="dsidshow" class="username" value="请选择地市">
- <span style="width: 20px;height: 20px;font-size: 25px;position: absolute;right: 10px;top: 33px">∨</span>
- <select class="aaa" id="dsid" style="opacity:0;position: absolute;z-index: 100;left: 0px;top:0px" onchange="inputse(this)">
- <option class="aaa" value="">请选择地市</option>
- <option class="aaa" value="900">省级</option>
- </select>
- </div>
-
- <button type="button" id="login" class="submit_button">登录</button>
- <div class="error"><span>+</span></div>
- </form>
- </div>
- <!-- Javascript -->
- </body>
- </html>
|