From 8e943b7104561c3b14cf223016698709c5ade4b5 Mon Sep 17 00:00:00 2001
From: lty <876263681@qq.com>
Date: 星期二, 03 二月 2026 15:37:26 +0800
Subject: [PATCH] #pda料箱组托和换码
---
src/main/webapp/views/login.html | 47 ++++++++++++++++++++++++++++-------------------
1 files changed, 28 insertions(+), 19 deletions(-)
diff --git a/src/main/webapp/views/login.html b/src/main/webapp/views/login.html
index b58efe4..82768de 100644
--- a/src/main/webapp/views/login.html
+++ b/src/main/webapp/views/login.html
@@ -3,14 +3,14 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
- <title>wms</title>
+ <title>arydasrs</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">
<meta name="theme-color" content="#111111">
<meta name="msapplication-TileImage" content="/sketch-threejs/img/common/ms_tileimage.png">
<meta name="msapplication-TileColor" content="#111111">
-<!-- <link rel="icon" type="image/x-icon" href="../static/image/favicon.ico" />-->
+ <link rel="icon" type="image/x-icon" href="../static/image/favicon.ico" />
<link rel="stylesheet" href="../static/css/font/font-awesome-4.7.0/css/font-awesome.css">
<link rel="stylesheet" href="../static/css/main.min.css">
<link rel="stylesheet" href="../static/css/login.css">
@@ -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/logo.png" alt="" style="width: 20%">
</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
+<!-- <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>
<p class="p-sketch-outline__description">wms made with various simple objects.</p>
</div>
@@ -66,19 +66,19 @@
<!-- 渚ц竟鏍� -->
<div id="sidebar">
<div class="login-contain">
- <div class="login-box">
-<!-- <img src="../static/image/logo.png" alt="" style="width: 80%">-->
+ <div class="login-box">x
+ <img src="../static/image/logo.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">
+ <div class="wrap-input100 validate-input m-b-10" data-i18n="please_enter_login_account" data-i18n-attr="data-validate">
+ <input id="username" class="input100" type="text" name="username" data-i18n-placeholder="login_account" autocomplete="off">
<span class="focus-input100"></span>
<span class="symbol-input100">
<i class="fa fa-user"></i>
</span>
</div>
- <div class="wrap-input100 validate-input m-b-10" data-validate="璇疯緭鍏ュ瘑鐮�">
- <input id="password" class="input100" type="password" name="pass" placeholder="password">
+ <div class="wrap-input100 validate-input m-b-10" data-i18n="please_enter_password" data-i18n-attr="data-validate">
+ <input id="password" class="input100" type="password" name="pass" data-i18n-placeholder="password">
<span class="focus-input100"></span>
<span class="symbol-input100">
<i class="fa fa-lock"></i>
@@ -102,6 +102,7 @@
<script type="text/javascript" src="../static/js/tools/md5.js"></script>
<script type="text/javascript" src="../static/layer/layer.js"></script>
<script type="text/javascript" src="../static/js/common.js"></script>
+ <script type="text/javascript" src="../static/js/i18n/i18n-helper.js"></script>
<script>
// remember pwd
$(function () {
@@ -120,12 +121,14 @@
$(document).on('click','.login-btn', function () {
let username = $("#username").val();
if (username === "") {
- layer.tips('璇疯緭鍏ョ櫥褰曡处鍙�', '#username', {tips: [4, '#ff0000']});
+ var tip = typeof I18n !== 'undefined' ? I18n.t('please_enter_login_account') : '璇疯緭鍏ョ櫥褰曡处鍙�';
+ layer.tips(tip, '#username', {tips: [4, '#ff0000']});
return;
}
let password = $("#password").val();
if (password === "") {
- layer.tips('璇疯緭鍏ュ瘑鐮�', '#password', {tips: [4, '#ff0000']});
+ var tip = typeof I18n !== 'undefined' ? I18n.t('please_enter_password') : '璇疯緭鍏ュ瘑鐮�';
+ layer.tips(tip, '#password', {tips: [4, '#ff0000']});
return;
}
$.ajax({
@@ -141,16 +144,21 @@
localStorage.setItem("username", res.data.username);
window.location.href = "index.html";
} else if (res.code === 10001) {
- layer.tips(res.msg, '#username', {tips: [4, '#ff0000']});
+ var msg = typeof I18n !== 'undefined' ? I18n.t(res.msg) : res.msg;
+ layer.tips(msg, '#username', {tips: [4, '#ff0000']});
} else if (res.code === 10002) {
- layer.tips(res.msg, '#username', {tips: [4, '#ff0000']});
+ var msg = typeof I18n !== 'undefined' ? I18n.t(res.msg) : res.msg;
+ layer.tips(msg, '#username', {tips: [4, '#ff0000']});
} else if (res.code === 10003) {
- layer.tips(res.msg, '#password', {tips: [4, '#ff0000']});
+ var msg = typeof I18n !== 'undefined' ? I18n.t(res.msg) : res.msg;
+ layer.tips(msg, '#password', {tips: [4, '#ff0000']});
} else if (res.code == 20001) {
- layer.tips(res.msg, '.login-btn', {tips: [3, '#ff0000']});
+ var msg = typeof I18n !== 'undefined' ? I18n.t(res.msg) : res.msg;
+ layer.tips(msg, '.login-btn', {tips: [3, '#ff0000']});
$("#updateLicense").show()
} else {
- layer.tips(res.msg, '.login-btn', {tips: [3, '#ff0000']});
+ var msg = typeof I18n !== 'undefined' ? I18n.t(res.msg) : res.msg;
+ layer.tips(msg, '.login-btn', {tips: [3, '#ff0000']});
}
}
});
@@ -187,7 +195,8 @@
parent.location.reload()
});
}else{
- layer.msg(res.msg,{time:2000},() => {
+ var msg = typeof I18n !== 'undefined' ? I18n.t(res.msg) : res.msg;
+ layer.msg(msg,{time:2000},() => {
parent.location.reload()
})
}
--
Gitblit v1.9.1