Pārlūkot izejas kodu

테스트 수정

eskim 5 gadi atpakaļ
vecāks
revīzija
b00e0bacd5

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

@@ -442,7 +442,7 @@
 		</div>
 		<!-- 상품 대표설명 -->
 		<!-- 함께하면 할인되는 다다익선 상품 -->
-		<div class="content wide pd_together" id="goodsTmtbArea">
+		<div class="content pd_together" id="goodsTmtbArea">
 			
 		</div>
 		<!-- // 함께하면 할인되는 다다익선 상품 -->

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

@@ -33,7 +33,7 @@
 		<div class="qna_list">
 			<!-- 나열조건결과 있을 때 노출 내용 -->
 			<div class="form_field">
-				<input id="except_secret" name="except_secret" type="checkbox"  onclick="fnGetList();"><label for="except_secret"><span>비밀글제외</span></label>
+				<input id="except_secret" name="except_secret" type="checkbox"  onclick="fnGoodsQnaList();"><label for="except_secret"><span>비밀글제외</span></label>
 				<input  type="hidden" name="secretYn" >
 			</div>
 			<div class="ui_row">
@@ -65,7 +65,7 @@
 <script th:inline="javascript">
 /*<![CDATA[*/
 	
-	var fnGetList = function() {
+	var fnGoodsQnaList = function() {
 		
 		// 상품문의창 닫기
 		//$("#layer_goods_qna_reg").modal("hide");
@@ -77,13 +77,13 @@
 			$('#goodsQnaForm  input[name="secretYn"]').val('N');
 		}
 		// Initialize a pagination
-		gagaPaging.init('goodsQnaForm', fnGetListCallback, 'pageNav', 20);
+		gagaPaging.init('goodsQnaForm', fnGoodsQnaListCallback, 'pageNav', 20);
 
 		// Load data
 		gagaPaging.load(1);
 	}
 	
-	var fnGetListCallback = function(result) {
+	var fnGoodsQnaListCallback = function(result) {
 		$('#ulGoodsQna').html('');
 		$('#goodsQnaForm').find('.nodata').hide();
 		// 목록
@@ -147,7 +147,7 @@
 	}
 	
 	$(document).ready(function() {
-		fnGetList();
+		fnGoodsQnaList();
 	});
 	
 /*]]>*/

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

@@ -299,12 +299,12 @@
 					<div class="best_review">
 						<a href="javascript:void(0);" th:onclick="cfGoodsReviewDetail([[${goodsInfo.goodsCd}]], 'Y', '', [[${bestReview.reviewSq}]])" >
 							<div class="pic" th:if="${bestReview.reviewAttachList != null and !bestReview.reviewAttachList.empty}">
-								<th:block th:each="reviewAttach, attachStatus : ${bestReview.reviewAttachList}">
+								<th:block th:each="reviewAttach, attachStatus : ${bestReview.reviewAttachList}" th:if="${attachStatus.first}">
 								<span class="thumb" th:classAppend="${(reviewAttach.fileGb == 'M') ? 'mov' :''}" th:style="${'background-image:url('+imgUrl+ reviewAttach.sysFileNm+');'}"></span><!-- 동영상의 썸네일일 경우 mov 클래스 추가 -->
 								</th:block>
 							</div>
 							<div class="pic" th:unless="${bestReview.reviewAttachList != null and !bestReview.reviewAttachList.empty}">
-								<span class="thumb" th:style="${'background-image:url('+imgGoodsUrl+ '/'+goodsInfo.sysImgNm+'?RS=365);'}">
+								<span class="thumb" th:style="${'background-image:url('+imgGoodsUrl+ '/'+goodsInfo.sysImgNm+'?RS=162);'}">
 								</span>
 							</div>
 							<div class="star_score" th:with="starScore=${#numbers.formatDecimal((bestReview.iscore*100/5), 0,0)}">
@@ -347,7 +347,7 @@
 			</th:block>
 		</div>
 	</div>
-	<div class="area_rv_all">
+	<div class="area_rv_all"  style="display:none;">
 	<form id="goodsReviewForm" name="goodsReviewForm" action="#" th:action="@{'/goods/review/list'}">
 	<input type="hidden" name="pageNo" value ="1"/>
 	<input type="hidden" name="pageSize" value ="20"/>
@@ -474,6 +474,7 @@
 		// 목록
 		if (result.dataList != null && result.dataList.length > 0) {
 			
+			$('.area_rv_all').show();
 			$.each(result.dataList, function(idx, item) {
 				let tag = '<li>\n';
 				tag += '<div class="review">\n';
@@ -637,6 +638,21 @@
 	
 	$(document).ready( function() {
 
+		//슬라이드 - 베스트리뷰
+	    var bestReviewtSwiper = new Swiper('.area_rv_best .swiper-container', {
+	        slidesPerView: 2,
+	        spaceBetween: 20,
+	        navigation: {
+	            nextEl: '.area_rv_best .swiper-button-next',
+	            prevEl: '.area_rv_best .swiper-button-prev',
+	        },
+	        pagination: {
+	            el: '.area_rv_best .swiper-pagination',
+	            clickable: true,
+	        },
+	    });
+
+		
 		var sort_selecter01 = new sCombo('.area_rv_all .selection .select_custom.sort_opt1');
 		var sort_selecter02 = new sCombo('.area_rv_all .selection .select_custom.sort_opt2');
 		var sort_selecter03 = new sCombo('.area_rv_all .selection .select_custom.sort_opt3');
@@ -651,8 +667,7 @@
 				$(this).parents('div dl dd').find('.ratio .progbar').attr('style', 'width:' + reviewRatio);
 			}
 		});
-		
-		fnGetList();
+			fnGetList();	
 		
 	});