فهرست منبع

옵션콤보관련 수정

eskim 5 سال پیش
والد
کامیت
6d24df9c89

+ 1 - 1
src/main/java/com/style24/persistence/mybatis/shop/TsfGoods.xml

@@ -401,7 +401,7 @@
 		FROM TB_GOODS_VIDEO A
 		WHERE A.GOODS_CD = #{goodsCd} 
 		AND A.DISP_YN = 'Y'
-		AND A.KMC_KEY IS NOT NULL
+		AND NULLIF(A.KMC_KEY,'') IS NOT NULL
 		ORDER BY A.VIDEO_SQ DESC
 		<if test="maxRownum != null and maxRownum > 0">
 		LIMIT #{maxRownum}

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

@@ -379,12 +379,13 @@
 						<div>
 							<p class="tit normal" th:text="${goodsSafeNo.certDiv}">
 							</p>
-							<p class="normal">
+								<p class="normal" >
 								<th:block th:if="${#strings.contains(goodsSafeNo.certNum, '해당')}" >
 								해당 없음 
 								</th:block>
 								<th:block th:unless="${#strings.contains(goodsSafeNo.certNum, '해당')}" >
-								<span>인증번호:</span> <a class="num" th:href="@{http://www.safetykorea.kr/search/searchPop(certNum=${goodsSafeNo.certNum})}" target="_blank"  th:text="${goodsSafeNo.certNum}">CB123A123-1234</a>
+								인증번호: <th:block th:text="${goodsSafeNo.certNum}"></th:block>
+								<a th:href="@{http://www.safetykorea.kr/search/searchPop(certNum=${goodsSafeNo.certNum})}" target="_blank" class="linktxt3">상세보기</a>
 								</th:block>
 							</p>
 						</div>

+ 5 - 5
src/main/webapp/WEB-INF/views/web/goods/GoodsDealDescFormWeb.html

@@ -195,12 +195,12 @@
 				어린이제품 안전인증 / 한국건설생활시험연구원(KCL)
 			</p>
 			<p class="normal" >
-				<th:block th:if="${not #strings.isEmpty(goodsSafeNo.isCertNum)}" >
-				 인증번호: :CB123A123-1234
-				<a th:href="@{http://www.safetykorea.kr/search/searchPop(certNum=${goodsSafeNo.certNum})}" target="_blank" class="linktxt3">상세보기</a>
+				<th:block th:if="${#strings.contains(goodsSafeNo.certNum, '해당')}" >
+				해당 없음 
 				</th:block>
-				<th:block th:unless="${goodsSafeNo.isCertNum}">
-				해당사항 없음
+				<th:block th:unless="${#strings.contains(goodsSafeNo.certNum, '해당')}" >
+				인증번호: <th:block th:text="${goodsSafeNo.certNum}"></th:block>
+				<a th:href="@{http://www.safetykorea.kr/search/searchPop(certNum=${goodsSafeNo.certNum})}" target="_blank" class="linktxt3">상세보기</a>
 				</th:block>
 			</p>
 			<p class="t_info dot_info">

+ 3 - 6
src/main/webapp/WEB-INF/views/web/goods/GoodsDealDetailFormWeb.html

@@ -367,18 +367,15 @@
 				if (flag == "layer"){
 					$objUp.prepend(tagUpS);
 					var pop_desc_option02 = new sCombo('.pd_descrp_pop .opt_select .select_custom.deal_opt1');
-					$('.pd_descrp_pop .opt_select .select_custom.deal_opt1').addClass('on');
-					$('.pd_descrp_pop .opt_select .select_custom.deal_opt1').find('.list').css('display','block');
+					$('.pd_descrp_pop .opt_select .select_custom.deal_opt1').find('.combo .select').trigger('click');
 				}else if (flag == "Up"){
 					$objUp.prepend(tagUpS);
 					var detail_deal_option02 = new sCombo('.pd_detail .opt_select .select_custom.deal_opt1');
-					$('.pd_detail .opt_select .select_custom.deal_opt1').addClass('on');
-					$('.pd_detail .opt_select .select_custom.deal_opt1').find('.list').css('display','block');
+					$('.pd_detail .opt_select .select_custom.deal_opt1').find('.combo .select').trigger('click');
 				}else{
 					$objDown.prepend(tagDownS);
 					var desc_option02 = new sCombo('.pd_desc_wrap .opt_select .select_custom.deal_opt1');
-					$('.pd_desc_wrap .opt_select .select_custom.deal_opt1').addClass('on');
-					$('.pd_desc_wrap .opt_select .select_custom.deal_opt1').find('.list').css('display','block');
+					$('.pd_desc_wrap .opt_select .select_custom.deal_opt1').find('.combo .select').trigger('click');
 				}
 				
 			}

