Sfoglia il codice sorgente

상품상세-세트상품 상품명노출

jmh 4 anni fa
parent
commit
20a8b61dae

+ 8 - 2
src/main/webapp/WEB-INF/views/mob/goods/GoodsDetailFormMob.html

@@ -446,7 +446,11 @@
 					</th:block>
 					
 					<th:block th:if="${goodsCompose.tobeFormYn == 'Y'}">
-									
+						<!-- 상품명 -->
+						<div class="mdhtml_box">
+							<span class="tit_view" th:text="${goodsCompose.compsGoodsNm}">상품명</span>
+						</div>
+						
 						<!-- 착용컷 노출 -->
 						<div class="view_outfit_box" th:if="${#strings.contains(goodsCompose.goodsImgList,'_C1') 
 															or #strings.contains(goodsCompose.goodsImgList,'_C2')
@@ -2520,9 +2524,11 @@
 		if ("G056_S" == [[${goodsInfo.goodsType}]] ){
 			let goodsComposeList = ([[${goodsComposeList}]]);
 			if (goodsComposeList.length > 0){
+				var titStr = "";
 				$.each(goodsComposeList, function(idx, item) {
 					if ("N" == item.tobeFormYn && !gagajf.isNull(item.goodsDesc)){
-						$('#goodsDescHtml_'+ item.compsGoodsCd).html(item.goodsDesc);
+						titStr = '<span class="tit_view">'+item.compsGoodsNm+'</span>';
+						$('#goodsDescHtml_'+ item.compsGoodsCd).html(titStr + item.goodsDesc);
 					}	
 				});
 			}

+ 8 - 1
src/main/webapp/WEB-INF/views/web/goods/GoodsDetailFormWeb.html

@@ -892,6 +892,11 @@
 					</th:block>
 
 					<th:block th:if="${goodsCompose.tobeFormYn == 'Y'}">
+						<!-- 상품명 -->
+						<div class="mdhtml_box">
+							<span class="tit_view" th:text="${goodsCompose.compsGoodsNm}">상품명</span>
+						</div>
+						
 						<!-- 착용컷 노출 -->
 						<div class="view_outfit_box" th:if="${#strings.contains(goodsCompose.goodsImgList,'_C1') 
 															or #strings.contains(goodsCompose.goodsImgList,'_C2')
@@ -1461,9 +1466,11 @@
 	if ("G056_S" == [[${goodsInfo.goodsType}]] ){
 		let goodsComposeList = ([[${goodsComposeList}]]);
 		if (goodsComposeList.length > 0){
+			var titStr = "";
 			$.each(goodsComposeList, function(idx, item) {
 				if ("N" == item.tobeFormYn && !gagajf.isNull(item.goodsDesc)){
-					$('#goodsDescHtml_'+ item.compsGoodsCd).html(item.goodsDesc);
+					titStr = '<span class="tit_view">'+item.compsGoodsNm+'</span>';
+					$('#goodsDescHtml_'+ item.compsGoodsCd).html(titStr + item.goodsDesc);
 				}	
 			});
 		}