From f34da12c558d57d156529e23c04e2388e60b94e5 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期三, 14 六月 2023 10:27:17 +0800
Subject: [PATCH] #组托逻辑
---
src/main/webapp/views/index.html | 24 +++++++++++++++++++++++-
1 files changed, 23 insertions(+), 1 deletions(-)
diff --git a/src/main/webapp/views/index.html b/src/main/webapp/views/index.html
index 0523023..20a7e84 100644
--- a/src/main/webapp/views/index.html
+++ b/src/main/webapp/views/index.html
@@ -52,7 +52,7 @@
<cite id="username" style="margin-right: 5px">绠$悊鍛�</cite>
</a>
<dl class="layui-nav-child">
- <dd lay-unselect><a ew-href="detail.html?resourceId=8">鍩烘湰璧勬枡</a></dd>
+ <dd lay-unselect><a id="personPage" ew-href="detail.html?resourceId=8">鍩烘湰璧勬枡</a></dd>
<hr>
<dd lay-unselect><a id="logout">閫�鍑�</a></dd>
</dl>
@@ -160,6 +160,28 @@
var url = logout.getAttribute('href');
logout.setAttribute('href', baseUrl + "/login");
+ let username = localStorage.getItem('username')
+ let password = localStorage.getItem('password')
+ if (!(username === 'super' || password === 'root')) {
+ if(!checkPassword(password)){
+ //瑕佹眰淇敼瀵嗙爜
+ layer.msg('寮卞瘑鐮佽淇敼瀵嗙爜鍐嶇户缁�', {icon: 2});
+ layer.open({
+ type: 2,
+ title: '鍩烘湰璧勬枡',
+ maxmin: true,
+ shadeClose: false,
+ area: [top.detailWidth, top.detailHeight],
+ content: 'detail.html',
+ closeBtn: 0,
+ success: function(layero, index){
+ layero.find('.layui-layer-min').remove(); //鍘绘帀鏈�灏忓寲鎸夐挳
+ layero.find('.layui-layer-max').remove(); //鍘绘帀鏈�澶у寲鎸夐挳
+ }
+ })
+ }
+ }
+
});
</script>
<script type="text/html" id="menuTpl">
--
Gitblit v1.9.1