| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <%@ page contentType="text/html;charset=UTF-8" language="java"%>
- <%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
- <!DOCTYPE HTML>
- <html xmlns=http://www.w3.org/1999/xhtml>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
- <meta name="viewport"
- content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
- <!--[if lt IE 9]>
- <script src="//cdn.bootcss.com/html5shiv/r29/html5.min.js"></script>
- <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
- <![endif]-->
- <script type="text/javascript">
- <c:if test="${not empty userData}">
- window.userData = {
- mobile : "${userData.mobile}",
- nickname : "${userData.nickname}",
- number : "${userData.number}",
- type : "${userData.type}",
- email : "${userData.email}",
- createTime : "${userData.createTime}",
- lvl : "${userData.lvl}"
- }
- </c:if>
- <c:if test="${empty userData}">
- window.userData = ""
- </c:if>
- window.globalConfig = {
- context : "${basePath}",
- staticHost : "${staticHost}",
- uploadPath : "${uploadPath}",
- uploadPrivatePath : "${uploadPrivatePath}",
- avatarHost : "${avatarHost}"
- }
- <c:if test="${not empty adminData}">
- window.adminData = {
- mobile : "${adminData.mobile}",
- name : "${adminData.name}",
- email : "${adminData.email}",
- createTime : "${adminData.createTime}"
- }
- </c:if>
- <c:if test="${empty adminData}">
- window.adminData = ""
- </c:if>
- <shiro:hasRole name="999999">
- window.showSystem = true;
- window.showUserManage = true;
- window.showServices = true;
- window.showAchievement = true;
- window.showDemand = true;
- window.showIdea = true;
- window.showUserList = true;
- window.showOrgList = true;
- window.showUserList = true;
- window.showOrgList = true;
- </shiro:hasRole>
- <shiro:hasPermission name="userManage">
- window.showUserManage = true;
- </shiro:hasPermission>
- <shiro:hasPermission name="services">
- window.showServices = true;
- </shiro:hasPermission>
- <shiro:hasPermission name="achievement">
- window.showAchievement = true;
- </shiro:hasPermission>
- <shiro:hasPermission name="demand">
- window.showDemand = true;
- </shiro:hasPermission>
- <shiro:hasPermission name="idea">
- window.showIdea = true;
- </shiro:hasPermission>
- <shiro:hasPermission name="customer">
- window.showCustomer = true;
- </shiro:hasPermission>
- <shiro:hasPermission name="api/admin/userList">
- window.showUserList = true;
- </shiro:hasPermission>
- <shiro:hasPermission name="api/admin/orgList">
- window.showOrgList = true;
- </shiro:hasPermission>
-
- </script>
- <script type="text/javascript" src="${staticHost}/vendors.js"></script>
|