+
+
+
diff --git a/xmall-manager-web/src/main/webapp/WEB-INF/jsp/content-index-list.jsp b/xmall-manager-web/src/main/webapp/WEB-INF/jsp/content-index-list.jsp
index ac2615cb..55def2f9 100644
--- a/xmall-manager-web/src/main/webapp/WEB-INF/jsp/content-index-list.jsp
+++ b/xmall-manager-web/src/main/webapp/WEB-INF/jsp/content-index-list.jsp
@@ -157,6 +157,8 @@
return "其他链接";
}else if(data==2){
return "关联商品(封面)";
+ }else if(data==3){
+ return "封面(其它链接)";
}
}
},
diff --git a/xmall-manager-web/src/main/webapp/WEB-INF/jsp/content-product-add.jsp b/xmall-manager-web/src/main/webapp/WEB-INF/jsp/content-product-add.jsp
index a93c3a3f..06dae180 100644
--- a/xmall-manager-web/src/main/webapp/WEB-INF/jsp/content-product-add.jsp
+++ b/xmall-manager-web/src/main/webapp/WEB-INF/jsp/content-product-add.jsp
@@ -48,7 +48,8 @@
@@ -70,6 +71,7 @@
+
@@ -130,21 +132,29 @@
var panelType = parent.panelType;
if(panelType==2||panelType==3){
$("#otherUrl").hide();
- $("#inputOtherUrl").hide();
+ showOption();
if(panelType==2){
- $("#bannerImage").hide();
+ $("#bannerImage1").show();
+ $("#bannerImage2").show();
}
+ }else{
+ $("#bannerImage1").hide();
+ $("#bannerImage2").hide();
}
function showOption() {
var v = $("#type").val();
- if(v==0){
+ if(v==0||v==2){
$("#inputOtherUrl").hide();
}else{
$("#inputOtherUrl").show();
}
}
+ function clearChooseProduct() {
+ setIdAndTitle("","");
+ }
+
function chooseProduct(){
layer_show("选择展示商品","choose-product",900,600);
}
@@ -177,7 +187,7 @@
layer.alert('请选择关联商品! ', {title: '错误信息',icon: 0});
return;
}
- if(type==1&&fullUrl==""){
+ if((type==1&&fullUrl=="")||(type==3&&fullUrl=="")){
layer.alert('请填写跳转链接! ', {title: '错误信息',icon: 0});
return;
}
diff --git a/xmall-manager-web/src/main/webapp/WEB-INF/jsp/content-product-edit.jsp b/xmall-manager-web/src/main/webapp/WEB-INF/jsp/content-product-edit.jsp
index f58a2ec1..01a7a557 100644
--- a/xmall-manager-web/src/main/webapp/WEB-INF/jsp/content-product-edit.jsp
+++ b/xmall-manager-web/src/main/webapp/WEB-INF/jsp/content-product-edit.jsp
@@ -49,7 +49,8 @@
@@ -71,6 +72,7 @@
+
@@ -138,21 +140,29 @@
var panelType = parent.panelType;
if(panelType==2||panelType==3){
$("#otherUrl").hide();
- $("#inputOtherUrl").hide();
+ showOption();
if(panelType==2){
- $("#bannerImage").hide();
+ $("#bannerImage1").show();
+ $("#bannerImage2").show();
}
+ }else{
+ $("#bannerImage1").hide();
+ $("#bannerImage2").hide();
}
function showOption() {
var v = $("#type").val();
- if(v==0){
+ if(v==0||v==2){
$("#inputOtherUrl").hide();
}else{
$("#inputOtherUrl").show();
}
}
+ function clearChooseProduct() {
+ setIdAndTitle("","");
+ }
+
function chooseProduct(){
layer_show("选择展示商品","choose-product",900,600);
}
@@ -182,7 +192,7 @@
layer.alert('请选择关联商品! ', {title: '错误信息',icon: 0});
return;
}
- if(type==1&&fullUrl==""){
+ if((type==1&&fullUrl=="")||(type==3&&fullUrl=="")){
layer.alert('请填写跳转链接! ', {title: '错误信息',icon: 0});
return;
}