| | |
| | | <html> |
| | | <head> |
| | | <meta charset="utf-8"> |
| | | <title>自动仓储管理系统</title> |
| | | <title>自动仓储 - 管理系统</title> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"> |
| | | <link rel="icon" type="image/x-icon" href="../static/image/log.png" /> |
| | | <link rel="stylesheet" href="../static/layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../static/layuiadmin/style/admin.css" media="all"> |
| | | <style> |
| | |
| | | <div class="layui-side layui-side-menu"> |
| | | <div class="layui-side-scroll"> |
| | | <div class="layui-logo" lay-href="home/console.html"> |
| | | <!--<img src="../static/image/logo.jpg">--> |
| | | <!--<img src="..../../static/image/logo.jpg">--> |
| | | <span>中扬储存设备</span> |
| | | </div> |
| | | |
| | |
| | | var element = layui.element; |
| | | var $ = layui.jquery; |
| | | |
| | | // 替换退出按钮变量 |
| | | var logout = document.getElementById('logout'); |
| | | var url = logout.getAttribute('href'); |
| | | logout.setAttribute('href', baseUrl + url); |
| | | |
| | | $('#person-username').text(localStorage.getItem('username')); |
| | | |
| | | $(function () { |
| | | if ("" === localStorage.getItem('token')){ |
| | | top.location.href = "/login"; |
| | | top.location.href = baseUrl+"/login"; |
| | | } |
| | | $.ajax({ |
| | | url: "/menu/auth", |
| | | url: baseUrl+ "/menu/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | method: 'POST', |
| | | success: function (res) { |
| | |
| | | $('#LAY-system-side-menu').append(menuHtml); |
| | | element.init(); |
| | | } else if (res.code === 403){ |
| | | top.location.href = "/login"; |
| | | top.location.href = baseUrl+"/login"; |
| | | }else { |
| | | layer.alert(res.msg) |
| | | } |