Aslee před 4 roky
rodič
revize
a802e66f33

+ 2 - 0
src/main/webapp/WEB-INF/views/modules/newhome/activityFloorContentForm.jsp

@@ -1245,6 +1245,7 @@
                 var $mainFrame = top.$('#mainFrame');
                 if ('1' == v && 1 == $jboxFrame.size() && 1 == $mainFrame.size()) {
                     var items = $jboxFrame[0].contentWindow.getCheckedItems();
+                    items.createDate = '<fmt:formatDate value="<%=new Date()%>" pattern="yyyy-MM-dd HH:mm:ss"/>';
                     console.log(items);
                     if (type == 'adsImage') {
                         //宣传图
@@ -1426,6 +1427,7 @@
 
     //根据sort值 从小到大排序
     function sort(a, b) {
+        debugger
         return ((a.sort - b.sort) == 0 ? (a.createDate > b.createDate ? -1 : 1) : (a.sort - b.sort));
     }
 

+ 11 - 8
src/main/webapp/WEB-INF/views/modules/newhome/addOtherImage.jsp

@@ -18,6 +18,7 @@
 
         .iconBox {
             font-size: 0;
+            margin-left: 190px !important;
         }
 
         .controls .conList {
@@ -121,14 +122,16 @@
     <form:hidden path="id" id="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 upload-content iconBox">
-            <div class="conList">
-                <form:hidden id="image" path="image" htmlEscape="false" maxlength="255" class="input-xlarge required"/>
-                <sys:ckfinder input="image" type="images" uploadPath="/photo" selectMultiple="false" maxWidth="100"
-                              maxHeight="100"/>
-                <br>
-                <label>建议图片尺寸224px*224px</label>
+        <div style="float: left">
+            <label class="control-label"><span class="help-inline"><font color="red">*</font> </span>图片:</label>
+            <div class="controls upload-content iconBox">
+                <div class="conList">
+                    <form:hidden id="image" path="image" htmlEscape="false" maxlength="255" class="input-xlarge required"/>
+                    <sys:ckfinder input="image" type="images" uploadPath="/photo" selectMultiple="false" maxWidth="100"
+                                  maxHeight="100"/>
+                    <br>
+                    <label>建议图片尺寸224px*224px</label>
+                </div>
             </div>
         </div>
     </div>

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

@@ -43,7 +43,7 @@
     <li class="${productCategory eq 2 ? 'active':''}"><a
             href="${ctx}/newhome/newPageFloor/addProductImage?productCategory=2&productIds=${productIds}">添加二手商品</a>
     </li>
-    <li><a href="${ctx}/newhome/newPageFloor/addOtherImage&templateType=${templateType}">添加其他图片</a></li>
+    <li><a href="${ctx}/newhome/newPageFloor/addOtherImage">添加其他图片</a></li>
 </ul>
 <br/>
 <form:form id="searchForm" modelAttribute="product" action="" method="post" class="breadcrumb form-search">