|
@@ -171,7 +171,7 @@
|
|
|
var stringify = JSON.stringify(productImageList);
|
|
|
$('#images').val(stringify);
|
|
|
} else {
|
|
|
- alertx("至少上传一张图片");
|
|
|
+ alertx("至少上传一个商品");
|
|
|
return;
|
|
|
}
|
|
|
var appletsIcon1 = $("#appletsIcon1").val();
|
|
@@ -179,7 +179,6 @@
|
|
|
var appletsIcon3 = $("#appletsIcon3").val();
|
|
|
var appletsIcon4 = $("#appletsIcon4").val();
|
|
|
var appletsIcon5 = $("#appletsIcon5").val();
|
|
|
- debugger
|
|
|
if (templateType == 1 || templateType == 2 || templateType == 3 || templateType == 6 || templateType == 7 || templateType == 8) {
|
|
|
if (appletsIcon1 == '') {
|
|
|
alertx("请上传广告图1");
|
|
@@ -279,77 +278,77 @@
|
|
|
<tr>
|
|
|
<td id="templateTd" style="display: block;height: 580px;overflow-y:scroll;width: 380px !important;">
|
|
|
<div>
|
|
|
- <div id="pcTemplate" style="position: relative">
|
|
|
- <div id="pcTemplate1" class="displayTemplate" style="position: relative;">
|
|
|
+ <div id="template" style="position: relative">
|
|
|
+ <div id="template1" class="displayTemplate" style="position: relative;">
|
|
|
<form:radiobutton path="templateType" name="templateType" value="1" label="模板1" id="templateType1"
|
|
|
cssClass="templateButton"
|
|
|
onclick="showContent()"/>
|
|
|
<div class="templateImageDiv">
|
|
|
- <img src="/static/template/beauty/pc/1.png">
|
|
|
+ <img src="/static/template/hehe/1.png">
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div id="pcTemplate2" class="displayTemplate">
|
|
|
+ <div id="template2" class="displayTemplate">
|
|
|
<form:radiobutton path="templateType" name="templateType" value="2" label="模板2" id="templateType2"
|
|
|
cssClass="templateButton"
|
|
|
onclick="showContent()"/>
|
|
|
<div class="templateImageDiv">
|
|
|
- <img src="/static/template/beauty/pc/2.png">
|
|
|
+ <img src="/static/template/hehe/2.png">
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div id="pcTemplate3" class="displayTemplate">
|
|
|
+ <div id="template3" class="displayTemplate">
|
|
|
<form:radiobutton path="templateType" name="templateType" value="3" label="模板3" id="templateType3"
|
|
|
cssClass="templateButton"
|
|
|
onclick="showContent()"/>
|
|
|
<div class="templateImageDiv">
|
|
|
- <img src="/static/template/beauty/pc/3.png">
|
|
|
+ <img src="/static/template/hehe/3.png">
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div id="pcTemplate4" class="displayTemplate">
|
|
|
+ <div id="template4" class="displayTemplate">
|
|
|
<form:radiobutton path="templateType" name="templateType" value="4" label="模板4" id="templateType4"
|
|
|
cssClass="templateButton"
|
|
|
onclick="showContent()"/>
|
|
|
<div class="templateImageDiv">
|
|
|
- <img src="/static/template/beauty/pc/4.png">
|
|
|
+ <img src="/static/template/hehe/4.png">
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div id="pcTemplate5" class="displayTemplate">
|
|
|
+ <div id="template5" class="displayTemplate">
|
|
|
<form:radiobutton path="templateType" name="templateType" value="5" label="模板5" id="templateType5"
|
|
|
cssClass="templateButton"
|
|
|
onclick="showContent()"/>
|
|
|
<div class="templateImageDiv">
|
|
|
- <img src="/static/template/beauty/pc/5.png">
|
|
|
+ <img src="/static/template/hehe/5.png">
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div id="pcTemplate6" class="displayTemplate">
|
|
|
+ <div id="template6" class="displayTemplate">
|
|
|
<form:radiobutton path="templateType" name="templateType" value="6" label="模板6" id="templateType6"
|
|
|
cssClass="templateButton"
|
|
|
onclick="showContent()"/>
|
|
|
<div class="templateImageDiv">
|
|
|
- <img src="/static/template/beauty/pc/6.png">
|
|
|
+ <img src="/static/template/hehe/6.png">
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div id="pcTemplate7" class="displayTemplate">
|
|
|
+ <div id="template7" class="displayTemplate">
|
|
|
<form:radiobutton path="templateType" name="templateType" value="7" label="模板7" id="templateType7"
|
|
|
cssClass="templateButton"
|
|
|
onclick="showContent()"/>
|
|
|
<div class="templateImageDiv">
|
|
|
- <img src="/static/template/beauty/pc/7.png">
|
|
|
+ <img src="/static/template/hehe/7.png">
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div id="pcTemplate8" class="displayTemplate">
|
|
|
+ <div id="template8" class="displayTemplate">
|
|
|
<form:radiobutton path="templateType" name="templateType" value="8" label="模板8" id="templateType8"
|
|
|
cssClass="templateButton"
|
|
|
onclick="showContent()"/>
|
|
|
<div class="templateImageDiv">
|
|
|
- <img src="/static/template/beauty/pc/8.png">
|
|
|
+ <img src="/static/template/hehe/8.png">
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div id="pcTemplate9" class="displayTemplate">
|
|
|
+ <div id="template9" class="displayTemplate">
|
|
|
<form:radiobutton path="templateType" name="templateType" value="9" label="模板9" id="templateType9"
|
|
|
cssClass="templateButton"
|
|
|
onclick="showContent()"/>
|
|
|
<div class="templateImageDiv">
|
|
|
- <img src="/static/template/beauty/pc/9.png">
|
|
|
+ <img src="/static/template/hehe/9.png">
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -369,7 +368,7 @@
|
|
|
<sys:ckfinder input="appletsIcon1" type="images" uploadPath="/photo"
|
|
|
selectMultiple="false"
|
|
|
maxWidth="100" maxHeight="100"/> <br>
|
|
|
- <label id="pcImageSize1">建议图片分辨率1184px*160px</label>
|
|
|
+ <label id="imageSize1">建议图片分辨率1184px*160px</label>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -391,7 +390,7 @@
|
|
|
<sys:ckfinder input="appletsIcon2" type="images" uploadPath="/photo"
|
|
|
selectMultiple="false"
|
|
|
maxWidth="100" maxHeight="100"/><br>
|
|
|
- <label id="pcImageSize2">建议图片分辨率344px*268px</label>
|
|
|
+ <label id="imageSize2">建议图片分辨率344px*268px</label>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -413,7 +412,7 @@
|
|
|
<sys:ckfinder input="appletsIcon3" type="images" uploadPath="/photo"
|
|
|
selectMultiple="false"
|
|
|
maxWidth="100" maxHeight="100"/><br>
|
|
|
- <label id="pcImageSize3">建议图片分辨率344px*268px</label>
|
|
|
+ <label id="imageSize3">建议图片分辨率344px*268px</label>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -435,7 +434,7 @@
|
|
|
<sys:ckfinder input="appletsIcon4" type="images" uploadPath="/photo"
|
|
|
selectMultiple="false"
|
|
|
maxWidth="100" maxHeight="100"/><br>
|
|
|
- <label id="pcImageSize4">建议图片分辨率344px*268px</label>
|
|
|
+ <label id="imageSize4">建议图片分辨率344px*268px</label>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -457,7 +456,7 @@
|
|
|
<sys:ckfinder input="appletsIcon5" type="images" uploadPath="/photo"
|
|
|
selectMultiple="false"
|
|
|
maxWidth="100" maxHeight="100"/><br>
|
|
|
- <label id="pcImageSize5">建议图片分辨率344px*268px</label>
|
|
|
+ <label id="imageSize5">建议图片分辨率344px*268px</label>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -635,44 +634,26 @@
|
|
|
}
|
|
|
|
|
|
//广告图建议尺寸
|
|
|
- /*if (templateType == 11) {
|
|
|
- $("#pcImageSize1").text("建议图片分辨率1140px*150px");
|
|
|
- $("#appletsImageSize1").text("建议图片分辨率702px*240px");
|
|
|
- $("#pcImageSize2").text("建议图片分辨率560px*220px");
|
|
|
- $("#appletsImageSize2").text("建议图片分辨率339px*260px");
|
|
|
- $("#pcImageSize3").text("建议图片分辨率560px*220px");
|
|
|
- $("#appletsImageSize3").text("建议图片分辨率339px*260px");
|
|
|
- } else if (templateType == 12) {
|
|
|
- $("#pcImageSize1").text("建议图片分辨率660px*330px");
|
|
|
- $("#appletsImageSize1").text("建议图片分辨率339px*516px");
|
|
|
- $("#pcImageSize2").text("建议图片分辨率470px*160px");
|
|
|
- $("#appletsImageSize2").text("建议图片分辨率339px*246px");
|
|
|
- $("#pcImageSize3").text("建议图片分辨率470px*160px");
|
|
|
- $("#appletsImageSize3").text("建议图片分辨率339px*246px");
|
|
|
- } else if (templateType == 13) {
|
|
|
- $("#pcImageSize1").text("建议图片分辨率640px*320px");
|
|
|
- $("#appletsImageSize1").text("建议图片分辨率339px*516px");
|
|
|
- $("#pcImageSize2").text("建议图片分辨率240px*150px");
|
|
|
- $("#appletsImageSize2").text("建议图片分辨率339px*246px");
|
|
|
- $("#pcImageSize3").text("建议图片分辨率240px*150px");
|
|
|
- $("#appletsImageSize3").text("建议图片分辨率339px*246px");
|
|
|
- $("#pcImageSize4").text("建议图片分辨率240px*150px");
|
|
|
- $("#appletsImageSize4").text("建议图片分辨率339px*246px");
|
|
|
- $("#pcImageSize5").text("建议图片分辨率240px*150px");
|
|
|
- $("#appletsImageSize5").text("建议图片分辨率339px*246px");
|
|
|
- } else if (templateType == 15 || templateType == 16 || templateType == 19 || templateType == 20) {
|
|
|
- $("#pcImageSize1").text("建议图片分辨率1140px*150px");
|
|
|
- $("#appletsImageSize1").text("建议图片分辨率702px*240px");
|
|
|
- $("#pcImageSize2").text("建议图片分辨率660px*330px");
|
|
|
- $("#appletsImageSize2").text("建议图片分辨率339px*516px");
|
|
|
- $("#pcImageSize3").text("建议图片分辨率460px*330px");
|
|
|
- $("#appletsImageSize3").text("建议图片分辨率339px*516px");
|
|
|
- } else if (templateType == 17 || templateType == 18) {
|
|
|
- $("#pcImageSize1").text("建议图片分辨率660px*330px");
|
|
|
- $("#appletsImageSize1").text("建议图片分辨率339px*516px");
|
|
|
- $("#pcImageSize2").text("建议图片分辨率460px*330px");
|
|
|
- $("#appletsImageSize2").text("建议图片分辨率339px*516px");
|
|
|
- }*/
|
|
|
+ if (templateType == 1 || templateType == 8) {
|
|
|
+ $("#imageSize1").text("建议图片分辨率702px*240px");
|
|
|
+ } else if (templateType == 2) {
|
|
|
+ $("#imageSize1").text("建议图片分辨率702px*240px");
|
|
|
+ $("#imageSize2").text("建议图片分辨率343px*524px");
|
|
|
+ $("#imageSize3").text("建议图片分辨率343px*524px");
|
|
|
+ } else if (templateType == 3) {
|
|
|
+ $("#imageSize1").text("建议图片分辨率343px*524px");
|
|
|
+ $("#imageSize2").text("建议图片分辨率343px*524px");
|
|
|
+ } else if (templateType == 6) {
|
|
|
+ $("#imageSize1").text("建议图片分辨率343px*524px");
|
|
|
+ $("#imageSize2").text("建议图片分辨率343px*254px");
|
|
|
+ $("#imageSize3").text("建议图片分辨率343px*254px");
|
|
|
+ } else if (templateType == 7) {
|
|
|
+ $("#imageSize1").text("建议图片分辨率343px*524px");
|
|
|
+ $("#imageSize2").text("建议图片分辨率343px*254px");
|
|
|
+ $("#imageSize3").text("建议图片分辨率343px*254px");
|
|
|
+ $("#imageSize4").text("建议图片分辨率343px*254px");
|
|
|
+ $("#imageSize5").text("建议图片分辨率343px*254px");
|
|
|
+ }
|
|
|
showImage();
|
|
|
batchSaveSort();
|
|
|
} else {
|