From 43d0ae7dbb21292cefb4d975b4adb8bea03499d4 Mon Sep 17 00:00:00 2001
From: zwl <1051256694@qq.com>
Date: 星期六, 21 三月 2026 16:42:26 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/login.html |   68 +++++++++++++++++++++++++++++----
 1 files changed, 59 insertions(+), 9 deletions(-)

diff --git a/src/main/webapp/views/login.html b/src/main/webapp/views/login.html
index b89c4c4..e516ab0 100644
--- a/src/main/webapp/views/login.html
+++ b/src/main/webapp/views/login.html
@@ -46,13 +46,30 @@
             text-align: center;
         }
 
-        .license-entry-text {
+        .login-system-name {
             width: 80%;
+            margin: 18px auto 6px;
+            color: #6b6b6b;
+            font-size: 24px;
+            font-weight: 700;
+            letter-spacing: 8px;
+            line-height: 1.2;
+            cursor: pointer;
+            user-select: none;
+        }
+
+        .license-entry-wrap {
+            width: 80%;
+            margin: 22px auto 0;
+        }
+
+        .license-entry-text {
+            width: 100%;
             margin: 0 auto 12px;
             color: #5e5e5e;
             font-size: 12px;
             line-height: 1.7;
-            text-align: left;
+            text-align: center;
         }
 
         .system-tool-shell {
@@ -243,6 +260,7 @@
             <img src="../static/image/zy_logo_dark_color.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="login-system-name" id="wmsTrigger">WMS</div>
             <div class="wrap-input100 validate-input m-b-10" data-validate="璇疯緭鍏ョ敤鎴峰悕">
                 <input id="username" class="input100" type="text" name="username" placeholder="username"
                        autocomplete="off">
@@ -261,9 +279,9 @@
             <div class="container-login100-form-btn p-t-10">
                 <button class="login100-form-btn login-btn">Login</button>
             </div>
-            <div class="container-login100-form-btn p-t-10" style="display: none;margin-top: 50px;" id="updateLicense">
-                <div class="license-entry-text" id="licenseEntryMessage">绯荤粺褰撳墠鏈娴嬪埌鍙敤璁稿彲璇侊紝璇锋墦寮�绯荤粺宸ュ叿澶勭悊璁稿彲璇併��</div>
-                <button class="login100-form-btn" id="openLicenseTool" type="button">绯荤粺宸ュ叿</button>
+            <div class="license-entry-wrap" style="display: none;" id="updateLicense">
+                <div class="license-entry-text" id="licenseEntryMessage">绯荤粺褰撳墠鏈娴嬪埌鍙敤璁稿彲璇侊紝璇锋墦寮�璇佷功宸ュ叿澶勭悊璁稿彲璇併��</div>
+                <button class="login100-form-btn" id="openLicenseTool" type="button">璇佷功</button>
             </div>
         </div>
     </div>
@@ -297,6 +315,10 @@
         textLayerIndex: null,
         uploadLayerIndex: null
     };
+    var wmsTriggerState = {
+        count: 0,
+        lastClickTime: 0
+    };
 
     function getQueryValue(name) {
         var query = window.location.search.substring(1).split("&");
@@ -327,8 +349,14 @@
         });
     }
 
-    function showLicenseEntry(message) {
+    function showLicenseEntry(message, showMessage) {
         $("#updateLicense").show();
+        if (showMessage === false) {
+            $("#licenseEntryMessage").text("濡傞渶鏇存柊璁稿彲锛岃鐐瑰嚮璇佷功宸ュ叿銆�");
+            $("#licenseEntryMessage").hide();
+            return;
+        }
+        $("#licenseEntryMessage").show();
         if (message) {
             $("#licenseEntryMessage").text(message);
         }
@@ -365,6 +393,23 @@
                 callback(false);
             }
         });
+    }
+
+    function handleWmsTriggerClick() {
+        var now = new Date().getTime();
+        if (now - wmsTriggerState.lastClickTime <= 1500) {
+            wmsTriggerState.count += 1;
+        } else {
+            wmsTriggerState.count = 1;
+        }
+        wmsTriggerState.lastClickTime = now;
+        if (wmsTriggerState.count < 3) {
+            return;
+        }
+        wmsTriggerState.count = 0;
+        wmsTriggerState.lastClickTime = 0;
+        showLicenseEntry("", false);
+        layer.msg('璇佷功鍏ュ彛宸叉樉绀�', {time: 1200});
     }
 
     function escapeHtml(text) {
@@ -771,7 +816,7 @@
                     layer.tips(res.msg, '#password', {tips: [4, '#ff0000']});
                 } else if (res.code == 20001) {
                     layer.tips(res.msg, '.login-btn', {tips: [3, '#ff0000']});
-                    showLicenseEntry(res.msg)
+                    showLicenseEntry(res.msg, true)
                     openLicenseTool(res.msg)
                 } else {
                     layer.tips(res.msg, '.login-btn', {tips: [3, '#ff0000']});
@@ -787,8 +832,13 @@
     });
 
     $("#openLicenseTool").on("click", () => {
-        openLicenseTool($("#licenseEntryMessage").text());
-    })
+        var message = $("#licenseEntryMessage").is(":visible") ? $("#licenseEntryMessage").text() : "濡傞渶鏇存柊璁稿彲锛岃鐐瑰嚮璇佷功宸ュ叿銆�";
+        openLicenseTool(message);
+    });
+
+    $("#wmsTrigger").on("click", function () {
+        handleWmsTriggerClick();
+    });
 </script>
 </body>
 </html>

--
Gitblit v1.9.1