nn 8 роки тому
коміт
d379b8adc0
9 змінених файлів з 284 додано та 0 видалено
  1. 71 0
      css/U_BS_L.css
  2. 1 0
      css/uform.css
  3. BIN
      images/backgroundBanner.jpg
  4. BIN
      images/close.png
  5. BIN
      images/logo.png
  6. 47 0
      js/U_BS_L.js
  7. 129 0
      js/uform.js
  8. 26 0
      login.html
  9. 10 0
      web.config

+ 71 - 0
css/U_BS_L.css

@@ -0,0 +1,71 @@
+/* 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 */

Різницю між файлами не показано, бо вона завелика
+ 1 - 0
css/uform.css


BIN
images/backgroundBanner.jpg


BIN
images/close.png


BIN
images/logo.png


+ 47 - 0
js/U_BS_L.js

@@ -0,0 +1,47 @@
+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();
+}();

Різницю між файлами не показано, бо вона завелика
+ 129 - 0
js/uform.js


+ 26 - 0
login.html

@@ -0,0 +1,26 @@
+<!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">
+</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>

+ 10 - 0
web.config

@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration>
+    <system.webServer>
+        <defaultDocument>
+            <files>
+                <add value="login.html" />
+            </files>
+        </defaultDocument>
+    </system.webServer>
+</configuration>