Bladeren bron

모바일 상품리스트 상단 카테고리 수정

bin2107 4 jaren geleden
bovenliggende
commit
a3c0ef91a5

BIN
src/main/webapp/WEB-INF/lib/Istyle.jar


+ 4 - 4
src/main/webapp/WEB-INF/views/mob/display/BrandMainFormMob.html

@@ -104,7 +104,7 @@
 														</div>
 														<p class="itemBrand" th:text="${goodsData.brandGroupNm}"></p>
 														<div class="itemName" th:text="${goodsData.goodsFullNm}"></div>
-														<div class="itemComment" th:text="${goodsData.goodsTnm}"></div>
+														<div class="itemComment" th:if="${not #strings.isEmpty(goodsData.goodsTnm)}"  th:text="${goodsData.goodsTnm}"></div>
 														<p class="itemPrice" th:text="${#numbers.formatInteger(goodsData.currPrice,1,'COMMA')}"></p>
 													</a>
 												</div>
@@ -175,7 +175,7 @@
 															</div>
 															<p class="itemBrand" th:text="${goodsData.brandGroupNm}">BRAND NAME</p>
 															<div class="itemName"th:text="${goodsData.goodsFullNm}">남성 헤링본 기모 팬츠 헤링본 기모 팬츠</div>
