nn il y a 8 ans
Parent
commit
3b56d246f8
7 fichiers modifiés avec 6 ajouts et 150 suppressions
  1. 0 71
      css/U_BS_L.css
  2. BIN
      images/backgroundBanner.jpg
  3. BIN
      images/close.png
  4. 0 47
      js/U_BS_L.js
  5. 3 2
      js/feedback.js
  6. 0 29
      login.html
  7. 3 1
      web.config

+ 0 - 71
css/U_BS_L.css

@@ -1,71 +0,0 @@
-/* login */
-.U_BS_L {
-    display: flex;
-    height: 100%;
-    justify-content: center;
-    align-items: center;
-    background: url(../images/backgroundBanner.jpg) no-repeat top/cover padding-box border-box;
-    background-size: cover;
-}
-.U_BS_L_H_Form {
-    padding: 75px;
-    /* box-shadow: #dbdbdb 2px 0 37px 2px; */
-    background: #fff;
-    border: 1px solid #e7e7e7;
-    border-radius: 20px;
-    text-align: center;
-}
-.U_BS_L_H_Form h4 {
-    margin: 20px 0 50px;
-    font-size: 22px;
-    font-weight: normal;
-    font-stretch: normal;
-    color: #828283;
-}
-.form-control {
-    display: block;
-    width: 275px;
-    height: 35px;
-    padding: 6px 12px;
-    font-size: 14px;
-    line-height: 1.42857143;
-    color: #b7b7b7;
-    background-color: #fff;
-    border: solid 1px rgba(77, 77, 77, 0.2);
-    border-radius: 15px;
-    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
-    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
-    -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
-    -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
-    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
-}
-.form-control::-webkit-input-placeholder {
-    color:    #b7b7b7;
-}
-.form-control:-moz-placeholder {
-   color:    #b7b7b7;
-}
-.form-control::-moz-placeholder {
-   color:    #b7b7b7;
-}
-.form-control:-ms-input-placeholder {
-   color:    #b7b7b7;
-}
-.U_BS_L_Info {
-    display: block;
-    height: 20px;
-    padding: 10px 3px;
-    color: #e4393c;
-    font-size: 14px;
-    text-align: left;
-}
-.U_BS_L_Submit {
-    width: 100%;
-    height: 49px;
-    border-radius: 20px;
-    border: 0;
-    background: #5ea7fd;
-    color: #fff;
-    outline:none;
-}
-/* login end */

BIN
images/backgroundBanner.jpg


BIN
images/close.png


+ 0 - 47
js/U_BS_L.js

@@ -1,47 +0,0 @@
-Namespace.register("U.BS.L");//注册命名空间
-U.BS.L.Init=function () {
-    U.BS.L={};
-    U.BS.L.a = $(".U_BS_L_a")[0];
-    U.BS.L.p = $(".U_BS_L_p")[0];
-    U.BS.L.pInfo = $(".U_BS_L_pInfo")[0];
-    U.BS.L.submit = $(".U_BS_L_Submit")[0];
-    U.BS.L.url = window.location.search;
-    U.BS.L.Cd = "http://cd.1473.cn/net";//cd.1473
-    U.BS.L.Db = "db.1473.cn";//db.1473
-    U.BS.L.SqlName = "UseStudio_FeedBack";//数据库名
-    U.UF.Cookie.del("usestudiosso");
-    U.BS.L.Callback=function(data){
-        console.log(data.url);
-        window.location.href = data.url;
-    }
-    U.BS.L.Return=function(){
-        if(window.event.keyCode == "13"){
-            U.BS.L.submit.onclick();
-        }else{
-            return false;
-        }
-    }
-    U.BS.L.Bind=function(){
-        U.BS.L.submit.onclick=function(){
-            U.UF.CD.loadAjaxCrossDomain(function () {
-                U.A.Request(US.AUTH, ["UserLogin", U.BS.L.a.value,  U.BS.L.p.value],function(r){
-                    if(r!=false){
-                        var key = r;
-                        U.A.Request(US.AUTH, ["GetUserLoginData", U.BS.L.a.value], function(r){
-                            if(r.value!=false){
-                                U.A.Request(U.BS.L.Cd,[U.BS.L.Db,U.BS.L.SqlName,"InsertUser",key.value[0].UserId,key.value[0].UserName],function (r){})
-                                U.BS.L.Callback({url: U.BS.L.url.substring(U.BS.L.url.lastIndexOf('=')+1, U.BS.L.url.length)});
-                            }else{
-                                U.BS.L.pInfo.innerText = "请输入正确的账号密码!"
-                            }
-                        })
-                    }else{
-                        return false;
-                    }
-                });
-            });
-        }
-    }
-
-    U.BS.L.Bind();
-}();

+ 3 - 2
js/feedback.js

@@ -472,15 +472,16 @@ Feedback.Init=function () {
         U.UF.CD.loadAjaxCrossDomain(function(){
             U.A.Request(US.AUTH, ["UserOffline", Feedback.UserId],function(r){
                 U.UF.Cookie.del("usestudiosso");
-                window.location.href="http://feedback.1473.cn/?callback=http://feedback.1473.cn/management.html";  
+                window.location.href="http://login.1473.cn/?callback=http://feedback.1473.cn";  
             });
         });
     }
     Feedback.getUser=function(callback){//得到用户权限信息
         U.A.Request(Feedback.Cd,[Feedback.Db,Feedback.SqlName,"GetJurisdictionName",Feedback.UserId],function (r){//获取权限
-            if(r.value==null){//判断用户是否为空,为空则提示并跳转
+            if(r.value.length==0){//判断用户是否为空,为空则提示并跳转
                 alert("请输入有效账户");
                 Feedback.logout();//退出跳转
+                return false;
             }
             if(r.value[0].JurisdictionName=="admin"){
                 Feedback.userName.innerText =  U.UF.Cookie.get("usestudiosso","username")[0]+'(管理员)';//登陆者名称

+ 0 - 29
login.html

@@ -1,29 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-    <meta charset="UTF-8">
-    <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <meta http-equiv="X-UA-Compatible" content="ie=edge">
-    <title>反馈登陆</title>
-    <link rel="stylesheet" href="./css/uform.css">
-    <link rel="stylesheet" href="./css/U_BS_L.css">
-    <link rel="stylesheet" href="./css/feedback.css">
-
-
-</head>
-<body>
-<div class="U_BS_L" onkeydown="U.BS.L.Return()">
-    <form class="U_BS_L_H_Form">
-        <img src="./images/logo.png" alt="logo">
-        <h4>有思后台系统</h4>
-        <input type="text" class="U_BS_L_a form-control" placeholder="用户名/手机号/邮箱" maxlength="30">
-        <div class="U_BS_L_Info"></div>
-        <input type="password" class="U_BS_L_p form-control" placeholder="密码" maxlength="32">
-        <div class="U_BS_L_Info U_BS_L_pInfo"></div>
-        <button type="button" class="U_BS_L_Submit">登陆</button>
-    </form>
-</div>
-</body>
-<script src="./js/uform.js"></script>
-<script src="./js/U_BS_L.js"></script>
-</html>

+ 3 - 1
web.config

@@ -3,7 +3,9 @@
     <system.webServer>
         <defaultDocument>
             <files>
-                <add value="login.html" />
+                <remove value="index.htm" />
+                <remove value="index.html" />
+                <add value="management.html" />
             </files>
         </defaultDocument>
     </system.webServer>