| | |
| | | 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 { |
| | |
| | | <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"> |
| | |
| | | <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> |
| | |
| | | textLayerIndex: null, |
| | | uploadLayerIndex: null |
| | | }; |
| | | var wmsTriggerState = { |
| | | count: 0, |
| | | lastClickTime: 0 |
| | | }; |
| | | |
| | | function getQueryValue(name) { |
| | | var query = window.location.search.substring(1).split("&"); |
| | |
| | | }); |
| | | } |
| | | |
| | | function showLicenseEntry(message) { |
| | | function showLicenseEntry(message, showMessage) { |
| | | $("#updateLicense").show(); |
| | | if (showMessage === false) { |
| | | $("#licenseEntryMessage").text("如需更新许可,请点击证书工具。"); |
| | | $("#licenseEntryMessage").hide(); |
| | | return; |
| | | } |
| | | $("#licenseEntryMessage").show(); |
| | | if (message) { |
| | | $("#licenseEntryMessage").text(message); |
| | | } |
| | |
| | | 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) { |
| | |
| | | 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']}); |
| | |
| | | }); |
| | | |
| | | $("#openLicenseTool").on("click", () => { |
| | | openLicenseTool($("#licenseEntryMessage").text()); |
| | | }) |
| | | var message = $("#licenseEntryMessage").is(":visible") ? $("#licenseEntryMessage").text() : "如需更新许可,请点击证书工具。"; |
| | | openLicenseTool(message); |
| | | }); |
| | | |
| | | $("#wmsTrigger").on("click", function () { |
| | | handleWmsTriggerClick(); |
| | | }); |
| | | </script> |
| | | </body> |
| | | </html> |