| | |
| | | <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> |
| | |
| | | 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"> |