|
|
@@ -452,7 +452,7 @@
|
|
|
<h6>포토/영상 리뷰</h6>
|
|
|
<div class="photo_list">
|
|
|
<ul>
|
|
|
- <li th:each="photoReview, status : ${photoReviewList}" th:if="${status.count<=7}">
|
|
|
+ <li th:each="photoReview, status : ${photoReviewList}" th:if="${status.count<=8}">
|
|
|
<th:block th:if="${photoReview.reviewAttachList != null and !photoReview.reviewAttachList.empty}">
|
|
|
<th:block th:each="reviewAttach, attachStatus : ${photoReview.reviewAttachList}" th:if="${attachStatus.first}">
|
|
|
<a href="javascript:void(0);" th:onclick="cfGoodsReviewDetail([[${goodsInfo.goodsCd}]], '', 'Y', [[${photoReview.reviewSq}]])">
|
|
|
@@ -469,8 +469,8 @@
|
|
|
</th:block>
|
|
|
</li>
|
|
|
</ul>
|
|
|
- <!-- 포토영상 게시글 최대 7개 & 버튼노출 -->
|
|
|
- <div th:if="${#lists.size(photoReviewList) >= 8}">
|
|
|
+ <!-- 포토영상 게시글 최대 8개 & 버튼노출 -->
|
|
|
+ <div th:if="${#lists.size(photoReviewList) >= 9}">
|
|
|
<div>
|
|
|
<button type="button" id="btn_more_photoreview" th:onclick="cfGoodsReviewPhoto([[${goodsInfo.goodsCd}]])"><span>더 보기</span></button>
|
|
|
</div>
|
|
|
@@ -478,7 +478,7 @@
|
|
|
<!-- //포토영상 게시글 최대 7개 & 버튼노출 -->
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="area_rv_all">
|
|
|
+ <div class="area_rv_all" style="display:block;">
|
|
|
<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"/>
|
|
|
@@ -590,6 +590,7 @@
|
|
|
|
|
|
var fnDrawInfiniteScrollData = function(result, pageNum){
|
|
|
if (result.dataList != null && result.dataList.length > 0) {
|
|
|
+ $('.area_rv_all').show();
|
|
|
var htm = fnCreateGoodsReviewList(result);
|
|
|
gagaInfiniteScroll.draw(htm);
|
|
|
}else {
|
|
|
@@ -650,6 +651,7 @@
|
|
|
var fnCreateGoodsReviewList = function(result) {
|
|
|
|
|
|
let tag = '';
|
|
|
+
|
|
|
$.each(result.dataList, function(idx, item) {
|
|
|
$('#goodsReviewForm').find('.nodata').hide();
|
|
|
tag += '<li>\n';
|
|
|
@@ -785,19 +787,23 @@
|
|
|
}
|
|
|
|
|
|
// 상품평 초기화
|
|
|
- var fnReviewSearchInit = function(){
|
|
|
+ var fnReviewSearchInit = function(){debugger;
|
|
|
|
|
|
- $('#goodsReviewForm').find('.select_custom.sort_opt1').find('.list li').eq(0).trigger('click')
|
|
|
- $('#goodsReviewForm').find('.select_custom.sort_opt2').find('.list li').eq(0).trigger('click')
|
|
|
- $('#goodsReviewForm').find('.select_custom.sort_opt3').find('.list li').eq(0).trigger('click')
|
|
|
- $('#goodsReviewForm').find('.select_custom.sort_opt4').find('.list li').eq(0).trigger('click')
|
|
|
+ $('#goodsReviewForm').find('#grade').find('ul li').eq(0).trigger('click');
|
|
|
+ $('#goodsReviewForm').find('#size').find('ul li').eq(0).trigger('click');
|
|
|
+ $('#goodsReviewForm').find('#height').find('ul li').eq(0).trigger('click');
|
|
|
+ $('#goodsReviewForm').find('#weight').find('ul li').eq(0).trigger('click');
|
|
|
|
|
|
$('#goodsReviewForm input[name=reviewScore]').val('');
|
|
|
$('#goodsReviewForm input[name=reviewOption]').val('');
|
|
|
$('#goodsReviewForm input[name=reviewHeight]').val('');
|
|
|
$('#goodsReviewForm input[name=reviewWeight]').val('');
|
|
|
|
|
|
- fnGetList();
|
|
|
+ //fnGetList();
|
|
|
+
|
|
|
+ fnReviewCateClose();
|
|
|
+ fnGoodsReviewInfiniteScrollInit();
|
|
|
+ fnGoodsReviewListSearch();
|
|
|
}
|
|
|
|
|
|
var fnReviewCateClose = function(){
|