+ 11 - 16
src/main/webapp/WEB-INF/views/web/goods/GoodsDetailFormWeb.html

@@ -634,7 +634,7 @@
 							해당 없음 
 							</th:block>
 							<th:block th:unless="${#strings.contains(goodsSafeNo.certNum, '해당')}" >
-							인증번호: : <th:block th:text="${goodsSafeNo.certNum}"></th:block>
+							인증번호: <th:block th:text="${goodsSafeNo.certNum}"></th:block>
 							<a th:href="@{http://www.safetykorea.kr/search/searchPop(certNum=${goodsSafeNo.certNum})}" target="_blank" class="linktxt3">상세보기</a>
 							</th:block>
 						</p>
@@ -1270,32 +1270,25 @@
 				$obj.append(tag);
 				if (selfGoodsYn == "Y"){
 					if (ridx == 1){
-						var opt_selecter02_1 = new sCombo('.opt_set_select .select_custom.item_opt2.item_opt2_1');	
-						$('.opt_set_select .select_custom.item_opt2.item_opt2_1').addClass('on');
-						$('.opt_set_select .select_custom.item_opt2.item_opt2_1').find('.list').css('display','block');
+						var opt_selecter02_1 = new sCombo('.opt_set_select .select_custom.item_opt2.item_opt2_1');
+						$('.opt_set_select .select_custom.item_opt2.item_opt2_1').find('.combo .select').trigger('click');
 					}else if (ridx == 2){
 						var opt_selecter02_2 = new sCombo('.opt_set_select .select_custom.item_opt2.item_opt2_2');
-						$('.opt_set_select .select_custom.item_opt2.item_opt2_2').addClass('on');
-						$('.opt_set_select .select_custom.item_opt2.item_opt2_2').find('.list').css('display','block');
+						$('.opt_set_select .select_custom.item_opt2.item_opt2_2').find('.combo .select').trigger('click');
 					}else if (ridx == 3){
 						var opt_selecter02_3 = new sCombo('.opt_set_select .select_custom.item_opt2.item_opt2_3');
-						$('.opt_set_select .select_custom.item_opt2.item_opt2_3').addClass('on');
-						$('.opt_set_select .select_custom.item_opt2.item_opt2_3').find('.list').css('display','block');
+						$('.opt_set_select .select_custom.item_opt2.item_opt2_3').find('.combo .select').trigger('click');
 					}else if (ridx == 4){
 						var opt_selecter02_4 = new sCombo('.opt_set_select .select_custom.item_opt2.item_opt2_4');
-						$('.opt_set_select .select_custom.item_opt2.item_opt2_4').addClass('on');
-						$('.opt_set_select .select_custom.item_opt2.item_opt2_4').find('.list').css('display','block');
+						$('.opt_set_select .select_custom.item_opt2.item_opt2_4').find('.combo .select').trigger('click');
 					}else{
 						var opt_selecter02_5 = new sCombo('.opt_set_select .select_custom.item_opt2.item_opt2_5');
-						$('.opt_set_select .select_custom.item_opt2.item_opt2_5').addClass('on');
-						$('.opt_set_select .select_custom.item_opt2.item_opt2_5').find('.list').css('display','block');
+						$('.opt_set_select .select_custom.item_opt2.item_opt2_5').find('.combo .select').trigger('click');
 					}
 					
 				}else{
 					var opt_selecter02 = new sCombo('.opt_select .select_custom.item_opt2.item_opt2_1');
-					//$('.opt_select .select_custom.item_opt2').removeClass('on');
-					$('.opt_select .select_custom.item_opt2.item_opt2_1').addClass('on');
-					$('.opt_select .select_custom.item_opt2.item_opt2_1').find('.list').css('display','block');
+					$('.opt_set_select .select_custom.item_opt2.item_opt2_1').find('.combo .select').trigger('click');
 					
 				}	
 			}
@@ -1537,8 +1530,10 @@
 					if (minutes < '10') { minutes = '0' + minutes; }
 					if (seconds < '10') { seconds = '0' + seconds; }
 	
+					console.log('days :' + days);
 					if (Number(days) > 0 ){
-						$('#d-days').html(days);	
+						hours = Number(hours) + (Number(days) * 24);
+						$('#d-days').remove();
 					}else{
 						//$('#d-days').css('display','none');
 						$('#d-days').remove();