Browse Source

快捷运营菜单V1.3.10

kaick 1 year ago
parent
commit
818a7f0500

+ 1 - 1
src/main/java/com/caimei/modules/cmpage/web/CmImageController.java

@@ -66,7 +66,7 @@ public class CmImageController extends BaseController {
 
 
 		if(StringUtils.equals("5",cmImage.getFlag())){//首页广告图片(【顶层广告】【轮播图】【小专题】)
 		if(StringUtils.equals("5",cmImage.getFlag())){//首页广告图片(【顶层广告】【轮播图】【小专题】)
 			if(StringUtils.isEmpty(cmImage.getType())){
 			if(StringUtils.isEmpty(cmImage.getType())){
-				cmImage.getSqlMap().put("type", " AND (a.type=5 OR a.type=6 OR a.type=7)");
+				cmImage.getSqlMap().put("type", " AND (a.type=5 OR a.type=6 OR a.type=7 OR a.type=9)");
 			}
 			}
 			Page<CmImage> advertisePage = cmImageService.findPage(new Page<CmImage>(request, response), cmImage);
 			Page<CmImage> advertisePage = cmImageService.findPage(new Page<CmImage>(request, response), cmImage);
 			model.addAttribute("page", advertisePage);
 			model.addAttribute("page", advertisePage);

+ 3 - 3
src/main/java/com/caimei/modules/cmpage/web/CmPageCentreController.java

@@ -82,7 +82,7 @@ public class CmPageCentreController extends BaseController {
             return "modules/cmpage/cmPageDetailsCentreList";
             return "modules/cmpage/cmPageDetailsCentreList";
         }
         }
         //活动专题商品楼层
         //活动专题商品楼层
-        if ("6".equals(cmPageCentre.getType()) || "7".equals(cmPageCentre.getType())) {
+        if ("6".equals(cmPageCentre.getType()) || "7".equals(cmPageCentre.getType())|| "9".equals(cmPageCentre.getType())) {
             return "modules/cmpage/cmPageActivityCentreList";
             return "modules/cmpage/cmPageActivityCentreList";
         }
         }
         //呵呵商城首页楼层
         //呵呵商城首页楼层
@@ -101,7 +101,7 @@ public class CmPageCentreController extends BaseController {
             return "modules/cmpage/cmPageDetailsCentreForm";
             return "modules/cmpage/cmPageDetailsCentreForm";
         }
         }
         //活动专题商品楼层
         //活动专题商品楼层
-        if ("6".equals(cmPageCentre.getType()) || "7".equals(cmPageCentre.getType())) {
+        if ("6".equals(cmPageCentre.getType()) || "7".equals(cmPageCentre.getType())|| "9".equals(cmPageCentre.getType())) {
             return "modules/cmpage/cmPageActivityCentreForm";
             return "modules/cmpage/cmPageActivityCentreForm";
         }
         }
         //呵呵商城商品楼层
         //呵呵商城商品楼层
@@ -234,7 +234,7 @@ public class CmPageCentreController extends BaseController {
         if ("6".equals(newPageFloorContent.getType())) {
         if ("6".equals(newPageFloorContent.getType())) {
             return "modules/newhome/activityFloorContentForm";
             return "modules/newhome/activityFloorContentForm";
         }
         }
-        if ("7".equals(newPageFloorContent.getType())) {
+        if ("7".equals(newPageFloorContent.getType())||"9".equals(newPageFloorContent.getType())) {
             return "modules/newhome/beautyFloorContentForm";
             return "modules/newhome/beautyFloorContentForm";
         }
         }
         if ("8".equals(newPageFloorContent.getType())) {
         if ("8".equals(newPageFloorContent.getType())) {

+ 5 - 1
src/main/java/com/caimei/modules/cmpage/web/CmPageController.java

@@ -69,7 +69,7 @@ public class CmPageController extends BaseController {
     @RequestMapping(value = {"list", ""})
     @RequestMapping(value = {"list", ""})
     public String list(CmPage cmPage, HttpServletRequest request, HttpServletResponse response, Model model) {
     public String list(CmPage cmPage, HttpServletRequest request, HttpServletResponse response, Model model) {
         if (StringUtils.equals("2", cmPage.getFlag())) {// 2网页列表(1项目详情/2二级列表/4自由页面/5分类详情/6活动专题/7云上美博会)
         if (StringUtils.equals("2", cmPage.getFlag())) {// 2网页列表(1项目详情/2二级列表/4自由页面/5分类详情/6活动专题/7云上美博会)
-            cmPage.getSqlMap().put("pageType", " AND (a.type=1 OR a.type=2 OR a.type=4 OR a.type=5 OR a.type=6 OR a.type=7)");
+            cmPage.getSqlMap().put("pageType", " AND (a.type=1 OR a.type=2 OR a.type=4 OR a.type=5 OR a.type=6 OR a.type=7 OR a.type=9)");
         }
         }
         Page<CmPage> page = cmPageService.findPage(new Page<CmPage>(request, response), cmPage);
         Page<CmPage> page = cmPageService.findPage(new Page<CmPage>(request, response), cmPage);
         model.addAttribute("page", page);
         model.addAttribute("page", page);
@@ -108,6 +108,10 @@ public class CmPageController extends BaseController {
         if (StringUtils.equals("27", cmPage.getFlag()) || StringUtils.equals("7", cmPage.getType())) {
         if (StringUtils.equals("27", cmPage.getFlag()) || StringUtils.equals("7", cmPage.getType())) {
             return "modules/cmpage/cmPageBeautyForm";
             return "modules/cmpage/cmPageBeautyForm";
         }
         }
+        // 快捷运营页面
+        if (StringUtils.equals("29", cmPage.getFlag()) || StringUtils.equals("9", cmPage.getType())) {
+            return "modules/cmpage/cmPageShortcutForm";
+        }
         return "modules/cmpage/cmLecturerPageForm";
         return "modules/cmpage/cmLecturerPageForm";
     }
     }
 
 

+ 5 - 2
src/main/java/com/caimei/modules/newhome/web/NewPageFirstNavigationController.java

@@ -68,6 +68,7 @@ public class NewPageFirstNavigationController extends BaseController {
     public String list(NewPageFirstNavigation newPageFirstNavigation, HttpServletRequest request, HttpServletResponse response, Model model) {
     public String list(NewPageFirstNavigation newPageFirstNavigation, HttpServletRequest request, HttpServletResponse response, Model model) {
         Page<NewPageFirstNavigation> page = newPageFirstNavigationService.findPage(new Page<NewPageFirstNavigation>(request, response), newPageFirstNavigation);
         Page<NewPageFirstNavigation> page = newPageFirstNavigationService.findPage(new Page<NewPageFirstNavigation>(request, response), newPageFirstNavigation);
         model.addAttribute("page", page);
         model.addAttribute("page", page);
+        model.addAttribute("newPageFirstNavigation", newPageFirstNavigation);
         return "modules/newhome/newPageFirstNavigationList";
         return "modules/newhome/newPageFirstNavigationList";
     }
     }
 
 
@@ -85,7 +86,9 @@ public class NewPageFirstNavigationController extends BaseController {
             return form(newPageFirstNavigation, model);
             return form(newPageFirstNavigation, model);
         }
         }
         //判断如果已经存在10条数据则不允许添加(产品控制数量显示)
         //判断如果已经存在10条数据则不允许添加(产品控制数量显示)
-        List<NewPageFirstNavigation> list = newPageFirstNavigationService.findList(new NewPageFirstNavigation());
+        NewPageFirstNavigation navigation = new NewPageFirstNavigation();
+        navigation.setType(newPageFirstNavigation.getType());
+        List<NewPageFirstNavigation> list = newPageFirstNavigationService.findList(navigation);
         if (StringUtils.isEmpty(newPageFirstNavigation.getId())) {
         if (StringUtils.isEmpty(newPageFirstNavigation.getId())) {
             if (CollectionUtils.isNotEmpty(list) && list.size() >= 10) {
             if (CollectionUtils.isNotEmpty(list) && list.size() >= 10) {
                 addMessage(model, "最多添加10个主菜单!删除旧菜单后才能继续添加");
                 addMessage(model, "最多添加10个主菜单!删除旧菜单后才能继续添加");
@@ -105,7 +108,7 @@ public class NewPageFirstNavigationController extends BaseController {
         }
         }
         addMessage(redirectAttributes, "保存成功");
         addMessage(redirectAttributes, "保存成功");
         cleanRedisCache();// 清理redis缓存
         cleanRedisCache();// 清理redis缓存
-        return "redirect:" + Global.getAdminPath() + "/newhome/newPageFirstNavigation/?repage";
+        return "redirect:" + Global.getAdminPath() + "/newhome/newPageFirstNavigation/?repage&type="+newPageFirstNavigation.getType();
     }
     }
 
 
     @RequiresPermissions("newhome:newPageFirstNavigation:delete")
     @RequiresPermissions("newhome:newPageFirstNavigation:delete")

+ 6 - 1
src/main/java/com/caimei/modules/sys/utils/UploadImageUtils.java

@@ -33,7 +33,12 @@ public class UploadImageUtils {
     public static String getAbsolutePath(String imagePath) {
     public static String getAbsolutePath(String imagePath) {
         if(StringUtils.isNotEmpty(imagePath)){
         if(StringUtils.isNotEmpty(imagePath)){
             String absolutePath = basedir + imagePath;
             String absolutePath = basedir + imagePath;
-            logger.info("----------上传绝对路径为:"+ absolutePath);
+            if (Global.getConfig("cm.config").equals("dev")) {
+                if (absolutePath.indexOf("caimei365_manager_war_exploded2userfiles") != -1) {
+                    absolutePath=absolutePath.replace("caimei365_manager_war_exploded2userfiles", "userfiles");
+                }
+            }
+            logger.info("----------上传绝对路径为:" + absolutePath);
             return absolutePath;
             return absolutePath;
         }else{
         }else{
             return "";
             return "";

+ 25 - 16
src/main/resources/mappings/modules/newhome/NewPageFirstNavigationMapper.xml

@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.caimei.modules.newhome.dao.NewPageFirstNavigationDao">
 <mapper namespace="com.caimei.modules.newhome.dao.NewPageFirstNavigationDao">
-    
+
 	<sql id="newPageFirstNavigationColumns">
 	<sql id="newPageFirstNavigationColumns">
 		a.id AS "id",
 		a.id AS "id",
 		a.navigationName AS "navigationName",
 		a.navigationName AS "navigationName",
@@ -19,18 +19,22 @@
 	</sql>
 	</sql>
 
 
 	<select id="get" resultType="NewPageFirstNavigation">
 	<select id="get" resultType="NewPageFirstNavigation">
-		SELECT 
+		SELECT
 			<include refid="newPageFirstNavigationColumns"/>
 			<include refid="newPageFirstNavigationColumns"/>
 		FROM new_page_first_navigation a
 		FROM new_page_first_navigation a
-		WHERE a.id = #{id}
+		WHERE a.id = #{id} and  a.delFlag = 0
 	</select>
 	</select>
-	
+
 	<select id="findList" resultType="NewPageFirstNavigation">
 	<select id="findList" resultType="NewPageFirstNavigation">
-		SELECT 
+		SELECT
 			<include refid="newPageFirstNavigationColumns"/>
 			<include refid="newPageFirstNavigationColumns"/>
 		FROM new_page_first_navigation a
 		FROM new_page_first_navigation a
 		<where>
 		<where>
-			
+			a.delFlag = 0
+			<if test="type != null and type != ''">
+				<if test="type == 0 and type ==0">and (a.type = 0 or a.type is null )</if>
+				<if test="type != 0 and type !=0">and a.type = #{type}</if>
+			</if>
 		</where>
 		</where>
 		<choose>
 		<choose>
 			<when test="page !=null and page.orderBy != null and page.orderBy != ''">
 			<when test="page !=null and page.orderBy != null and page.orderBy != ''">
@@ -41,14 +45,19 @@
 			</otherwise>
 			</otherwise>
 		</choose>
 		</choose>
 	</select>
 	</select>
-	
+
 	<select id="findAllList" resultType="NewPageFirstNavigation">
 	<select id="findAllList" resultType="NewPageFirstNavigation">
-		SELECT 
+		SELECT
 			<include refid="newPageFirstNavigationColumns"/>
 			<include refid="newPageFirstNavigationColumns"/>
 		FROM new_page_first_navigation a
 		FROM new_page_first_navigation a
 		<where>
 		<where>
-			
-		</where>		
+			a.delFlag = 0
+			<if test="type != null and type != ''">
+				<if test="type == 0 and type ==0">and (a.type = 0 or a.type is null )</if>
+				<if test="type != 0 and type !=0">and a.type = #{type}</if>
+			</if>
+
+		</where>
 		<choose>
 		<choose>
 			<when test="page !=null and page.orderBy != null and page.orderBy != ''">
 			<when test="page !=null and page.orderBy != null and page.orderBy != ''">
 				ORDER BY ${page.orderBy}
 				ORDER BY ${page.orderBy}
@@ -58,7 +67,7 @@
 			</otherwise>
 			</otherwise>
 		</choose>
 		</choose>
 	</select>
 	</select>
-	
+
 	<insert id="insert" parameterType="NewPageFirstNavigation"  keyProperty="id" useGeneratedKeys="true">
 	<insert id="insert" parameterType="NewPageFirstNavigation"  keyProperty="id" useGeneratedKeys="true">
 		INSERT INTO new_page_first_navigation(
 		INSERT INTO new_page_first_navigation(
 			navigationName,
 			navigationName,
@@ -88,9 +97,9 @@
 			#{delFlag}
 			#{delFlag}
 		)
 		)
 	</insert>
 	</insert>
-	
+
 	<update id="update">
 	<update id="update">
-		UPDATE new_page_first_navigation SET 	
+		UPDATE new_page_first_navigation SET
 			navigationName = #{navigationName},
 			navigationName = #{navigationName},
 			type = #{type},
 			type = #{type},
 			link = #{link},
 			link = #{link},
@@ -105,7 +114,7 @@
 			delFlag = #{delFlag}
 			delFlag = #{delFlag}
 		WHERE id = #{id}
 		WHERE id = #{id}
 	</update>
 	</update>
-	
+
 	<delete id="delete">
 	<delete id="delete">
 		DELETE FROM new_page_first_navigation
 		DELETE FROM new_page_first_navigation
 		WHERE id = #{id}
 		WHERE id = #{id}
@@ -132,5 +141,5 @@
 		sort = #{sort}
 		sort = #{sort}
 		WHERE id = #{id}
 		WHERE id = #{id}
 	</update>
 	</update>
-	
-</mapper>
+
+</mapper>

+ 0 - 1
src/main/resources/mappings/modules/product/ProductNewMapper.xml

@@ -142,7 +142,6 @@
         FROM product a
         FROM product a
         <include refid="productJoins"/>
         <include refid="productJoins"/>
         <where>
         <where>
-
               copi.organizeId=(SELECT SUBSTRING(groundMall, 1, 1)FROM product WHERE productID=a.productID)
               copi.organizeId=(SELECT SUBSTRING(groundMall, 1, 1)FROM product WHERE productID=a.productID)
             <if test="id !=null and id !=''">
             <if test="id !=null and id !=''">
                 AND a.productID=#{id}
                 AND a.productID=#{id}

+ 1 - 1
src/main/webapp/WEB-INF/views/modules/cmpage/cmPageActivityCentreForm.jsp

@@ -35,7 +35,7 @@
 </head>
 </head>
 <body>
 <body>
 <ul class="nav nav-tabs">
 <ul class="nav nav-tabs">
-    <li><a href="${ctx}/cmpage/cmPageCentre/?pageId=${cmPageCentre.pageId}&type=${cmPageCentre.type}">${cmPageCentre.type eq 6?'活动专题商品楼层':'云上美博会商品楼层'}</a></li>
+    <li><a href="${ctx}/cmpage/cmPageCentre/?pageId=${cmPageCentre.pageId}&type=${cmPageCentre.type}">${cmPageCentre.type eq 6?'活动专题商品楼层':cmPageCentre.type eq 7?'云上美博会商品楼层':'快捷运营商品楼层'}</a></li>
     <li class="active"><a href="${ctx}/cmpage/cmPageCentre/form?pageId=${cmPageCentre.pageId}&type=${cmPageCentre.type}">${not empty cmPageCentre.id?'编辑':'添加'}</a></li>
     <li class="active"><a href="${ctx}/cmpage/cmPageCentre/form?pageId=${cmPageCentre.pageId}&type=${cmPageCentre.type}">${not empty cmPageCentre.id?'编辑':'添加'}</a></li>
 </ul><br/>
 </ul><br/>
 <form:form id="inputForm" modelAttribute="cmPageCentre" action="${ctx}/cmpage/cmPageCentre/save" method="post" class="form-horizontal">
 <form:form id="inputForm" modelAttribute="cmPageCentre" action="${ctx}/cmpage/cmPageCentre/save" method="post" class="form-horizontal">

+ 2 - 2
src/main/webapp/WEB-INF/views/modules/cmpage/cmPageActivityCentreList.jsp

@@ -110,7 +110,7 @@
 <body>
 <body>
 <ul class="nav nav-tabs">
 <ul class="nav nav-tabs">
     <li><a href="${ctx}/cmpage/cmPage/?flag=2">网页列表</a></li>
     <li><a href="${ctx}/cmpage/cmPage/?flag=2">网页列表</a></li>
-    <li class="active"><a href="${ctx}/cmpage/cmPageCentre/?pageId=${cmPageCentre.pageId}&type=${cmPageCentre.type}">${cmPageCentre.type eq 6?'活动专题商品楼层':'云上美博会商品楼层'}</a>
+    <li class="active"><a href="${ctx}/cmpage/cmPageCentre/?pageId=${cmPageCentre.pageId}&type=${cmPageCentre.type}">${cmPageCentre.type eq 6?'活动专题商品楼层':cmPageCentre.type eq 7?'云上美博会商品楼层':'快捷运营商品楼层'}</a>
     </li>
     </li>
 </ul>
 </ul>
 <div>
 <div>
@@ -193,4 +193,4 @@
 </table>
 </table>
 <div class="pagination">${page}</div>
 <div class="pagination">${page}</div>
 </body>
 </body>
-</html>
+</html>

+ 8 - 3
src/main/webapp/WEB-INF/views/modules/cmpage/cmPageList.jsp

@@ -59,11 +59,14 @@
                 }else if('7' == v){
                 }else if('7' == v){
                     //活动专题
                     //活动专题
                     location.href="${ctx}/cmpage/cmPage/form?&flag=27";
                     location.href="${ctx}/cmpage/cmPage/form?&flag=27";
+                }else if('9' == v){
+                    //活动专题
+                    location.href="${ctx}/cmpage/cmPage/form?&flag=29";
                 }
                 }
                 return true;// close
                 return true;// close
             };
             };
             // 自定义按钮
             // 自定义按钮
-            $.jBox.confirm("请选择需要新增的页面!!!", "新增网页", submit, { buttons: { '项目详情页面': 1, '二级列表页面': 2,'自由页面':4,'分类详情':5,'活动专题':6,'云上美博会':7} });
+            $.jBox.confirm("请选择需要新增的页面!!!", "新增网页", submit, { buttons: { '项目详情页面': 1, '二级列表页面': 2,'自由页面':4,'分类详情':5,'活动专题':6,'云上美博会':7,'快捷运营页面':9} });
         }
         }
         //更新单个索引
         //更新单个索引
         function updateIndex(id){
         function updateIndex(id){
@@ -122,6 +125,7 @@
                     <label>【分类详情】适用于:产品和仪器两个大分类的详情页</label></br>
                     <label>【分类详情】适用于:产品和仪器两个大分类的详情页</label></br>
                     <label>【活动专题】适用于:展会/商城详情页</label></br>
                     <label>【活动专题】适用于:展会/商城详情页</label></br>
                     <label>【云上美博会】适用于:专门的美博会内容页面</label>
                     <label>【云上美博会】适用于:专门的美博会内容页面</label>
+<%--                    <label>【快捷运营】适用于:专门的美博会内容页面</label>--%>
                     &nbsp&nbsp&nbsp&nbsp&nbsp<input type="button" class="btn btn-primary" value="新增页面" onclick="openwin()" />
                     &nbsp&nbsp&nbsp&nbsp&nbsp<input type="button" class="btn btn-primary" value="新增页面" onclick="openwin()" />
                 </table>
                 </table>
                 <br>
                 <br>
@@ -146,6 +150,7 @@
             <form:option value="5" label="分类详情"/>
             <form:option value="5" label="分类详情"/>
             <form:option value="6" label="活动专题"/>
             <form:option value="6" label="活动专题"/>
             <form:option value="7" label="云上美博会"/>
             <form:option value="7" label="云上美博会"/>
+            <form:option value="9" label="快捷运营"/>
         </form:select>
         </form:select>
         <label>标题:</label>
         <label>标题:</label>
         <form:input path="title" htmlEscape="false" maxlength="50" class="input-medium"/>
         <form:input path="title" htmlEscape="false" maxlength="50" class="input-medium"/>
@@ -214,10 +219,10 @@
                 <c:if test="${cmPage.type eq 6}">
                 <c:if test="${cmPage.type eq 6}">
                     <a href="${fns:getConfig('wwwServer')}product/activity-${cmPage.id}.html" target="_blank">${fns:getConfig('wwwServer')}product/activity-${cmPage.id}.html</a>
                     <a href="${fns:getConfig('wwwServer')}product/activity-${cmPage.id}.html" target="_blank">${fns:getConfig('wwwServer')}product/activity-${cmPage.id}.html</a>
                 </c:if>
                 </c:if>
-                <c:if test="${cmPage.type eq 7}">
+                <c:if test="${cmPage.type eq 7||cmPage.type eq 9}">
                     <a href="${fns:getConfig('wwwServer')}product/beauty-${cmPage.id}.html" target="_blank">${fns:getConfig('wwwServer')}product/beauty-${cmPage.id}.html</a>
                     <a href="${fns:getConfig('wwwServer')}product/beauty-${cmPage.id}.html" target="_blank">${fns:getConfig('wwwServer')}product/beauty-${cmPage.id}.html</a>
                 </c:if>
                 </c:if>
-                <c:if test="${cmPage.type ne 1 && cmPage.type ne 2 && cmPage.type ne 3 && cmPage.type ne 4 && cmPage.type ne 5 && cmPage.type ne 6 && cmPage.type ne 7}">
+                <c:if test="${cmPage.type ne 1 && cmPage.type ne 2 && cmPage.type ne 3 && cmPage.type ne 4 && cmPage.type ne 5 && cmPage.type ne 6 && cmPage.type ne 7&& cmPage.type ne 9 }">
                     <a href="${fns:getConfig('wwwServer')}cmpage/info-${cmPage.type}-${cmPage.id}.html" target="_blank">${fns:getConfig('wwwServer')}cmpage/info-${cmPage.type}-${cmPage.id}.html</a>
                     <a href="${fns:getConfig('wwwServer')}cmpage/info-${cmPage.type}-${cmPage.id}.html" target="_blank">${fns:getConfig('wwwServer')}cmpage/info-${cmPage.type}-${cmPage.id}.html</a>
                 </c:if>
                 </c:if>
             </td>
             </td>

+ 109 - 0
src/main/webapp/WEB-INF/views/modules/cmpage/cmPageShortcutForm.jsp

@@ -0,0 +1,109 @@
+<%@ page contentType="text/html;charset=UTF-8" %>
+<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
+<html>
+<head>
+    <title>新增快捷运营页面</title>
+    <meta name="decorator" content="default"/>
+    <script type="text/javascript">
+        $(document).ready(function() {
+            //$("#name").focus();
+            $("#inputForm").validate({
+                ignore:"",
+                submitHandler: function(form){
+                    loading('正在提交,请稍等...');
+                    form.submit();
+                },
+                errorContainer: "#messageBox",
+                errorPlacement: function(error, element) {
+                    $("#messageBox").text("输入有误,请先更正。");
+                    if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
+                        error.appendTo(element.parent().parent());
+                    } else {
+                        error.insertAfter(element);
+                    }
+                }
+            });
+            //获取选中项的value
+            var showBackgroundColor =  $('#showBackgroundColor');
+            var showBackgroundImg =  $('#showBackgroundImg');
+            var selectBgType = $('#selectBgType  option:selected').val();
+            //回旋赋值显示背景填充
+            showSelectText(selectBgType,showBackgroundColor,showBackgroundImg);
+            //选择背景填充类型
+            $("#selectBgType").on('change',function(){
+                showSelectText($(this).val(),showBackgroundColor,showBackgroundImg);
+            })
+            //颜色选择器
+            var color = $("#onchangeColor");
+            var colorInfo = $("#getColorValue");
+            $(color).on('change',function(){
+                colorInfo.val(color.val());
+            })
+        });
+        //判断显示背景颜色或背景图设置窗口fn
+        function showSelectText(val,colorDiv,imgDiv){
+            switch (val) {
+                case '' :
+                    colorDiv.hide(100);
+                    imgDiv.hide(100);
+                    break;
+                case '1' :
+                    colorDiv.show(100);
+                    imgDiv.hide(100);
+                    break;
+                case '2' :
+                    colorDiv.hide(100);
+                    imgDiv.show(100);
+                    break;
+            }
+        }
+    </script>
+</head>
+<body>
+<ul class="nav nav-tabs">
+    <li class="active"><a href="${ctx}/cmpage/cmPage/form?flag=28&id=${cmPage.id}">${empty cmPage.id?'新增':'编辑'}快捷运营<shiro:lacksPermission name="cmpage:cmPage:edit">查看</shiro:lacksPermission></a></li>
+</ul><br/>
+<form:form id="inputForm" modelAttribute="cmPage" action="${ctx}/cmpage/cmPage/save?flag=2&type=9" method="post" class="form-horizontal">
+    <form:hidden path="id"/>
+    <sys:message content="${message}"/>
+    <div class="control-group">
+        <label class="control-label"><span class="help-inline"><font color="red">*</font> </span>网页标题:</label>
+        <div class="controls">
+            <form:input path="title" htmlEscape="false" maxlength="50" class="input-xlarge required"/>
+        </div>
+    </div>
+    <div class="control-group">
+        <label class="control-label"><span class="help-inline"><font color="red">*</font> </span>PC端banner:</label>
+        <div class="controls">
+            <form:hidden id="headImage" path="headImage" htmlEscape="false" maxlength="255" class="input-xlarge required"/>
+            <sys:ckfinder input="headImage" type="images" uploadPath="/photo" selectMultiple="false" maxWidth="100" maxHeight="100"/>
+        </div>
+        <div class="controls" style="padding-top: 20px;">
+        <label style="color:#D0D0D0 ;">建议图片尺寸1920*480px</label>
+        </div>
+    </div>
+    <div class="control-group">
+        <label class="control-label"><span class="help-inline"></span>移动端banner:</label>
+        <div class="controls">
+            <form:hidden id="crmHeadImage" path="crmHeadImage" htmlEscape="false" maxlength="255" class="input-xlarge"/>
+            <sys:ckfinder input="crmHeadImage" type="images" uploadPath="/photo" selectMultiple="false" maxWidth="100" maxHeight="100"/>
+        </div>
+        <div class="controls" style="padding-top: 20px;">
+            <label style="color:#D0D0D0 ;">建议图片尺寸1000px*450px</label>
+        </div>
+    </div>
+    <div class="control-group">
+        <label class="control-label">状态:</label>
+        <div class="controls">
+            <form:select path="enabledStatus" class="input-xlarge ">
+                <form:options items="${fns:getDictList('enabled_status')}" itemLabel="label" itemValue="value" htmlEscape="false" />
+            </form:select>
+        </div>
+    </div>
+    <div class="form-actions">
+        <shiro:hasPermission name="cmpage:cmPage:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission>
+        <input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
+    </div>
+</form:form>
+</body>
+</html>

+ 1 - 1
src/main/webapp/WEB-INF/views/modules/newhome/beautyFloorContentForm.jsp

@@ -311,7 +311,7 @@
     </c:if>
     </c:if>
     <c:if test="${empty floorContent.floorId}">
     <c:if test="${empty floorContent.floorId}">
         <li><a href="${ctx}/cmpage/cmPage/?flag=2">网页列表</a></li>
         <li><a href="${ctx}/cmpage/cmPage/?flag=2">网页列表</a></li>
-        <li><a href="${ctx}/cmpage/cmPageCentre/?pageId=${floorContent.pageId}&type=7">云上美博会商品楼层</a></li>
+        <li><a href="${ctx}/cmpage/cmPageCentre/?pageId=${floorContent.pageId}&type=${floorContent.type}">${floorContent.type eq 7?'云上美博会商品楼层':'快捷运营商品楼层'}</a></li>
         <li class="active"><a
         <li class="active"><a
                 href="${ctx}/cmpage/cmPageCentre/goContentPage?pageId=${floorContent.pageId}&centreId=${floorContent.centreId}&type=${floorContent.type}">内容</a>
                 href="${ctx}/cmpage/cmPageCentre/goContentPage?pageId=${floorContent.pageId}&centreId=${floorContent.centreId}&type=${floorContent.type}">内容</a>
         </li>
         </li>

+ 5 - 3
src/main/webapp/WEB-INF/views/modules/newhome/newPageFirstNavigationForm.jsp

@@ -163,12 +163,14 @@
 </head>
 </head>
 <body>
 <body>
 	<ul class="nav nav-tabs">
 	<ul class="nav nav-tabs">
-		<li><a href="${ctx}/newhome/newPageFirstNavigation/">主菜单列表</a></li>
+		<li class=${newPageFirstNavigation.type==0?"active":""}><a href="${ctx}/newhome/newPageFirstNavigation?type=${newPageFirstNavigation.type}">主菜单列表</a></li>
+		<li class=${newPageFirstNavigation.type==2?"active":""}><a href="${ctx}/newhome/newPageFirstNavigation?type=${newPageFirstNavigation.type}">快捷运营菜单</a></li>
 		<li class="active"><a href="${ctx}/newhome/newPageFirstNavigation/form?id=${newPageFirstNavigation.id}">${not empty newPageFirstNavigation.id?'编辑':'添加'}</a></li>
 		<li class="active"><a href="${ctx}/newhome/newPageFirstNavigation/form?id=${newPageFirstNavigation.id}">${not empty newPageFirstNavigation.id?'编辑':'添加'}</a></li>
 	</ul><br/>
 	</ul><br/>
 	<form:form id="inputForm" modelAttribute="newPageFirstNavigation" action="${ctx}/newhome/newPageFirstNavigation/save" method="post" class="form-horizontal">
 	<form:form id="inputForm" modelAttribute="newPageFirstNavigation" action="${ctx}/newhome/newPageFirstNavigation/save" method="post" class="form-horizontal">
 		<form:hidden path="id"/>
 		<form:hidden path="id"/>
-		<sys:message content="${message}"/>		
+		<form:hidden path="type"/>
+		<sys:message content="${message}"/>
 		<div class="control-group">
 		<div class="control-group">
 			<label class="control-label"><font color="red">*</font>主菜单名称:</label>
 			<label class="control-label"><font color="red">*</font>主菜单名称:</label>
 			<div class="controls">
 			<div class="controls">
@@ -219,4 +221,4 @@
 		</div>
 		</div>
 	</form:form>
 	</form:form>
 </body>
 </body>
-</html>
+</html>

+ 6 - 5
src/main/webapp/WEB-INF/views/modules/newhome/newPageFirstNavigationList.jsp

@@ -77,7 +77,7 @@
 				items.push($(this).val());
 				items.push($(this).val());
 			});
 			});
 			//保存批量排序
 			//保存批量排序
-			$.post("${ctx}/newhome/newPageFirstNavigation/batchSaveSort?sortList="+items, function(data) {
+			$.post("${ctx}/newhome/newPageFirstNavigation/batchSaveSort?type=${newPageFirstNavigation.type}&sortList="+items, function(data) {
 				if(true==data.success){
 				if(true==data.success){
 					$.jBox.tip(data.msg, 'info');
 					$.jBox.tip(data.msg, 'info');
 					setInterval(g,1000);
 					setInterval(g,1000);
@@ -99,7 +99,7 @@
 
 
 		function g() {
 		function g() {
 			//刷新页面
 			//刷新页面
-			window.location.href="${ctx}/newhome/newPageFirstNavigation/";
+			window.location.href="${ctx}/newhome/newPageFirstNavigation?type=${newPageFirstNavigation.type}";
 		}
 		}
 
 
 		//修改排序值
 		//修改排序值
@@ -112,13 +112,14 @@
 </head>
 </head>
 <body>
 <body>
 <ul class="nav nav-tabs">
 <ul class="nav nav-tabs">
-	<li class="active"><a href="${ctx}/newhome/newPageFirstNavigation/">主菜单列表</a></li>
+	<li class=${newPageFirstNavigation.type==0?"active":""}><a href="${ctx}/newhome/newPageFirstNavigation?type=0">主菜单列表</a></li>
+	<li class=${newPageFirstNavigation.type==2?"active":""}><a href="${ctx}/newhome/newPageFirstNavigation?type=2">快捷运营菜单</a></li>
 </ul>
 </ul>
 <form:form id="searchForm" modelAttribute="newPageFirstNavigation" action="${ctx}/newhome/newPageFirstNavigation/" method="post" class="breadcrumb form-search">
 <form:form id="searchForm" modelAttribute="newPageFirstNavigation" action="${ctx}/newhome/newPageFirstNavigation/" method="post" class="breadcrumb form-search">
 	<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
 	<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
 	<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
 	<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
 	<input class="btn btn-primary" style="width:80px" onclick="batchSaveSort()" value="一键排序"/>&nbsp;&nbsp;&nbsp;&nbsp;
 	<input class="btn btn-primary" style="width:80px" onclick="batchSaveSort()" value="一键排序"/>&nbsp;&nbsp;&nbsp;&nbsp;
-	<input class="btn btn-primary" style="width:80px" onclick="window.location='${ctx}/newhome/newPageFirstNavigation/form'" value="添加主菜单"/>
+	<input class="btn btn-primary" style="width:80px" onclick="window.location='${ctx}/newhome/newPageFirstNavigation/form?type=${newPageFirstNavigation.type}'" value="添加主菜单"/>
 	<input class="btn btn-primary" style="width:100px" onclick="updateStaticHome()" value="生成静态首页"/>
 	<input class="btn btn-primary" style="width:100px" onclick="updateStaticHome()" value="生成静态首页"/>
 	<div style="margin-top: 10px">
 	<div style="margin-top: 10px">
 		<label><font color="#a9a9a9">注:排序值越小越靠前</font></label>
 		<label><font color="#a9a9a9">注:排序值越小越靠前</font></label>
@@ -194,7 +195,7 @@
 				<fmt:formatDate value="${newPageFirstNavigation.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
 				<fmt:formatDate value="${newPageFirstNavigation.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
 			</td>
 			</td>
 			<shiro:hasPermission name="newhome:newPageFirstNavigation:edit"><td>
 			<shiro:hasPermission name="newhome:newPageFirstNavigation:edit"><td>
-				<a href="${ctx}/newhome/newPageFirstNavigation/form?id=${newPageFirstNavigation.id}">编辑</a>
+				<a href="${ctx}/newhome/newPageFirstNavigation/form?id=${newPageFirstNavigation.id}&type=${newPageFirstNavigation.type}">编辑</a>
 				<%--<c:if test="${newPageFirstNavigation.type eq 0}">
 				<%--<c:if test="${newPageFirstNavigation.type eq 0}">
 					<a href="${ctx}/newhome/newPageSecondaryNavigation/?firstNavigationId=${newPageFirstNavigation.id}">二级分类设置</a>
 					<a href="${ctx}/newhome/newPageSecondaryNavigation/?firstNavigationId=${newPageFirstNavigation.id}">二级分类设置</a>
 				</c:if>--%>
 				</c:if>--%>