|
@@ -155,6 +155,10 @@
|
|
|
#displayDateDiv {
|
|
|
height: 30px;
|
|
|
}
|
|
|
+
|
|
|
+ .relative-pst {
|
|
|
+ margin-top: 20px !important;
|
|
|
+ }
|
|
|
</style>
|
|
|
<script type="text/javascript">
|
|
|
$(document).ready(function () {
|
|
@@ -225,6 +229,17 @@
|
|
|
$(".Image4 .cancel-upload").click();
|
|
|
$(".Image5 .cancel-upload").click();
|
|
|
}
|
|
|
+ for (var i = 1; i <= 5; i++) {
|
|
|
+ var jumpTypeName = 'jumpType' + i;
|
|
|
+ var jumpType = $("input[name=" + jumpTypeName + "]:checked").val();
|
|
|
+ if (3 == jumpType) {
|
|
|
+ var jumpImage = $("#jumpIcon"+i).val();
|
|
|
+ if (jumpImage == '') {
|
|
|
+ alertx("请上传广告图" + i + "跳转图片");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
$("#formType").val(8);
|
|
|
loading('正在提交,请稍等...');
|
|
|
form.submit();
|
|
@@ -373,10 +388,35 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="float: left">
|
|
|
- <span class="help-inline"></span>链接:
|
|
|
- <div class="controls">
|
|
|
- <form:input path="adsLink1" htmlEscape="false" maxlength="255"
|
|
|
- class="input-xlarge"/>
|
|
|
+ <span class="help-inline"></span>跳转方式:
|
|
|
+ <div style="margin-left: 100px">
|
|
|
+ <div>
|
|
|
+ <input type="radio" name="jumpType1" value="1" onchange="changeJumpType(1)" ${(floorContent.jumpType1 eq null || floorContent.jumpType1 eq 1 )? "checked" : ""} />链接:
|
|
|
+ <form:input path="adsLink1" htmlEscape="false" maxlength="255"
|
|
|
+ class="input-xlarge"/>
|
|
|
+ </div>
|
|
|
+ <div style="margin-top: 20px">
|
|
|
+ <input type="radio" name="jumpType1" value="2" onchange="changeJumpType(1)" ${floorContent.jumpType1 eq 2? "checked" : ""} />产品:
|
|
|
+ <form:select path="productId1" class="select-ele input-xlarge">
|
|
|
+ <form:option value="" label="请选择"/>
|
|
|
+ <form:options items="${productList}" itemLabel="name" itemValue="productId"
|
|
|
+ htmlEscape="false"/>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="float: left;margin: 25px 0px 0px 100px">
|
|
|
+ <span class="help-inline"></span>
|
|
|
+ <input type="radio" name="jumpType1" value="3" onchange="changeJumpType(1)" ${floorContent.jumpType1 eq 3? "checked" : ""} />图片:
|
|
|
+ <div class="controls upload-content iconBox" id="jumpImage1">
|
|
|
+ <div class="conList">
|
|
|
+ <form:hidden id="jumpIcon1" path="jumpImage1" htmlEscape="false" maxlength="255"
|
|
|
+ class="input-xlarge required"/>
|
|
|
+ <sys:ckfinder input="jumpIcon1" type="images" uploadPath="/photo"
|
|
|
+ selectMultiple="false"
|
|
|
+ maxWidth="100" maxHeight="100"/> <br>
|
|
|
+ <label>建议图片分辨率750px*1624px</label>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -395,10 +435,35 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="float: left">
|
|
|
- <span class="help-inline"></span>链接:
|
|
|
- <div class="controls">
|
|
|
- <form:input path="adsLink2" htmlEscape="false" maxlength="255"
|
|
|
- class="input-xlarge"/>
|
|
|
+ <span class="help-inline"></span>跳转方式:
|
|
|
+ <div style="margin-left: 100px">
|
|
|
+ <div>
|
|
|
+ <input type="radio" name="jumpType2" value="1" onchange="changeJumpType(2)" ${(floorContent.jumpType2 eq null || floorContent.jumpType2 eq 1 )? "checked" : ""} />链接:
|
|
|
+ <form:input path="adsLink1" htmlEscape="false" maxlength="255"
|
|
|
+ class="input-xlarge"/>
|
|
|
+ </div>
|
|
|
+ <div style="margin-top: 20px">
|
|
|
+ <input type="radio" name="jumpType2" value="2" onchange="changeJumpType(2)" ${floorContent.jumpType2 eq 2? "checked" : ""} />产品:
|
|
|
+ <form:select path="productId2" class="select-ele input-xlarge">
|
|
|
+ <form:option value="" label="请选择"/>
|
|
|
+ <form:options items="${productList}" itemLabel="name" itemValue="productId"
|
|
|
+ htmlEscape="false"/>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="float: left;margin: 25px 0px 0px 100px">
|
|
|
+ <span class="help-inline"></span>
|
|
|
+ <input type="radio" name="jumpType2" value="3" onchange="changeJumpType(2)" ${floorContent.jumpType2 eq 3? "checked" : ""} />图片:
|
|
|
+ <div class="controls upload-content iconBox" id="jumpImage2">
|
|
|
+ <div class="conList">
|
|
|
+ <form:hidden id="jumpIcon2" path="jumpImage2" htmlEscape="false" maxlength="255"
|
|
|
+ class="input-xlarge required"/>
|
|
|
+ <sys:ckfinder input="jumpIcon2" type="images" uploadPath="/photo"
|
|
|
+ selectMultiple="false"
|
|
|
+ maxWidth="100" maxHeight="100"/> <br>
|
|
|
+ <label>建议图片分辨率750px*1624px</label>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -417,10 +482,35 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="float: left">
|
|
|
- <span class="help-inline"></span>链接:
|
|
|
- <div class="controls">
|
|
|
- <form:input path="adsLink3" htmlEscape="false" maxlength="255"
|
|
|
- class="input-xlarge"/>
|
|
|
+ <span class="help-inline"></span>跳转方式:
|
|
|
+ <div style="margin-left: 100px">
|
|
|
+ <div>
|
|
|
+ <input type="radio" name="jumpType3" value="1" onchange="changeJumpType(3)" ${(floorContent.jumpType3 eq null || floorContent.jumpType3 eq 1 )? "checked" : ""} />链接:
|
|
|
+ <form:input path="adsLink3" htmlEscape="false" maxlength="255"
|
|
|
+ class="input-xlarge"/>
|
|
|
+ </div>
|
|
|
+ <div style="margin-top: 20px">
|
|
|
+ <input type="radio" name="jumpType3" value="2" onchange="changeJumpType(3)" ${floorContent.jumpType3 eq 2? "checked" : ""} />产品:
|
|
|
+ <form:select path="productId3" class="select-ele input-xlarge">
|
|
|
+ <form:option value="" label="请选择"/>
|
|
|
+ <form:options items="${productList}" itemLabel="name" itemValue="productId"
|
|
|
+ htmlEscape="false"/>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="float: left;margin: 25px 0px 0px 100px">
|
|
|
+ <span class="help-inline"></span>
|
|
|
+ <input type="radio" name="jumpType3" value="3" onchange="changeJumpType(3)" ${floorContent.jumpType3 eq 3? "checked" : ""} />图片:
|
|
|
+ <div class="controls upload-content iconBox" id="jumpImage3">
|
|
|
+ <div class="conList">
|
|
|
+ <form:hidden id="jumpIcon3" path="jumpImage3" htmlEscape="false" maxlength="255"
|
|
|
+ class="input-xlarge required"/>
|
|
|
+ <sys:ckfinder input="jumpIcon3" type="images" uploadPath="/photo"
|
|
|
+ selectMultiple="false"
|
|
|
+ maxWidth="100" maxHeight="100"/> <br>
|
|
|
+ <label>建议图片分辨率750px*1624px</label>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -439,10 +529,35 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="float: left">
|
|
|
- <span class="help-inline"></span>链接:
|
|
|
- <div class="controls">
|
|
|
- <form:input path="adsLink4" htmlEscape="false" maxlength="255"
|
|
|
- class="input-xlarge"/>
|
|
|
+ <span class="help-inline"></span>跳转方式:
|
|
|
+ <div style="margin-left: 100px">
|
|
|
+ <div>
|
|
|
+ <input type="radio" name="jumpType4" value="1" onchange="changeJumpType(4)" ${(floorContent.jumpType4 eq null || floorContent.jumpType4 eq 1 )? "checked" : ""} />链接:
|
|
|
+ <form:input path="adsLink4" htmlEscape="false" maxlength="255"
|
|
|
+ class="input-xlarge"/>
|
|
|
+ </div>
|
|
|
+ <div style="margin-top: 20px">
|
|
|
+ <input type="radio" name="jumpType4" value="2" onchange="changeJumpType(4)" ${floorContent.jumpType4 eq 2? "checked" : ""} />产品:
|
|
|
+ <form:select path="productId4" class="select-ele input-xlarge">
|
|
|
+ <form:option value="" label="请选择"/>
|
|
|
+ <form:options items="${productList}" itemLabel="name" itemValue="productId"
|
|
|
+ htmlEscape="false"/>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="float: left;margin: 25px 0px 0px 100px">
|
|
|
+ <span class="help-inline"></span>
|
|
|
+ <input type="radio" name="jumpType4" value="3" onchange="changeJumpType(4)" ${floorContent.jumpType4 eq 3? "checked" : ""} />图片:
|
|
|
+ <div class="controls upload-content iconBox" id="jumpImage4">
|
|
|
+ <div class="conList">
|
|
|
+ <form:hidden id="jumpIcon4" path="jumpImage4" htmlEscape="false" maxlength="255"
|
|
|
+ class="input-xlarge required"/>
|
|
|
+ <sys:ckfinder input="jumpIcon4" type="images" uploadPath="/photo"
|
|
|
+ selectMultiple="false"
|
|
|
+ maxWidth="100" maxHeight="100"/> <br>
|
|
|
+ <label>建议图片分辨率750px*1624px</label>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -461,10 +576,35 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="float: left">
|
|
|
- <span class="help-inline"></span>链接:
|
|
|
- <div class="controls">
|
|
|
- <form:input path="adsLink5" htmlEscape="false" maxlength="255"
|
|
|
- class="input-xlarge"/>
|
|
|
+ <span class="help-inline"></span>跳转方式:
|
|
|
+ <div style="margin-left: 100px">
|
|
|
+ <div>
|
|
|
+ <input type="radio" name="jumpType5" value="1" onchange="changeJumpType(5)" ${(floorContent.jumpType5 eq null || floorContent.jumpType5 eq 1 )? "checked" : ""} />链接:
|
|
|
+ <form:input path="adsLink5" htmlEscape="false" maxlength="255"
|
|
|
+ class="input-xlarge"/>
|
|
|
+ </div>
|
|
|
+ <div style="margin-top: 20px">
|
|
|
+ <input type="radio" name="jumpType5" value="2" onchange="changeJumpType(5)" ${floorContent.jumpType5 eq 2? "checked" : ""} />产品:
|
|
|
+ <form:select path="productId5" class="select-ele input-xlarge">
|
|
|
+ <form:option value="" label="请选择"/>
|
|
|
+ <form:options items="${productList}" itemLabel="name" itemValue="productId"
|
|
|
+ htmlEscape="false"/>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="float: left;margin: 25px 0px 0px 100px">
|
|
|
+ <span class="help-inline"></span>
|
|
|
+ <input type="radio" name="jumpType5" value="3" onchange="changeJumpType(5)" ${floorContent.jumpType5 eq 3? "checked" : ""} />图片:
|
|
|
+ <div class="controls upload-content iconBox" id="jumpImage5">
|
|
|
+ <div class="conList">
|
|
|
+ <form:hidden id="jumpIcon5" path="jumpImage5" htmlEscape="false" maxlength="255"
|
|
|
+ class="input-xlarge required"/>
|
|
|
+ <sys:ckfinder input="jumpIcon5" type="images" uploadPath="/photo"
|
|
|
+ selectMultiple="false"
|
|
|
+ maxWidth="100" maxHeight="100"/> <br>
|
|
|
+ <label>建议图片分辨率750px*1624px</label>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -542,7 +682,7 @@
|
|
|
}
|
|
|
})
|
|
|
});
|
|
|
- for (var i = 0; i < 5; i++) {
|
|
|
+ for (var i = 0; i < 10; i++) {
|
|
|
var observeEle = document.getElementsByClassName('upload-content')[i];
|
|
|
observer.observe(observeEle, MutationObserverConfig)
|
|
|
}
|
|
@@ -682,6 +822,15 @@
|
|
|
$("#appletsAdsImage" + i + " .cancel-upload").click();
|
|
|
}
|
|
|
});
|
|
|
+ $("#jumpImage" + i).find("input.input-xlarge").each(function (j, ele) {
|
|
|
+ if ($(ele).val() && $(ele).val() != '') {
|
|
|
+ $(ele).next().find("li").css("z-index", "99");
|
|
|
+ $(ele).parents(".conList").find(".cancel-upload").show();
|
|
|
+ $(ele).parents(".conList").next().removeClass("hide-pic");
|
|
|
+ } else {
|
|
|
+ $("#jumpImage" + i + " .cancel-upload").click();
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -940,6 +1089,23 @@
|
|
|
$("#redirectFlag").val(redirectFlag);
|
|
|
}
|
|
|
|
|
|
+ function changeJumpType(index){
|
|
|
+ var jumpTypeName = 'jumpType' + index;
|
|
|
+ var jumpType = $("input[name=" + jumpTypeName + "]:checked").val();
|
|
|
+ var jumpLink = $("#adsLink"+index);
|
|
|
+ var jumpProductId = $("#productId"+index);
|
|
|
+ if (1 == jumpType) {
|
|
|
+ jumpLink.addClass("required");
|
|
|
+ jumpProductId.removeClass("required");
|
|
|
+ }else if (2 == jumpType) {
|
|
|
+ jumpProductId.addClass("required");
|
|
|
+ jumpLink.removeClass("required");
|
|
|
+ } else {
|
|
|
+ jumpProductId.removeClass("required");
|
|
|
+ jumpLink.removeClass("required");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
</script>
|
|
|
</body>
|
|
|
</html>
|