From a29f20b16252aca2a11820d8faef6af63e102690 Mon Sep 17 00:00:00 2001
From: yxj <1qaz@123>
Date: 星期五, 17 三月 2023 10:21:40 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MESWMS-LayUI

---
 WebTM/views/index.html |   29 ++++++++++++++++++++++++++++-
 1 files changed, 28 insertions(+), 1 deletions(-)

diff --git a/WebTM/views/index.html b/WebTM/views/index.html
index 8460ca6..2467394 100644
--- a/WebTM/views/index.html
+++ b/WebTM/views/index.html
@@ -97,7 +97,7 @@
             </div>
 
             <!-- 渚ц竟鑿滃崟 -->
-            <div class="layui-side layui-side-menu">
+            <div class="layui-side layui-side-menu" id="fouce">
                 <div class="layui-side-scroll">
                     <div class="layui-logo" lay-href="home/console.html">
                         <img src="../layuiadmin/myicon/win.svg" alt="PC绔�" style="width:25px;height:25px;margin-right: 5px;" />
@@ -1144,8 +1144,35 @@
             if (!judgeMorPCflag) {//绉诲姩绔�
                 window.location.href = 'index_Mobile.html'
             }
+
+            $("#LAY_app_flexible").click();
         });
 
+
+        var timer;
+        var dom;
+        //绉诲叆鏃惰Е鍙戜簨浠�(涓嶅寘鍚瓙鍏冪礌)
+        fouce.onmouseenter = function (event) {
+            dom = $("#LAY_app_flexible").attr('class');
+            //鍏抽棴瀹氭椂鍣�
+            clearInterval(timer);
+            if (dom == "layui-icon layui-icon-spread-left") {
+                $("#LAY_app_flexible").click();
+            }
+        }
+         //绉诲嚭鏃惰Е鍙戜簨浠�(涓嶅寘鍚瓙鍏冪礌)
+        fouce.onmouseleave = function (event) {
+            dom = $("#LAY_app_flexible").attr('class');
+            if (dom == "layui-icon layui-icon-shrink-right") {
+                //鍊掕鏃跺叧闂�
+                timer = setTimeout(function () {
+                    $("#LAY_app_flexible").click();
+                }, 3000);
+            }
+        }
+
+      
+
         document.getElementById('UserName').innerHTML = sessionStorage["HUserName"];
         document.getElementById('Organization').innerHTML = sessionStorage["Organization"];
     </script>

--
Gitblit v1.9.1