From ddc462832f99c124fbcc9653a0878e18768224cd Mon Sep 17 00:00:00 2001
From: lty <876263681@qq.com>
Date: 星期三, 11 六月 2025 16:19:13 +0800
Subject: [PATCH] #修复bug,检索该排全部空库位进行判断
---
src/main/webapp/views/index.html | 39 +++++++++++++++++++++++++++++++++++----
1 files changed, 35 insertions(+), 4 deletions(-)
diff --git a/src/main/webapp/views/index.html b/src/main/webapp/views/index.html
index de5866a..8032cb5 100644
--- a/src/main/webapp/views/index.html
+++ b/src/main/webapp/views/index.html
@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
- <title>閫熻吘 - 鑷姩鍖栫珛浣撲粨搴� - AS / RS</title>
+ <title>钃濈閫� - 鑷姩鍖栫珛浣撲粨搴� - AS / RS</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
@@ -19,9 +19,20 @@
font-weight: 400;
/*margin-left: 5px;*/
}
+ #countdown {
+ position: fixed;
+ top: 12px;
+ left: 45%;
+ z-index: 1000;
+ color: red;
+ font-size: 1.75rem;
+ font-weight: bold;
+ }
</style>
</head>
<body class="layui-layout-body">
+<!--鍊掕鏃�-->
+<div id="countdown">绯荤粺灏嗕簬2024骞�10鏈�13鏃ュ埌鏈�</div>
<div class="layui-layout layui-layout-admin">
<!-- 澶撮儴 -->
<div class="layui-header">
@@ -41,8 +52,11 @@
</li>
</ul>
<ul class="layui-nav layui-layout-right">
- <li class="layui-nav-item" lay-unselect>
- <a ew-event="note" title="渚跨"><i class="layui-icon layui-icon-note"></i></a>
+ <!-- <li class="layui-nav-item" lay-unselect>-->
+ <!-- <a ew-event="note" title="渚跨"><i class="layui-icon layui-icon-note"></i></a>-->
+ <!-- </li>-->
+ <li class="layui-nav-item" lay-unselect id="licenseShow" style="display: none;user-select: none;">
+ <div style="color: red;">璁稿彲璇佹湁鏁堟湡锛�<span id="licenseDays">29</span>澶�</div>
</li>
<li class="layui-nav-item layui-hide-xs" lay-unselect>
<a ew-event="fullScreen" title="鍏ㄥ睆"><i class="layui-icon layui-icon-screen-full"></i></a>
@@ -75,7 +89,7 @@
<div class="layui-body"></div>
<!-- 搴曢儴 -->
<div class="layui-footer layui-text">
- copyright 漏 2022 <a href="http://www.zoneyung.com" target="_blank">娴欐睙閫熻吘鐢靛瓙鏈夐檺鍏徃</a> all rights reserved.
+ copyright 漏 2022 <a href="https://www.superton.cn/" target="_blank">鑻忓窞鍐犻缚鏅鸿兘瑁呭鏈夐檺鍏徃</a> all rights reserved.
<span class="pull-right">Version 1.0.0</span>
</div>
@@ -140,6 +154,23 @@
}
});
+ $.ajax({
+ url: baseUrl + "/license/getLicenseDays",
+ headers: {'token': localStorage.getItem('token')},
+ method: 'POST',
+ success: function (res) {
+ if (res.code == 200) {
+ let days = res.data
+ if (days <= 30) {
+ $("#licenseShow").show()
+ $("#licenseDays").html(days)
+ }
+ }else {
+ top.location.href = baseUrl + "/login";
+ }
+ }
+ });
+
// 榛樿鍔犺浇涓婚〉
index.loadHome({
menuPath: baseUrl+'/views/home/navigation.html',
--
Gitblit v1.9.1