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 | 26 ++++++++++++++++++++++++--
1 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/src/main/webapp/views/index.html b/src/main/webapp/views/index.html
index de5866a..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>
@@ -75,7 +75,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>
@@ -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