From 002f10f7d38dc6791d26a69d061e6b17f9980fd0 Mon Sep 17 00:00:00 2001
From: zhangc <zc@123>
Date: 星期一, 24 三月 2025 19:41:36 +0800
Subject: [PATCH] 1

---
 src/main/webapp/views/index.html |   34 +++++++++++++++++++++++++++-------
 1 files changed, 27 insertions(+), 7 deletions(-)

diff --git a/src/main/webapp/views/index.html b/src/main/webapp/views/index.html
index 6d576f4..accdf66 100644
--- a/src/main/webapp/views/index.html
+++ b/src/main/webapp/views/index.html
@@ -25,7 +25,7 @@
   <!-- 澶撮儴 -->
   <div class="layui-header">
     <div class="layui-logo">
-      <img src="../static/image/logo.png" style="display: inline-block; width: 60%;height: auto">
+      <img src="../static/image/logo1.png" style="display: inline-block; width: 60%;height: auto">
       <!--          <span style="margin-top: 0; letter-spacing: 10px">涓壃绔嬪簱</span>-->
       <!--          <img src="../static/image/logo.svg"/>-->
       <!--          <cite>涓壃 - Zoneyung</cite>-->
@@ -40,8 +40,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>
@@ -85,10 +88,10 @@
   <div class="layuimini-loader-inner"></div>
 </div>
 
-<script type="text/javascript" src="../static/js/jquery/jquery-3.3.1.min.js"></script>
-<script type="text/javascript" src="../static/layui/layui.js"></script>
-<script type="text/javascript" src="../static/js/handlebars/handlebars-v4.5.3.js"></script>
-<script type="text/javascript" src="../static/js/common.js"></script>
+<script type="text/javascript" src="../static/js/jquery/jquery-3.3.1.min.js?v=100"></script>
+<script type="text/javascript" src="../static/layui/layui.js?v=100"></script>
+<script type="text/javascript" src="../static/js/handlebars/handlebars-v4.5.3.js?v=100"></script>
+<script type="text/javascript" src="../static/js/common.js?v=100"></script>
 <script>
   console.log('%c 涓壃绔嬪簱骞冲彴 %c 1.0.0','background-color:rgb(53,73,94);color: #fff;border-radius:2px 0 0 2px;padding:2px 4px;','background-color:rgb(25,190,107);color: #fff;border-radius:0 2px 2px 0;padding:2px 4px;font: 9pt "Apercu Regular", Georgia, "Times New Roman", Times, serif;');
   $(function () {
@@ -139,6 +142,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