自动化立体仓库 - WMS系统
#
zjj
2025-04-14 2310cd72974e2fb7a5ec006c8c615379f5ba0b9a
src/main/webapp/views/login.html
@@ -3,7 +3,7 @@
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>中扬 │ login of zoneyung wms</title>
    <title>wms | 自动化仓储</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1">
    <meta name="description" content="study of Instancing with three.js">
    <meta name="keywords" content="undefined, Yoichi Kobayashi, WebGL, three.js">
@@ -53,11 +53,11 @@
                    z-index: 100;
                    top: 22px;
                    left: 20px;">
        <img src="../static/image/logo.png" alt="" style="width: 20%">
        <img src="../static/image/RMLogo.png" alt="" style="width: 50%">
      </div>
      <div class="p-sketch-outline">
        <h2 class="p-sketch-outline__title">Automatic Storage and Retrieval System</h2>
        <p class="p-sketch-outline__date">posted: 2018.01.01 / update: 2022.09.21
        <p class="p-sketch-outline__date">posted: 2023.05.01 / update: 2023.07.19
        </p>
        <p class="p-sketch-outline__description">wms made with various simple objects.</p>
      </div>
@@ -67,8 +67,8 @@
    <div id="sidebar">
      <div class="login-contain">
        <div class="login-box">
          <img src="../static/image/logo.png" alt="" style="width: 80%">
          <span class="login100-form-title p-t-20 p-b-45">速腾电子</span>
          <img src="../static/image/RMLogo.png" alt="" style="width: 80%">
<!--          <span class="login100-form-title p-t-20 p-b-45">米多智能</span>-->
          <span class="login100-form-title p-t-20 p-b-45" style="margin: 15px 0;color: #868686;font-size: 24px">WMS</span>
          <div class="wrap-input100 validate-input m-b-10" data-validate="请输入用户名">
            <input id="username" class="input100" type="text" name="username" placeholder="username" autocomplete="off">
@@ -121,6 +121,12 @@
        if (password === "") {
          layer.tips('请输入密码', '#password', {tips: [4, '#ff0000']});
          return;
        }else {
          if(!checkPassword(password)){
            //密码必须包含字符和数字
            layer.tips('密码必须包含字符和数字长度不能少于8位,且不能包含连续数字和四位重复数字', '#password', {tips: [4, '#ff0000']});
            return ;
          }
        }
        $.ajax({
          url: baseUrl+"/login.action",
@@ -135,13 +141,7 @@
              localStorage.setItem("username", res.data.username);
              localStorage.setItem("password", password);
              window.location.href = "index.html";
            } else if (res.code === 10001) {
              layer.tips(res.msg, '#username', {tips: [4, '#ff0000']});
            } else if (res.code === 10002) {
              layer.tips(res.msg, '#username', {tips: [4, '#ff0000']});
            } else if (res.code === 10003) {
              layer.tips(res.msg, '#password', {tips: [4, '#ff0000']});
            } else {
            }  else {
              layer.tips(res.msg, '.login-btn', {tips: [3, '#ff0000']});
            }
          }