From acacdfa1b6b5dc0ac0c444c53fcbd05f8552ff3c Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期二, 23 四月 2024 08:44:39 +0800
Subject: [PATCH] #演示

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

diff --git a/src/main/webapp/views/index.html b/src/main/webapp/views/index.html
index 060b54a..12b6616 100644
--- a/src/main/webapp/views/index.html
+++ b/src/main/webapp/views/index.html
@@ -21,11 +21,11 @@
   </style>
 </head>
 <body class="layui-layout-body">
-<div class="layui-layout layui-layout-admin admin-nav-mini">
+<div class="layui-layout layui-layout-admin">
   <!-- 澶撮儴 -->
   <div class="layui-header">
     <div class="layui-logo">
-      <img src="../static/wms/image/logo.png" style="display: inline-block; width: 60%;height: auto">
+      <img class="loginLogo" src="../static/wms/image/logo.png" style="display: inline-block; width: 60%;height: auto">
       <!--          <span style="margin-top: 0; letter-spacing: 10px">涓壃绔嬪簱</span>-->
       <!--          <img src="../static/wms/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>
@@ -74,7 +77,7 @@
   <div class="layui-body"></div>
   <!-- 搴曢儴 -->
   <div class="layui-footer layui-text">
-    copyright 漏 2023 娴欐睙涓壃绔嬪簱鎶�鏈湁闄愬叕鍙� all rights reserved.
+    <span class="copyright-text">copyright 漏 2023 娴欐睙涓壃绔嬪簱鎶�鏈湁闄愬叕鍙� all rights reserved.</span>
     <span class="pull-right">Version 1.0.0</span>
   </div>
 
@@ -131,6 +134,13 @@
           var html = template(res);
           $("#menu-main").html(html);
           element.init();
+
+          $("#a-30519").attr({"href":$("#a-30519").attr("lay-href"),"target":"_blank"})
+          $("#a-30519").attr({"lay-href":""})
+          $("#a-30520").attr({"href":$("#a-30520").attr("lay-href"),"target":"_blank"})
+          $("#a-30520").attr({"lay-href":""})
+          $("#a-30522").attr({"href":$("#a-30522").attr("lay-href"),"target":"_blank"})
+          $("#a-30522").attr({"lay-href":""})
         } else if (res.code === 403) {
           top.location.href = baseUrl + "/login";
         } else {
@@ -139,9 +149,37 @@
       }
     });
 
+    // $.ajax({
+    //   url: baseUrl+"/loginInformation",
+    //   data: {},
+    //   method: 'GET',
+    //   success: function (res) {
+    //     var data = res.data
+    //     // $(".copyright-text").text(data.loginCopyrightText);
+    //     // $(".loginLogo").attr("src", data.loginLogo);
+    //   }
+    // });
+
+    $.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/realtimeWatch/console.html',
+      menuPath: baseUrl+'/views/deviceOperate/rgvOperate.html',
       menuName: '<i class="layui-icon layui-icon-home"></i>'
     });
 
@@ -167,7 +205,7 @@
     <a><i class="layui-icon {{this.menuIcon}}"></i>&emsp;<cite>{{this.menu}}</cite></a>
     <dl class="layui-nav-child">
       {{#each this.subMenu}}
-      <dd><a lay-href="{{this.code}}?resourceId={{this.id}}">{{this.name}}</a></dd>
+      <dd><a lay-href="{{this.code}}?resourceId={{this.id}}" id="a-{{this.id}}">{{this.name}}</a></dd>
       {{/each}}
     </dl>
   </li>

--
Gitblit v1.9.1