Anthony

brand 模块化

1 -<%@ page language="java" contentType="text/html; charset=utf-8" 1 + <%@ page language="java" contentType="text/html; charset=utf-8"
2 pageEncoding="utf-8"%> 2 pageEncoding="utf-8"%>
3 -<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 3 + <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
4 -<%@ page isELIgnored ="false" %> 4 + <%@ page isELIgnored ="false" %>
5 -<% 5 + <%
6 -String path = request.getContextPath(); 6 + String path = request.getContextPath();
7 -String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 7 + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
8 -%> 8 + %>
9 -<script type="text/javascript"> 9 + <script type="text/javascript">
10 -var sessionId = "<%=request.getSession().getId()%>"; 10 + var sessionId = "<%=request.getSession().getId()%>";
11 -var rootUrl ="<%=basePath%>"; 11 + var rootUrl ="<%=basePath%>";
12 -</script> 12 + </script>
13 13
14 -<style> 14 + <style>
15 -.importButton { 15 + .importButton {
16 background: rgba(0, 0, 0, 0) url("css/default/images/portal/import.png") repeat-x scroll 0 0 / auto 100% !important; 16 background: rgba(0, 0, 0, 0) url("css/default/images/portal/import.png") repeat-x scroll 0 0 / auto 100% !important;
17 height: 30px; 17 height: 30px;
18 min-width: 70px; 18 min-width: 70px;
19 padding: 0 5px; 19 padding: 0 5px;
20 -} 20 + }
21 21
22 -#btn-brand-import{ 22 + #btn-brand-import{
23 float: left; 23 float: left;
24 -} 24 + }
25 -#btn-brand-import .uploadify-queue{ 25 + #btn-brand-import .uploadify-queue{
26 display: inline-block; 26 display: inline-block;
27 -} 27 + }
28 -</style> 28 + </style>
29 29
30 -<!-- 页面都为div 页面不要使用id 使用class选择 class命名规范:crm(系统名)-accountset(模块名)-XXX(功能名) --> 30 + <!-- 页面都为div 页面不要使用id 使用class选择 class命名规范:crm(系统名)-accountset(模块名)-XXX(功能名) -->
31 -<div class="data-brand"> 31 + <div class="data-brand">
32 <div class="north rs-navi" data-options="region:'north',border:false"> 32 <div class="north rs-navi" data-options="region:'north',border:false">
33 <a href="javascript:void(0);" class="rs-navi-a">RUNSA PORTAL</a><i>┃</i><a href="javascript:void(0);" class="rs-navi-a">主数据 </a><i>┃</i><a href="javascript:void(0);" class="rs-navi-a">商品 </a><i>┃</i><a href="javascript:void(0);" class="rs-navi-a">经营品牌</a> 33 <a href="javascript:void(0);" class="rs-navi-a">RUNSA PORTAL</a><i>┃</i><a href="javascript:void(0);" class="rs-navi-a">主数据 </a><i>┃</i><a href="javascript:void(0);" class="rs-navi-a">商品 </a><i>┃</i><a href="javascript:void(0);" class="rs-navi-a">经营品牌</a>
34 </div> 34 </div>
...@@ -62,8 +62,8 @@ var rootUrl ="<%=basePath%>"; ...@@ -62,8 +62,8 @@ var rootUrl ="<%=basePath%>";
62 </div> 62 </div>
63 </form> 63 </form>
64 </div> 64 </div>
65 -</div> 65 + </div>
66 -<script type="text/javascript"> 66 + <script type="text/javascript">
67 require(["brand/index"],function(fn){ 67 require(["brand/index"],function(fn){
68 - fn(sessionId,rootUrl);});
69 -</script>
...\ No newline at end of file ...\ No newline at end of file
68 + fn.init(sessionId,rootUrl);});
69 + </script>
...\ No newline at end of file ...\ No newline at end of file
......