|
|
@@ -113,7 +113,7 @@
|
|
|
<strong>하의</strong>
|
|
|
<th:block th:each="filterSizeData, filterSizeStat : ${filterSizeList}" th:if="${filterSizeData.filterCd == 'B'}">
|
|
|
<label class="size_btn">
|
|
|
- <input type="checkbox" group="filterValue" th:id="${'chkFilterBSize'+filterSizeStat.count}" name="size2" th:vale="${filterSizeData.filterNm}" th:data-id="${filterSizeData.filterNm}" onclick="filterSel(this,'size','off','2');"><span th:text="${filterSizeData.filterNm}">80</span>
|
|
|
+ <input type="checkbox" group="filterValue" th:id="${'chkFilterBSize'+filterSizeStat.count}" name="size" th:vale="${filterSizeData.filterNm}" th:data-id="${filterSizeData.filterNm}" onclick="filterSel(this,'size','off','2');"><span th:text="${filterSizeData.filterNm}">80</span>
|
|
|
</label>
|
|
|
</th:block>
|
|
|
</li>
|
|
|
@@ -121,7 +121,7 @@
|
|
|
<strong>신발</strong>
|
|
|
<th:block th:each="filterSizeData, filterSizeStat : ${filterSizeList}" th:if="${filterSizeData.filterCd == 'S'}">
|
|
|
<label class="size_btn">
|
|
|
- <input type="checkbox" group="filterValue" th:id="${'chkFilterSSize'+filterSizeStat.count}" name="size3" th:vale="${filterSizeData.filterNm}" th:data-id="${filterSizeData.filterNm}" onclick="filterSel(this,'size','off','3');"><span th:text="${filterSizeData.filterNm}">80</span>
|
|
|
+ <input type="checkbox" group="filterValue" th:id="${'chkFilterSSize'+filterSizeStat.count}" name="size" th:vale="${filterSizeData.filterNm}" th:data-id="${filterSizeData.filterNm}" onclick="filterSel(this,'size','off','3');"><span th:text="${filterSizeData.filterNm}">80</span>
|
|
|
</label>
|
|
|
</th:block>
|
|
|
</li>
|
|
|
@@ -132,7 +132,9 @@
|
|
|
<!-- 가격 -->
|
|
|
<div class="sort tap04" id="priceFilterDiv">
|
|
|
<div class="range">
|
|
|
- <input type="text" class="js-range-slider01" name="my_range01" value="" />
|
|
|
+ <input type="text" class="js-range-slider01" name="" value="" />
|
|
|
+ <input type="hidden" id="price_input_from" value="0"/>
|
|
|
+ <input type="hidden" id="price_input_to" value="0"/>
|
|
|
</div>
|
|
|
<a href="javascript:void(0)" class="tap_close">delete-btn</a>
|
|
|
</div>
|
|
|
@@ -152,7 +154,9 @@
|
|
|
<li><input type="checkbox" id="percent10" name="range" value="100"><label for="percent10"><span></span><span>100%</span></label></li>
|
|
|
</ul>
|
|
|
<div class="range">
|
|
|
- <input type="text" class="js-range-slider02" name="my_range02" value="" />
|
|
|
+ <input type="text" class="js-range-slider02" name="" value="" />
|
|
|
+ <input type="hidden" id="dcrate_input_from" value="0"/>
|
|
|
+ <input type="hidden" id="dcrate_input_to" value="0"/>
|
|
|
</div>
|
|
|
<a href="javascript:void(0)" class="tap_close">delete-btn</a>
|
|
|
</div>
|
|
|
@@ -229,7 +233,7 @@
|
|
|
<!-- </span>-->
|
|
|
<!-- 컬러 표시 -->
|
|
|
</div>
|
|
|
- <button class="fillter_reset" onclick="fnFilterReset();"><span>전체 초기화</span></button>
|
|
|
+ <button type="button" class="fillter_reset" onclick="fnFilterReset();"><span>전체 초기화</span></button>
|
|
|
</div>
|
|
|
<!-- //필터 -->
|
|
|
</div>
|
|
|
@@ -299,13 +303,17 @@
|
|
|
<script th:inline="javascript">
|
|
|
/*<![CDATA[*/
|
|
|
var filterPriceList = [[${filterPriceList}]];
|
|
|
+ var custom_values = [];
|
|
|
+ var custom_values02 = [];
|
|
|
+ var currUrl = document.location.href;
|
|
|
+ console.log('currUrl>>'+currUrl);
|
|
|
|
|
|
// 컨텐츠 호출
|
|
|
$(document).ready( function() {
|
|
|
//가격 슬라이드
|
|
|
//var custom_values = ['9,000원', '230,000원', '487,000원', '700,000원', '1,360,000원', '1,799,000원'];
|
|
|
if(!gagajf.isNull(filterPriceList)){
|
|
|
- var custom_values = [];
|
|
|
+
|
|
|
$.each(filterPriceList, function (priceIdx, priceItem){
|
|
|
custom_values[priceIdx] = priceItem.filterNm;
|
|
|
});
|
|
|
@@ -314,7 +322,6 @@
|
|
|
var my_to = custom_values.indexOf(custom_values[5]); //custom_values.indexOf('230,000원');
|
|
|
var minValue = custom_values[0];
|
|
|
var maxValue = custom_values[5];
|
|
|
- console.log('my_from>>'+my_from);
|
|
|
|
|
|
$(".dp .js-range-slider01, .sch_result .js-range-slider01").ionRangeSlider({
|
|
|
type: "double",
|
|
|
@@ -326,14 +333,22 @@
|
|
|
skin: "round",
|
|
|
postfix: "원",
|
|
|
prettify_separator: ",",
|
|
|
- values: custom_values
|
|
|
+ values: custom_values,
|
|
|
+ // onStart : function(data){
|
|
|
+ // fnCheckPrice(data);
|
|
|
+ // },
|
|
|
+ // onChange : fnCheckPrice,
|
|
|
+ onFinish : function(data){
|
|
|
+ fnCheckPrice(data);
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
|
|
|
//할인율
|
|
|
- var custom_values02 = ['0%', '10%', '20%', '30%', '40%', '50%', '60%', '70%', '80%', '90%', '100%'];
|
|
|
+ custom_values02 = ['0%', '10%', '20%', '30%', '40%', '50%', '60%', '70%', '80%', '90%', '100%'];
|
|
|
var my_from02 = custom_values02.indexOf('0%');
|
|
|
- var my_to02 = custom_values02.indexOf('10%');
|
|
|
+ var my_to02 = custom_values02.indexOf('100%');
|
|
|
+
|
|
|
$(".dp .js-range-slider02, .sch_result .js-range-slider02").ionRangeSlider({
|
|
|
type: "double",
|
|
|
min: 0,
|
|
|
@@ -344,22 +359,60 @@
|
|
|
skin: "round",
|
|
|
postfix: "%",
|
|
|
prettify_separator: ",",
|
|
|
- values: custom_values02
|
|
|
+ values: custom_values02,
|
|
|
+ // onStart : function(data){
|
|
|
+ // fnCheckDcRate(data);
|
|
|
+ // },
|
|
|
+ // onChange : fnCheckDcRate,
|
|
|
+ onFinish : function (data){
|
|
|
+ fnCheckDcRate(data);
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
fnCreateCategoryList();
|
|
|
-
|
|
|
- //fnGoodsListSearch();
|
|
|
});
|
|
|
|
|
|
+ // 필터 가격 확인
|
|
|
+ var fnCheckPrice = function (data){
|
|
|
+ $("#priceSpan").remove();
|
|
|
+ $("#searchGoodsForm input:hidden[name=priceRow]").remove();
|
|
|
+ $("#searchGoodsForm input:hidden[name=priceHigh]").remove();
|
|
|
+ let min = data.from;
|
|
|
+ let max = data.to;
|
|
|
+ // console.log('Price from>>'+custom_values[min]);
|
|
|
+ // console.log('Price to>>'+custom_values[max]);
|
|
|
+ $("#price_input_from").val(custom_values[0]);
|
|
|
+ $("#price_input_to").val(custom_values[5]);
|
|
|
+
|
|
|
+ fnFilterSlider('price' , custom_values[min], custom_values[max]);
|
|
|
+ }
|
|
|
+
|
|
|
+ // 필터 할인율 확인
|
|
|
+ var fnCheckDcRate = function (data){
|
|
|
+ $("#dcrateSpan").remove();
|
|
|
+ $("#searchGoodsForm input:hidden[name=dcrateRow]").remove();
|
|
|
+ $("#searchGoodsForm input:hidden[name=dcrateHigh]").remove();
|
|
|
+ let min = data.from;
|
|
|
+ let max = data.to;
|
|
|
+ console.log('DcRate from>>'+custom_values02[min].replace('%',''));
|
|
|
+ console.log('DcRate to>>'+custom_values02[max].replace('%',''));
|
|
|
+ $("#price_input_from").val(0);
|
|
|
+ $("#price_input_to").val(100);
|
|
|
+
|
|
|
+ fnFilterSlider('dcrate' , custom_values02[min].replace('%',''), custom_values02[max].replace('%',''));
|
|
|
+ }
|
|
|
+
|
|
|
var fnFilterReset = function (){
|
|
|
- $("#searchGoodsForm input:hidden[name=brandSearch]").remove();
|
|
|
- $("#searchGoodsForm input:hidden[name=sizeSearch]").remove();
|
|
|
- $("#searchGoodsForm input:hidden[name=priceSearch]").remove();
|
|
|
- $("#searchGoodsForm input:hidden[name=dcrateSearch]").remove();
|
|
|
- $("#searchGoodsForm input:hidden[name=seasonSearch]").remove();
|
|
|
- $("#searchGoodsForm input:hidden[name=colorSearch]").remove();
|
|
|
- $("#searchGoodsForm input:hidden[name=benefitSearch]").remove();
|
|
|
+ document.location.href = currUrl;
|
|
|
+ // $("#searchGoodsForm input:hidden[name=brandSearch]").remove();
|
|
|
+ // $("#searchGoodsForm input:hidden[name=sizeSearch]").remove();
|
|
|
+ // $("#searchGoodsForm input:hidden[name=priceRow]").remove();
|
|
|
+ // $("#searchGoodsForm input:hidden[name=priceHigh]").remove();
|
|
|
+ // $("#searchGoodsForm input:hidden[name=dcrateRow]").remove();
|
|
|
+ // $("#searchGoodsForm input:hidden[name=dcrateHigh]").remove();
|
|
|
+ // $("#searchGoodsForm input:hidden[name=seasonSearch]").remove();
|
|
|
+ // $("#searchGoodsForm input:hidden[name=colorSearch]").remove();
|
|
|
+ // $("#searchGoodsForm input:hidden[name=benefitSearch]").remove();
|
|
|
}
|
|
|
|
|
|
var fnGoodsListSearch = function (){
|
|
|
@@ -380,6 +433,8 @@
|
|
|
var ithrCd = '';
|
|
|
var contentLoc = '';
|
|
|
if (result.dataList != null && result.dataList.length > 0) {
|
|
|
+ $('.list_content .list_defult').hide();
|
|
|
+ $('.list_content .count_wrap').show();
|
|
|
var goodsUrl = [[${@environment.getProperty('upload.goods.view')}]];;
|
|
|
let lastPage = result.paging.pageable.pageNo;
|
|
|
let endRow = result.endRow - result.paging.pageable.pageSize;
|
|
|
@@ -389,6 +444,9 @@
|
|
|
}else {
|
|
|
if($("#searchForm input[name=pageNo]").val()==1){
|
|
|
$('#listBox').html('<li class="none">상품정보가 존재하지 않습니다.</li>');
|
|
|
+ }else{
|
|
|
+ $('.list_content .list_defult').show();
|
|
|
+ $('.list_content .count_wrap').hide();
|
|
|
}
|
|
|
gagaInfiniteScroll.draw('not');
|
|
|
}
|