Explorar el Código

메인전시 수정

bin2107 hace 5 años
padre
commit
7a28327435

+ 27 - 4
src/main/webapp/WEB-INF/views/display/MainContentsPopupForm.html

@@ -199,7 +199,6 @@
 					src = $("#uploadDefaultUrlPop").val().replace('/contents/', '')+result[i].imgPath1;
 					src2 = $("#uploadDefaultUrlPop").val().replace('/contents/', '')+result[i].imgPath2;
 				}
-				console.log('src::'+src);
 
 				html += '<tr name="imgPopRow" id="openBanner0" ';
 				if(result[i].contentsType=='TEXT'){
@@ -241,7 +240,7 @@
 				html += '</tr>';
 
 				html += '<tr name="imgPopRow" id="openBanner1" ';
-				if(result[i].contentsType!='OPEN' && result[i].strVar7!='IMG'){
+				if((result[i].contentsType!='IMG') || result[i].contentsType!='OPEN' && result[i].strVar7!='IMG'){
 					html += '	style="display:none;"';
 				}
 				html +='>';
@@ -302,6 +301,18 @@
 				html += '		</td>';
 				html += '	</tr>';
 			}
+			if(contentsLoc=='SGNB002'){
+				html += '<tr class="cateTypeTr">';
+				html += '	<th>유형선택</th>';
+				html += '	<td colspan="3">';
+				html += '		<label class="rdoBtn"><input type="radio" name="cateType'+i+'" value="TEXT" onclick="fnChangeGnbCateType(this,'+i+');" ';
+				if(result[i].contentsType=='TEXT'){
+					html += ' checked="checked" ';
+				}
+				html += '/>텍스트배너</label>';
+				html += '	</td>';
+				html += '</tr>';
+			}
 			if(contentsLoc=='SCM002' || contentsLoc=='SCM003'){
 				html += '		<tr>';
 				html += '			<th>전시 설정</th>';
@@ -391,7 +402,7 @@
 					if(strTitle!=null && strTitle!='null' && strTitle!='' ){
 						html += fnAddTitlePopRow(strTitle);
 					}
-					if(contentsLoc!='SGNB001'){
+					if(contentsLoc!='SGNB001' && contentsLoc!='SGNB002'){
 						if(imgPath!=null && imgPath!='null' && imgPath!='' ){
 							html += fnAddImgPopRow(imgPath, j);
 						}
@@ -580,7 +591,7 @@
 			if(contentsLoc=='SBM005' || contentsLoc=='SBMM005'){
 				html += '<button type="button" class="btn btn-base btn-lg" onclick="fnAddBrandDescRow(this);">브랜드소개추가</button>';
 			}
-			if(contentsLoc!='SBM005' && contentsLoc!='SBMM005' && contentsLoc!='SGNB001') {
+			if(contentsLoc!='SBM005' && contentsLoc!='SBMM005' && contentsLoc!='SGNB001' && contentsLoc!='SGNB002') {
 				html += '<button type="button" class="btn btn-base btn-lg"';
 				if(contentsLoc=='SMM001' || contentsLoc=='SOM001' || contentsLoc=='SBM004'){
 					html += ' style="display:none;" ';
@@ -709,6 +720,14 @@
 			html += '		</td>';
 			html += '	</tr>';
 		}
+		if(contentsLoc=='SGNB002'){
+			html += '<tr class="cateTypeTr">';
+			html += '	<th>유형선택</th>';
+			html += '	<td colspan="3">';
+			html += '		<label class="rdoBtn"><input type="radio" name="cateType'+dataIdx+'" value="TEXT" onclick="fnChangeGnbCateType(this,'+dataIdx+');" checked="checked"/>텍스트배너</label>';
+			html += '	</td>';
+			html += '</tr>';
+		}
 		if(contentsLoc=='SCM002' || contentsLoc=='SCM003'){
 			html += '		<tr>';
 			html += '			<th>전시 설정</th>';
@@ -983,6 +1002,10 @@
 					html = $(this).find("textarea[name=openBannerDesc"+thisIdx+"]").val();
 				}
 			}
+			if(contentsLoc=='SGNB002'){
+				var thisIdx = $(this).find("input[name=tableIdx]").val();
+				contentsType = $(this).find("input:radio[name=cateType"+thisIdx+"]:checked").val();
+			}
 
 			if(contentsLoc=='SMM001' || contentsLoc=='SOM001'){
 				var thisIdx = $(this).find("input[name=tableIdx]").val();

+ 2 - 1
src/main/webapp/WEB-INF/views/display/MainListForm.html

@@ -407,12 +407,13 @@
 
 		if(cate1No=='1700'){
 			contentsLocHtml += '<option value="SGNB001">[SGNB001] STYLE24MALL > GNB > TOP배너</option>';
+			contentsLocHtml += '<option value="SGNB002">[SGNB002] STYLE24MALL > GNB > TOP배너(모바일)</option>';
 			contentsLocHtml += '<option value="STAB001">[STAB001] STYLE24MALL > GNB > 브랜드</option>';
 			contentsLocHtml += '<option value="STAB002">[STAB002] STYLE24MALL > GNB > 카테고리</option>';
 			contentsLocHtml += '<option value="SKEY001">[SKEY001] STYLE24MALL > GNB > 검색어</option>';
 		}
 		if(cate1No=='1720'){
-			contentsLocHtml += '<option value="SGNB002">[SGNB001] STYLE24MALL > GNB > TOP배너(모바일)</option>';
+			contentsLocHtml += '<option value="SGNB002">[SGNB002] STYLE24MALL > GNB > TOP배너(모바일)</option>';
 			contentsLocHtml += '<option value="STAB001">[STAB001] STYLE24MALL > GNB > 브랜드</option>';
 			contentsLocHtml += '<option value="STAB002">[STAB002] STYLE24MALL > GNB > 카테고리</option>';
 			contentsLocHtml += '<option value="SKEY001">[SKEY001] STYLE24MALL > GNB > 검색어</option>';