-															<div class="itemComment" th:text="${goodsData.goodsTnm}">#가을 느낌 물씬!!</div>
+															<div class="itemComment" th:if="${not #strings.isEmpty(goodsData.goodsTnm)}" th:text="${goodsData.goodsTnm}">#가을 느낌 물씬!!</div>
 															<p class="itemPrice">
 																<span class="itemPrice_original" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${#numbers.formatInteger(goodsData.listPrice,1,'COMMA')}">89,000</span>
 																[[${#numbers.formatInteger(goodsData.currPrice,1,'COMMA')}]]
@@ -261,7 +261,7 @@
 															</div>
 															<p class="itemBrand" th:text="${goodsData.brandGroupNm}">BRAND NAME</p>
 															<div class="itemName" th:text="${goodsData.goodsFullNm}">남성 헤링본 기모 팬츠 헤링본 기모 팬츠</div>
-															<div class="itemComment" th:text="${goodsData.goodsTnm}">#가을 느낌 물씬!!</div>
+															<div class="itemComment" th:if="${not #strings.isEmpty(goodsData.goodsTnm)}" th:text="${goodsData.goodsTnm}">#가을 느낌 물씬!!</div>
 															<p class="itemPrice">
 																<span class="itemPrice_original" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${#numbers.formatInteger(goodsData.listPrice,1,'COMMA')}">89,000</span>
 																[[${#numbers.formatInteger(goodsData.currPrice,0,'COMMA')}]]
@@ -356,7 +356,7 @@
 											</div>
 											<p class="itemBrand" th:text="${goodsData.brandGroupNm}">BRAND NAME</p>
 											<div class="itemName" th:text="${goodsData.goodsFullNm}">남성 헤링본 기모 팬츠 헤링본 기모 팬츠</div>
-											<div class="itemComment" th:text="${goodsData.goodsTnm}">#주문 폭주 상품</div>
+											<div class="itemComment" th:if="${not #strings.isEmpty(goodsData.goodsTnm)}" th:text="${goodsData.goodsTnm}">#주문 폭주 상품</div>
 											<p class="itemPrice">
 												<span class="itemPrice_original" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${#numbers.formatInteger(goodsData.listPrice,1,'COMMA')}">89,000</span>
 												[[${#numbers.formatInteger(goodsData.currPrice,0,'COMMA')}]]

+ 232 - 29
src/main/webapp/WEB-INF/views/mob/display/CategoryGoodsListFormMob.html

@@ -1182,28 +1182,6 @@
 			return tag;
 		}
 
-		var fnTest = function (){
-			let actionUrl = '/display/brand/cate/list?brandGroupNo=' + [[${cateInfo.brandGroupNo}]];
-			let brandGroupNo = [[${cateInfo.brandGroupNo}]];
-			let cate1No = [[${cateInfo.cate1No}]];
-			let allCate = [[${cateList}]];
-			let tag = '';
-			$.getJSON(actionUrl, function(result, status){
-				$.each(allCate, function(allCateIdx, allCateItem) {
-					if (item.cate1No == allCateItem.cate1No) {
-						$.each(allCate, function(allCateIdx, allCateItem) {
-							if (item.cate1No == allCateItem.cate1No) {
-								tag += '<li>';
-								tag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList('+brandGroupNo+',\'' + cateGb + '\',' + item.cate1No + ',' + item.cate2No + ',' + item.cate3No + ',' + item.cate4No + ',' + item.cate5No + ')">'+item.cate1Nm+'</a>';
-								tag += '</li>\n';
-							}
-						});
-					}
-				});
-			});
-			$('#cateDepth').append(tag);
-		}
-
 		var fnGetSameDepthList = function (){
 			var brandGroupNo = [[${cateInfo.brandGroupNo}]];
 			var cateGb =  [[${cateInfo.cateGb}]];
@@ -1221,6 +1199,7 @@
 			if(!gagajf.isNull(cate5No)){
 
 			}else if(!gagajf.isNull(cate4No)){
+				var leaf_Yn = 'N';
 				$.each(cateList, function(idx,item){
 					let cate2 = item.cate2List;
 					$.each(cate2, function(idx2, item2){
@@ -1242,6 +1221,9 @@
 									tag += '</li>\n';
 									$.each(item3.cate4List, function(idx4, item4){
 										if(item4.cate4No == cate4No){
+											if(item4.leafYn == 'Y'){
+												leaf_Yn = 'Y';
+											}
 											if(idx<1) {
 												$("#htopTitle").append(fnDisplayTitle(item4.cate4Nm));
 											}
@@ -1260,7 +1242,9 @@
 													leafTag += ');">'+item5.cate5Nm+'</a>';
 												});
 											}
-											$('#leafCateList').append(leafTag);
+											if(leaf_Yn == 'N'){
+												$('#leafCateList').append(leafTag);
+											}
 										}
 										tag += '<li ';
 										if(item4.cate4No == cate4No){
@@ -1269,7 +1253,7 @@
 										tag += '>\n';
 										tag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + item4.cate1No + ', ' + item4.cate2No + ', ' + item4.cate3No + ', ' + item4.cate4No + ' ';
 										if(formalGb=='G009_20'){
-											leafTag += ' ,\'\',\''+formalGb+'\'';
+											tag += ' ,\'\',\''+formalGb+'\'';
 										}
 										tag += ' );">'+item4.cate4Nm+'</a></li>';
 									});
@@ -1279,8 +1263,84 @@
 					});
 					tag += '</ul>\n';
 				});
-				$("#cateDepth").append(tag);
+				if(leaf_Yn == 'N'){
+					$("#cateDepth").append(tag);
+				}else{
+					tag = '';
+					$.each(cateList, function(idx,item){
+						let cate2 = item.cate2List;
+						$.each(cate2, function (idx2,item2){
+							if(item2.cate2No == cate2No){
+								tag += '<a href="javascript:void(0);" class="daps1" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + item2.cate1No + ' ,' + item2.cate2No + ' ';
+								if(formalGb=='G009_20'){
+									tag += ' ,\'\',\'\',\'\',\''+formalGb+'\'';
+								}
+								tag += ' )">'+item2.cate2Nm+'</a>';
+								tag += '<ul class="daps2">\n';
+								tag += '<li>';
+								tag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + item2.cate1No + ' ,' + item2.cate2No + ' ';
+								if(formalGb=='G009_20'){
+									tag += ' ,\'\',\'\',\'\',\''+formalGb+'\'';
+								}
+								tag += ' )">전체</a>';
+								tag += '</li>\n';
+								$.each(item2.cate3List, function (idx3, item3){
+									if(idx<1) {
+										tag += '<li';
+										if(item3.cate3No == cate3No){
+											if(item3.leafYn == 'Y'){
+												leaf_Yn = 'Y';
+											}
+											tag += ' class="on"';
+										}
+										tag += '><a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + item2.cate1No + ', ' + item2.cate2No + ', ' + item3.cate3No + ' ';
+										if(formalGb=='G009_20'){
+											tag += ' ,\'\',\'\',\''+formalGb+'\'';
+										}
+										tag += ');">'+item3.cate3Nm+'</a></li>';
+									}
+								});
+							}
+						});
+
+						$.each(cate2, function (idx2,item2){
+							let leafTag = '';
+							if(item2.cate2No == cate2No){
+								leafTag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + item2.cate1No + ', ' + item2.cate2No + ', ' + cate3No + ' ';
+								if(formalGb=='G009_20'){
+									leafTag += ' ,\'\',\'\',\''+formalGb+'\'';
+								}
+								leafTag += ');">전체</a>';
+								$.each(item2.cate3List, function(idx3, item3){
+									if(item3.cate3No == cate3No){
+										if(idx<1) {
+											$("#htopTitle").append(fnDisplayTitle(item3.cate3Nm));
+										}
+										if(item3.cate4List != null && item3.cate4List.length > 0){
+											$.each(item3.cate4List, function (idx4, item4){
+												leafTag += '<a href="javascript:void(0);"';
+												if(item4.cate4No == cate4No){
+													leafTag += ' class="on"';
+												}
+												leafTag += ' onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + [[${cateInfo.cateGb}]] + '\', ' + item4.cate1No + ' , ' + item4.cate2No + ', ' + item4.cate3No + ' , ' + item4.cate4No + ' ';
+												if(formalGb=='G009_20'){
+													leafTag += ' ,\'\',\''+formalGb+'\'';
+												}
+												leafTag += ');">'+item4.cate4Nm+'</a>';
+											});
+											// $('#leafCateList').append(leafTag);
+										}
+									}
+								});
+								$('#leafCateList').append(leafTag);
+							}
+						});
+						tag += '</ul>\n';
+					});
+					$("#cateDepth").append(tag);
+				}
 			}else if(!gagajf.isNull(cate3No)){
+				var leaf_Yn = 'N';
 				$.each(cateList, function(idx,item){
 					let cate2 = item.cate2List;
 					$.each(cate2, function (idx2,item2){
@@ -1302,6 +1362,9 @@
 								if(idx<1) {
 									tag += '<li';
 									if(item3.cate3No == cate3No){
+										if(item3.leafYn == 'Y'){
+											leaf_Yn = 'Y';
+										}
 										tag += ' class="on"';
 									}
 									tag += '><a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + item2.cate1No + ', ' + item2.cate2No + ', ' + item3.cate3No + ' ';
@@ -1339,13 +1402,76 @@
 									}
 								}
 							});
-							$('#leafCateList').append(leafTag);
+							if(leaf_Yn == 'N'){
+								$('#leafCateList').append(leafTag);
+							}
 						}
 					});
 					tag += '</ul>\n';
 				});
-				$("#cateDepth").append(tag);
+				if(leaf_Yn == 'N'){
+					$("#cateDepth").append(tag);
+				}else{
+					tag = '';
+					$.each(cateList, function(idx,item){
+						tag += '<a href="javascript:void(0);" class="daps1" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + item.cate1No + ' ';
+						if(formalGb=='G009_20'){
+							tag += ' ,\'\',\'\',\'\',\'\',\''+formalGb+'\'';
+						}
+						tag += ' )">'+item.cate1Nm+'</a>';
+						tag += '<ul class="daps2">\n';
+						tag += '<li>';
+						tag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + item.cate1No + ' ';
+						if(formalGb=='G009_20'){
+							tag += ' ,\'\',\'\',\'\',\'\',\''+formalGb+'\'';
+						}
+						tag += ' )">전체</a>';
+						tag += '</li>\n';
+						$.each(item.cate2List, function (idx2,item2){
+							if(item2.cate2No == cate2No){
+								if(idx<1) {
+									$("#htopTitle").append(fnDisplayTitle(item2.cate2Nm));
+								}
+								if(item2.cate3List != null && item2.cate3List.length > 0){
+									let leafTag = '';
+									leafTag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + item2.cate1No + ', ' + item2.cate2No + ' ';
+									if(formalGb=='G009_20'){
+										leafTag += ' ,\'\',\'\',\'\',\''+formalGb+'\'';
+									}
+									leafTag += ');">전체</a>';
+									$.each(item2.cate3List, function (idx3, item3){
+										leafTag += '<a href="javascript:void(0);" ';
+										if(cate3No == item3.cate3No){
+											leafTag += 'class="on"';
+										}
+										leafTag += 'onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + [[${cateInfo.cateGb}]] + '\', ' + item3.cate1No + ' , ' + item3.cate2No + ', ' + item3.cate3No + ' ';
+										if(formalGb=='G009_20'){
+											leafTag += ' ,\'\',\'\',\''+formalGb+'\'';
+										}
+										leafTag += ');">'+item3.cate3Nm+'</a>';
+									});
+									$('#leafCateList').append(leafTag);
+								}
+							}
+							if(idx<1) {
+								tag += '<li';
+								if(item2.cate2No == cate2No){
+									tag += ' class="on"';
+								}
+								tag += '><a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + item2.cate1No + ', ' + item2.cate2No + ' ';
+								if(formalGb=='G009_20'){
+									tag += ' ,\'\',\'\',\'\',\''+formalGb+'\'';
+								}
+								tag += ');">'+item2.cate2Nm+'</a></li>';
+							}
+
+						});
+						tag += '</ul>\n';
+					});
+					$("#cateDepth").append(tag);
+				}
 			}else if(!gagajf.isNull(cate2No)){
+				var leaf_Yn = 'N';
 				$.each(cateList, function(idx,item){
 					tag += '<a href="javascript:void(0);" class="daps1" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + item.cate1No + ' ';
 					if(formalGb=='G009_20'){
@@ -1362,6 +1488,9 @@
 					tag += '</li>\n';
 					$.each(item.cate2List, function (idx2,item2){
 						if(item2.cate2No == cate2No){
+							if(item2.leafYn == 'Y'){
+								leaf_Yn = 'Y';
+							}
 							if(idx<1) {
 								$("#htopTitle").append(fnDisplayTitle(item2.cate2Nm));
 							}
@@ -1379,7 +1508,9 @@
 									}
 									leafTag += ');">'+item3.cate3Nm+'</a>';
 								});
-								$('#leafCateList').append(leafTag);
+								if(leaf_Yn == 'N'){
+									$('#leafCateList').append(leafTag);
+								}
 							}
 						}
 						if(idx<1) {
@@ -1397,7 +1528,79 @@
 					});
 					tag += '</ul>\n';
 				});
-				$("#cateDepth").append(tag);
+				if(leaf_Yn == 'N'){
+					$("#cateDepth").append(tag);
+				}else{
+					tag = '';
+					if(formalGb=='G009_20'){
+						tag += '<a class="daps1" href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',\'\',\'\',\'\',\'\',\'\',\''+formalGb+'\')";>전체</a>\n';
+						tag += '<ul class="daps2">\n';
+					}
+					$.each(cateList, function(idx,item){
+						$.each(allCateList, function (allIdx, allItem){
+							if(brandGroupNo > 0){
+								if(item.cate1No==allItem.cate1No){
+									if(idx<1) {
+										$("#htopTitle").append(fnDisplayTitle(item.cate1Nm));
+									}
+									if(idx<1) {
+										tag += '<li';
+										if(item.cate1No==allItem.cate1No){
+											tag += ' class="on"';
+										}
+										tag += '><a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + item.cate1No + ' ';
+										if(formalGb=='G009_20'){
+											tag += ' ,\'\',\'\',\'\',\'\',\''+formalGb+'\'';
+										}
+										tag += ');">'+item.cate1Nm+'</a></li>';
+									}
+								}
+							}else{
+								if(item.cate1No==allItem.cate1No){
+									if(idx<1) {
+										$("#htopTitle").append(fnDisplayTitle(item.cate1Nm));
+									}
+								}
+								if(idx<1) {
+									tag += '<li';
+									if(item.cate1No==allItem.cate1No){
+										tag += ' class="on"';
+									}
+									tag += '><a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',' + allItem.cate1No + ' ';
+									if(formalGb=='G009_20'){
+										tag += ' ,\'\',\'\',\'\',\'\',\''+formalGb+'\'';
+									}
+									tag += ');">'+allItem.cate1Nm+'</a></li>';
+								}
+							}
+						});
+
+						if(item.cate2List != null && item.cate2List.length > 0){
+							let leafTag = '';
+							leafTag += '<a href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\', \'\' ';
+							if(formalGb=='G009_20'){
+								leafTag += ' ,\'\',\'\',\'\',\'\',\''+formalGb+'\'';
+							}
+							leafTag += ');">전체</a>';
+							$.each(item.cate2List, function (idx, item){
+								leafTag += '<a href="javascript:void(0);"';
+								if(item.cate2No == cate2No){
+									leafTag += ' class="on"';
+								}
+								leafTag += ' onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + [[${cateInfo.cateGb}]] + '\', ' + item.cate1No + ' , ' + item.cate2No + ' ';
+								if(formalGb=='G009_20'){
+									leafTag += ' ,\'\',\'\',\'\',\''+formalGb+'\'';
+								}
+								leafTag += ');">'+item.cate2Nm+'</a>';
+							});
+							$('#leafCateList').append(leafTag);
+						}
+					});
+					if(formalGb=='G009_20'){
+						tag += '</ul>\n';
+					}
+					$("#cateDepth").append(tag);
+				}
 			}else if(!gagajf.isNull(cate1No)){
 				if(formalGb=='G009_20'){
 					tag += '<a class="daps1" href="javascript:void(0);" onclick="cfnGoToGoodsList(' + brandGroupNo + ',\'' + cateGb + '\',\'\',\'\',\'\',\'\',\'\',\''+formalGb+'\')";>전체</a>\n';

+ 4 - 4
src/main/webapp/WEB-INF/views/mob/display/MallMainFormMob.html

@@ -120,7 +120,7 @@
 															<img alt="BLUE-a" class=" pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm}" onerror="noneImg(this)"  >
 														</div>
 														<p class="itemBrand" th:text="${goodsData.brandGroupNm}">BRAND NAME</p>
-														<div class="itemComment" th:text="${goodsData.goodsTnm}">#주문 폭주 상품</div>
+														<div class="itemComment" th:if="${not #strings.isEmpty(goodsData.goodsTnm)}" th:text="${goodsData.goodsTnm}">#주문 폭주 상품</div>
 														<div class=" itemName" th:text="${goodsData.goodsFullNm}">가을 신상 남성 스탠다드핏 로고맨 블루 볼 캡 유니 경량다운 시보리넥 베스트</div>
 														<p class="itemPrice" th:text="${#numbers.formatInteger(goodsData.currPrice,1,'COMMA')}">488,000</p>
 													</a>
@@ -177,7 +177,7 @@
 																		<img alt="" class=" pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + bestItemData.sysImgNm}" onerror="noneImg(this)">
 																	</div>
 																	<p class="itemBrand" th:text="${bestItemData.brandGroupNm}">TBJ</p>
-																	<div class="itemComment" th:text="${bestItemData.goodsTnm}"># 가을 느낌 물씬!</div>
+																	<div class="itemComment" th:if="${not #strings.isEmpty(bestItemData.goodsTnm)}" th:text="${bestItemData.goodsTnm}"># 가을 느낌 물씬!</div>
 																	<div class="itemName" th:text="${bestItemData.goodsFullNm}">11111 남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
 																	<p class="itemPrice">
 																		<span class="itemPrice_original" th:if="${bestItemData.currPrice != bestItemData.listPrice}" th:text="${#numbers.formatInteger(bestItemData.listPrice,3,'COMMA')}">89,000</span>[[${#numbers.formatInteger(bestItemData.currPrice,0,'COMMA')}]]
@@ -272,7 +272,7 @@
 																	<img alt="" class=" pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm}" onerror="noneImg(this)">
 																</div>
 																<p class="itemBrand" th:text="${goodsData.brandGroupNm}">TBJ</p>
-																<div class="itemComment" th:text="${goodsData.goodsTnm}"># 가을 느낌 물씬!</div>
+																<div class="itemComment" th:if="${not #strings.isEmpty(goodsData.goodsTnm)}"  th:text="${goodsData.goodsTnm}"># 가을 느낌 물씬!</div>
 																<div class="itemName" th:text="${goodsData.goodsNm}">11111 남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
 																<p class="itemPrice">
 																	<span class="itemPrice_original" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${#numbers.formatInteger(goodsData.listPrice,0,'COMMA')}">89,000</span>[[${#numbers.formatInteger(goodsData.currPrice,0,'COMMA')}]]
@@ -436,7 +436,7 @@
 																			<img alt="" class=" pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm}" onerror="noneImg(this)">
 																		</div>
 																		<p class="itemBrand" th:text="${goodsData.brandGroupNm}">TBJ</p>
-																		<div class="itemComment" th:text="${goodsData.goodsTnm}"># 가을 느낌 물씬!</div>
+																		<div class="itemComment" th:if="${not #strings.isEmpty(goodsData.goodsTnm)}" th:text="${goodsData.goodsTnm}"># 가을 느낌 물씬!</div>
 																		<div class="itemName" th:text="${goodsData.goodsFullNm}">11111 남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
 																		<p class="itemPrice">
 																			<span class="itemPrice_original" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${#numbers.formatInteger(goodsData.listPrice,1,'COMMA')}">89,000</span>[[${#numbers.formatInteger(goodsData.currPrice,0,'COMMA')}]]

+ 2 - 2
src/main/webapp/WEB-INF/views/mob/display/OutletMainFormMob.html

@@ -79,7 +79,7 @@
 														[[${#numbers.formatInteger(item.currPrice,0,'COMMA')}]]
 														<span class="itemPercent" th:if="${item.currPrice != item.listPrice}" th:text="${(item.listPrice == 0 ? 0 : #numbers.formatDecimal((item.listPrice - item.currPrice) / (item.listPrice * 1.0) * 100, 1, 0)) + '%'}">10%</span>
 													</p>
-													<div class="itemComment" th:text="${item.goodsTnm}">#주문 폭주 상품</div>
+													<div class="itemComment" th:if="${not #strings.isEmpty(item.goodsTnm)}" th:text="${item.goodsTnm}">#주문 폭주 상품</div>
 												</a>
 											</div>
 										</div>
@@ -124,7 +124,7 @@
 														<span class="badge13" th:if="${idx.index<3}" th:value="${iconArray[0]}" th:text="${iconArray[1]}"></span>
 													</th:block>
 												</p>
-												<div class="itemComment" th:text="${item.goodsTnm}">#주문 폭주 상품</div>
+												<div class="itemComment" th:if="${not #strings.isEmpty(item.goodsTnm)}" th:text="${item.goodsTnm}">#주문 폭주 상품</div>
 											</a>
 										</div>
 									</div>

+ 4 - 4
src/main/webapp/WEB-INF/views/web/display/BrandMainFormWeb.html

@@ -115,7 +115,7 @@
 														</div>
 														<p class="itemBrand" th:text="${goodsData.brandGroupNm}"></p>
 														<div class=" itemName" th:text="${goodsData.goodsFullNm}"></div>
-														<div class="itemComment" th:text="${goodsData.goodsTnm}">#가을느낌 물씬!</div>
+														<div class="itemComment" th:unless="${goodsData.goodsTnm == null or goodsData.goodsTnm == ''}" th:text="${goodsData.goodsTnm}">#가을느낌 물씬!</div>
 														<p class="itemPrice" th:text="${#numbers.formatInteger(goodsData.currPrice,1,'COMMA')+'원'}"></p>
 													</a>
 												</div>
@@ -190,7 +190,7 @@
 														</div>
 														<p class="itemBrand" th:text="${goodsData.brandGroupNm}"></p>
 														<div class="itemName" th:text="${goodsData.goodsFullNm}"></div>
-														<div class="itemComment" th:text="${goodsData.goodsTnm}">#가을느낌 물씬!!</div>
+														<div class="itemComment" th:unless="${goodsData.goodsTnm == null or goodsData.goodsTnm == ''}" th:text="${goodsData.goodsTnm}">#가을느낌 물씬!!</div>
 														<p class="itemPrice">
 															[[${#numbers.formatInteger(goodsData.currPrice,1,'COMMA')} + 원]]
 															<span class="itemPrice_original" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${#numbers.formatInteger(goodsData.listPrice,1,'COMMA')}"></span>
@@ -270,7 +270,7 @@
 													</div>
 													<p class=" itemBrand" th:text="${goodsData.brandGroupNm}">BRAND NAME</p>
 													<div class=" itemName" th:text="${goodsData.goodsFullNm}">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
-													<div class="itemComment" th:text="${goodsData.goodsTnm}">#베이직 셔츠의 정수1</div>
+													<div class="itemComment" th:unless="${goodsData.goodsTnm == null or goodsData.goodsTnm == ''}" th:text="${goodsData.goodsTnm}">#베이직 셔츠의 정수1</div>
 													<p class="itemPrice" >
 														[[${#numbers.formatInteger(goodsData.currPrice,0,'COMMA')} + 원]]
 														<span class="itemPrice_original" th:text="${#numbers.formatInteger(goodsData.listPrice,1,'COMMA')}">89,000</span>
@@ -374,7 +374,7 @@
 												</div>
 												<p class=" itemBrand" th:text="${goodsData.brandGroupNm}"></p>
 												<div class="itemName" th:text="${goodsData.goodsFullNm}"></div>
-												<div class="itemComment" th:text="${goodsData.goodsTnm}">#가을느낌 물씬!</div>
+												<div class="itemComment" th:unless="${goodsData.goodsTnm == null or goodsData.goodsTnm == ''}" th:text="${goodsData.goodsTnm}">#가을느낌 물씬!</div>
 												<p class="itemPrice">[[${#numbers.formatInteger(goodsData.currPrice,0,'COMMA')} + 원]]
 													<span class="itemPrice_original" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${#numbers.formatInteger(goodsData.listPrice,1,'COMMA')}">89,000</span>
 													<span class=" itemPercent" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${(goodsData.listPrice == 0 ? 0 : #numbers.formatDecimal((goodsData.listPrice - goodsData.currPrice) / (goodsData.listPrice * 1.0) * 100, 1, 0)) + '%'}">10%</span>

+ 5 - 5
src/main/webapp/WEB-INF/views/web/display/MallMainFormWeb.html

@@ -128,7 +128,7 @@
 															<img alt="BLUE-a" class=" vLHTC pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm}" onerror="noneImg(this)">
 														</div>
 														<p class="itemBrand" th:text="${goodsData.brandGroupNm}">BRAND NAME</p>
-														<div class="itemComment" th:text="${goodsData.goodsTnm}">#가을느낌 물씬!</div>
+														<div class="itemComment" th:unless="${goodsData.goodsTnm == null or goodsData.goodsTnm == ''}" th:text="${goodsData.goodsTnm}">#가을느낌 물씬!</div>
 														<div class=" itemName" th:text="${goodsData.goodsFullNm}">스타 착용 여성 퍼 아플리케 오버핏 투마일 웨어링 점퍼</div>
 														<p class="itemPrice" th:text="${#numbers.formatInteger(goodsData.currPrice,1,'COMMA')}">488,000원</p>
 													</a>
@@ -182,7 +182,7 @@
 																<img alt="BLACK-a" class=" vLHTC pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + bestItemData.sysImgNm}" onerror="noneImg(this)">
 															</div>
 															<p class=" itemBrand" th:text="${bestItemData.brandGroupNm}">BRAND NAME</p>
-															<div class="itemComment" th:text="${bestItemData.goodsTnm}">#데일리웨어로 매일입고싶은</div>
+															<div class="itemComment" th:unless="${bestItemData.goodsTnm == null or bestItemData.goodsTnm == ''}" th:text="${bestItemData.goodsTnm}">#데일리웨어로 매일입고싶은</div>
 															<div class=" itemName" th:text="${bestItemData.goodsFullNm}">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
 															<p class="itemPrice">[[${#numbers.formatInteger(bestItemData.currPrice,0,'COMMA')}]]
 																<span class="itemPrice_original" th:if="${bestItemData.currPrice != bestItemData.listPrice}" th:text="${#numbers.formatInteger(bestItemData.listPrice,3,'COMMA')}">89,000</span>
@@ -346,7 +346,7 @@
 																<img alt="" class="pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm}" onerror="noneImg(this)">
 															</div>
 															<p class="itemBrand" th:text="${goodsData.brandGroupNm}">BRAND NAME</p>
-															<div class="itemComment" th:text="${goodsData.goodsTnm}">#데일리웨어로 매일입고싶은</div>
+															<div class="itemComment" th:unless="${goodsData.goodsTnm == null or goodsData.goodsTnm == ''}" th:text="${goodsData.goodsTnm}">#데일리웨어로 매일입고싶은</div>
 															<div class="itemName" th:text="${goodsData.goodsNm}">여성 체인 프린트 큐롯 스커트 프린트 큐롯 스커트</div>
 															<p class="itemPrice">
 																[[${#numbers.formatInteger(goodsData.currPrice,0,'COMMA')}]]
@@ -429,7 +429,7 @@
 																	</th:block>
 																	<img alt="BLACK-a" class=" vLHTC pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm}" onerror="noneImg(this)">
 																</div>
-																<div class="itemComment" th:text="${goodsData.goodsTnm}">#데일리웨어로 매일입고싶은</div>
+																<div class="itemComment" th:unless="${goodsData.goodsTnm == null or goodsData.goodsTnm == ''}" th:text="${goodsData.goodsTnm}">#데일리웨어로 매일입고싶은</div>
 																<div class=" itemName" th:text="${goodsData.goodsFullNm}">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
 																<p class="itemPrice" th:text="${#numbers.formatInteger(goodsData.currPrice,1,'COMMA')}">80,100
 																	<span class="itemPrice_original" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${#numbers.formatInteger(goodsData.listPrice,1,'COMMA')}">89,000</span>
@@ -523,7 +523,7 @@
 																			<img alt="" class=" vLHTC pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm}" onerror="noneImg(this)">
 																		</div>
 																		<p class="itemBrand" th:text="${goodsData.brandGroupNm}">BRAND NAME</p>
-																		<div class="itemComment" th:text="${goodsData.goodsTnm}">#주문 폭주 상품</div>
+																		<div class="itemComment" th:unless="${goodsData.goodsTnm == null or goodsData.goodsTnm == ''}" th:text="${goodsData.goodsTnm}">#주문 폭주 상품</div>
 																		<div class=" itemName" th:text="${goodsData.goodsFullNm}">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
 																		<p class="itemPrice">[[${#numbers.formatInteger(goodsData.currPrice,0,'COMMA')}]]
 																			<span class="itemPrice_original" th:if="${goodsData.currPrice != goodsData.listPrice}" th:text="${#numbers.formatInteger(goodsData.listPrice,1,'COMMA')}">89,000</span>

+ 2 - 2
src/main/webapp/WEB-INF/views/web/display/OutletMainFormWeb.html

@@ -110,7 +110,7 @@
 												<span class="itemPrice_original" th:if="${item.currPrice != item.listPrice}" th:text="${#numbers.formatInteger(item.listPrice,3,'COMMA')}">89,000</span>
 												<span class=" itemPercent" th:if="${item.currPrice != item.listPrice}" th:text="${(item.listPrice == 0 ? 0 : #numbers.formatDecimal((item.listPrice - item.currPrice) / (item.listPrice * 1.0) * 100, 1, 0)) + '%'}">10%</span>
 											</p>
-											<div class="itemComment" th:text="${item.goodsTnm}">#주문 폭주 상품</div>
+											<div class="itemComment" th:if="${not #strings.isEmpty(item.goodsTnm)}" th:text="${item.goodsTnm}">#주문 폭주 상품</div>
 										</a>
 									</div>
 								</div>
@@ -164,7 +164,7 @@
 												<span class="badge13" th:if="${idx.index<3}" th:value="${iconArray[0]}" th:text="${iconArray[1]}"></span>
 											</th:block>
 										</p>
-										<div class="itemComment" th:text="${item.goodsTnm}">#주문 폭주 상품</div>
+										<div class="itemComment" th:if="${not #strings.isEmpty(item.goodsTnm)}" th:text="${item.goodsTnm}">#주문 폭주 상품</div>
 									</a>
 								</div>
 							</div>