소스 검색

Added SignIn Page

Fruit of Eden 6 년 전
부모
커밋
9b324212a9
3개의 변경된 파일52개의 추가작업 그리고 69개의 파일을 삭제
  1. 20 53
      denglu.html
  2. 4 0
      index.html
  3. 28 16
      sign-in1.html

+ 20 - 53
denglu.html

@@ -89,68 +89,35 @@
     <nav class="navbar" style="background-color: red">
         <div class="container-fluid">
             <div class="navbar-header">
-                <a class="navbar-brand" href="index.html">工厂产能监控系统</a>
+                <a class="navbar-brand text-white" href="index.html">工厂产能监控系统</a>
             </div>
-            <div style="color: #ffffff"><img src="images/logo.jpg" style="width: 10%"> 深圳市度彼电子有限公司——</div>
+            <div style="color: #ffffff"><img src="images/logo.jpg" style="width: 10%"> &nbsp;&nbsp;&nbsp;&nbsp;深圳市度彼电子有限公司</div>
             <font color="#ffffff"><span id="nowDateTimeSpan"></span></font>
         </div>
     </nav>
-    <div class="container-fluid" style="margin-top: 20em">
-        <div class="row">
-            <div class="col-6">
-                <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"
-                        aria-haspopup="true" aria-expanded="false" style="width: 30%">
-                    拉 <span class="caret"></span>
-                </button>
-            </div>
-            <div class="col-6">
-                <div class="bootstrap-select">
-                    <select class="" tabindex="-98">
-                        <option value="">-- Please select --</option>
-                        <option value="10">10</option>
-                        <option value="20">20</option>
-                        <option value="30">30</option>
-                        <option value="40">40</option>
-                        <option value="50">50</option>
-                    </select>
-                    <select class="selectpicker">
-                        <option>Mustard</option>
-                        <option>Ketchup</option>
-                        <option>Relish</option>
-                    </select>
-
-                </div>
+    <div class="container-fluid" style="margin-top: 10em">
+        <div class="card">
+            <h5 class="card-header">生产拉线模式</h5>
+            <div class="card-body">
+                <h5 class="card-title">您可以看到生产线内部的实时状况</h5>
+                <p class="card-text">
+                    点击下面按钮,开始一个班次
+                <br>
+                    点击下面按钮,开始一个班次
+                </p>
+                <a href="#" class="btn btn-primary" onclick="location.href='lazhang.html?scheduleId=8&flowId=2'">开始班次</a>
             </div>
         </div>
-        <div class="col-12 row">
-            <button type="button" class="btn btn-primary btn-lg btn-block" style="float: right;width: 30%">Block level
-                button
-            </button>
+        <div class="card">
+            <h5 class="card-header">大屏模式</h5>
+            <div class="card-body">
+                <h5 class="card-title">您可以看到生产线内部的实时状况</h5>
+                <p class="card-text">点击下面按钮,打开大屏幕</p>
+                <a href="#" class="btn btn-primary" onclick="location.href='dapingmu.html'">前往大屏幕</a>
+            </div>
         </div>
     </div>
-
-    <div class="text-center" style="width: 30%;padding-top: 10em;margin: 0 auto">
-
-        <button class="btn btn-block bg-pink waves-effect" type="submit" style="">上班</button>
-
-    </div>
 </div>
-
-<!-- Jquery Core Js -->
-<script src="../../plugins/jquery/jquery.min.js"></script>
-
-<!-- Bootstrap Core Js -->
-<script src="../../plugins/bootstrap/js/bootstrap.js"></script>
-
-<!-- Waves Effect Plugin Js -->
-<script src="../../plugins/node-waves/waves.js"></script>
-
-<!-- Validation Plugin Js -->
-<script src="../../plugins/jquery-validation/jquery.validate.js"></script>
-
-<!-- Custom Js -->
-<script src="../../js/admin.js"></script>
-<script src="../../js/pages/examples/sign-in.js"></script>
 </body>
 
 </html>

+ 4 - 0
index.html

@@ -30,6 +30,10 @@
 
     <!-- AdminBSB Themes. You can choose a theme from css/themes instead of get all themes -->
     <link href="css/themes/all-themes.css" rel="stylesheet" />
+
+    <script>
+        location.href="sign-in1.html"
+    </script>
 </head>
 
 <body class="theme-black">

+ 28 - 16
sign-in1.html

@@ -8,7 +8,6 @@
     <title>流水线管理页</title>
     <!-- Favicon-->
     <link rel="icon" href="favicon.ico" type="image/x-icon">
-
     <!-- Google Fonts -->
     <link href="css/cyllic.css" rel="stylesheet" type="text/css">
     <link href="css/mateial.css" rel="stylesheet" type="text/css">
@@ -39,16 +38,8 @@
     <script src="https://cdn.bootcss.com/bootstrap/4.0.0/js/bootstrap.min.js"
             integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
             crossorigin="anonymous"></script>
-
     <link rel="icon" href="https://static.jianshukeji.com/highcharts/images/favicon.ico">
     <meta name="viewport" content="width=device-width, initial-scale=1">
-    <style>
-        /* css 代码  */
-    </style>
-    <script src="https://img.hcharts.cn/highcharts/highcharts.js"></script>
-    <script src="https://img.hcharts.cn/highcharts/modules/exporting.js"></script>
-    <script src="https://img.hcharts.cn/highcharts-plugins/highcharts-zh_CN.js"></script>
-    <script src="https://img.hcharts.cn/highcharts/themes/dark-unica.js"></script>
 </head>
 
 <body class="login-page ls-closed " style="background-color: #303030 ">
@@ -89,24 +80,45 @@
     </div>
 
     <!-- Jquery Core Js -->
-    <script src="../../plugins/jquery/jquery.min.js"></script>
+    <script src="plugins/jquery/jquery.min.js"></script>
 
     <!-- Bootstrap Core Js -->
-    <script src="../../plugins/bootstrap/js/bootstrap.js"></script>
+    <script src="plugins/bootstrap/js/bootstrap.js"></script>
 
     <!-- Waves Effect Plugin Js -->
-    <script src="../../plugins/node-waves/waves.js"></script>
+    <script src="plugins/node-waves/waves.js"></script>
 
     <!-- Validation Plugin Js -->
-    <script src="../../plugins/jquery-validation/jquery.validate.js"></script>
+    <script src="plugins/jquery-validation/jquery.validate.js"></script>
 
     <!-- Custom Js -->
-    <script src="../../js/admin.js"></script>
-    <script src="../../js/pages/examples/sign-in.js"></script>
+    <script src="js/admin.js"></script>
+    <script src="js/pages/examples/sign-in.js"></script>
 
     <script>
+        SV = "";
+        if(location.host.indexOf("niimei") == -1){
+            SV = "http://172.30.84.3:8803"
+        }
         function gotoLogin(){
-
+            $.ajax({
+                url : SV+"/server/fcWorker/login?u="+$('input[name="username"]').val()+
+                "&p="+$('input[name="password"]').val()
+            }).done(function(obj){
+                console.log(obj);
+                alert(obj);
+                if(typeof obj == "string"){
+                    obj = JSON.parse(obj);
+                }
+                if(obj.ret != "10000" || obj.model.list == undefined || obj.model.list.length <= 0){
+                    alert("登录失败");
+                    return;
+                }
+                location.href="denglu.html?userId="+obj.model.list[0].userId;
+            }).fail(function(fa){
+                console.log(fa);
+                alert("登陆失败");
+            });
     }
     </script>
 </body>