diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 070f64f1..ada8d0c9 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -10,7 +10,10 @@ - + + + + @@ -58,21 +61,37 @@ - - + + - - + + + + + + + + + + + + + + + + + + - - + + - - + + @@ -168,12 +187,9 @@ @@ -236,10 +255,9 @@ - @@ -593,73 +611,56 @@ + + + - + - - - - - - - + - - + - - + - + - - + - - + + - - + - - - - - - - - - - + + + - + + @@ -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; }