自动化立体仓库 - WMS系统
#
zwl
12 小时以前 43d0ae7dbb21292cefb4d975b4adb8bea03499d4
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>