|
@@ -581,6 +581,8 @@
|
|
|
|
|
|
|
|
<script th:inline="javascript">
|
|
<script th:inline="javascript">
|
|
|
// var filterPriceList = [[${filterPriceList}]];
|
|
// var filterPriceList = [[${filterPriceList}]];
|
|
|
|
|
+ var custom_values = [];
|
|
|
|
|
+
|
|
|
var fnSearchGoodsListSearch = function (){
|
|
var fnSearchGoodsListSearch = function (){
|
|
|
gagaInfiniteScroll.getHistory();
|
|
gagaInfiniteScroll.getHistory();
|
|
|
}
|
|
}
|
|
@@ -773,63 +775,64 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$(document).ready( function() {
|
|
$(document).ready( function() {
|
|
|
- // let priceLen;
|
|
|
|
|
- // var filterPriceList = [[${filterPriceList}]];
|
|
|
|
|
- // if(!gagajf.isNull(filterPriceList)){
|
|
|
|
|
- // priceLen = filterPriceList.length-1;
|
|
|
|
|
- // $.each(filterPriceList, function (priceIdx, priceItem){
|
|
|
|
|
- // custom_values[priceIdx] = priceItem.filterNm;
|
|
|
|
|
- // if(priceLen==0){
|
|
|
|
|
- // custom_values[1] = priceItem.filterNm;
|
|
|
|
|
- // }
|
|
|
|
|
- // });
|
|
|
|
|
- // let my_from;
|
|
|
|
|
- // let my_to;
|
|
|
|
|
- // if(filterPriceList.length > 1){
|
|
|
|
|
- // my_from = custom_values.indexOf(custom_values[0]);
|
|
|
|
|
- // my_to = custom_values.indexOf(custom_values[priceLen]);
|
|
|
|
|
- // }else{
|
|
|
|
|
- // my_from = 0;
|
|
|
|
|
- // my_to = 1;
|
|
|
|
|
- // }
|
|
|
|
|
- //
|
|
|
|
|
- // if(gagajf.isNull($("#filterForm input:hidden[name=priceFrom]").val())){
|
|
|
|
|
- // my_from = $("#filterForm input:hidden[name=priceFrom]").val();
|
|
|
|
|
- // }
|
|
|
|
|
- // if(gagajf.isNull($("#filterForm input:hidden[name=priceTo]").val())){
|
|
|
|
|
- // my_to = $("#filterForm input:hidden[name=priceTo]").val();
|
|
|
|
|
- // }
|
|
|
|
|
- // let minValue;
|
|
|
|
|
- // let maxValue;
|
|
|
|
|
- // if(filterPriceList.length > 1){
|
|
|
|
|
- // minValue = custom_values[0];
|
|
|
|
|
- // maxValue = custom_values[priceLen];
|
|
|
|
|
- // }else{
|
|
|
|
|
- // minValue = custom_values[0];
|
|
|
|
|
- // maxValue = custom_values[1];
|
|
|
|
|
- // }
|
|
|
|
|
- //
|
|
|
|
|
- // $(".dp .js-range-slider01, .sch_result .js-range-slider01").ionRangeSlider({
|
|
|
|
|
- // type: "double",
|
|
|
|
|
- // min: minValue,
|
|
|
|
|
- // max: maxValue,
|
|
|
|
|
- // from: my_from,
|
|
|
|
|
- // to: my_to,
|
|
|
|
|
- // grid: true,
|
|
|
|
|
- // skin: "round",
|
|
|
|
|
- // postfix: "원",
|
|
|
|
|
- // prettify_separator: ",",
|
|
|
|
|
- // values: custom_values,
|
|
|
|
|
- // min_interval: 1,
|
|
|
|
|
- // // onStart : function(data){
|
|
|
|
|
- // // fnCheckPrice(data);
|
|
|
|
|
- // // },
|
|
|
|
|
- // // onChange : fnCheckPrice,
|
|
|
|
|
- // onFinish : function(data,priceLen){
|
|
|
|
|
- // fnCheckPrice(data,priceLen);
|
|
|
|
|
- // }
|
|
|
|
|
- // });
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+ let priceLen;
|
|
|
|
|
+ var filterPriceList = [[${filterPriceList}]];
|
|
|
|
|
+ console.log(filterPriceList);
|
|
|
|
|
+ if(!gagajf.isNull(filterPriceList)){
|
|
|
|
|
+ priceLen = filterPriceList.length-1;
|
|
|
|
|
+ $.each(filterPriceList, function (priceIdx, priceItem){
|
|
|
|
|
+ custom_values[priceIdx] = priceItem.filterNm;
|
|
|
|
|
+ if(priceLen==0){
|
|
|
|
|
+ custom_values[1] = priceItem.filterNm;
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ let my_from;
|
|
|
|
|
+ let my_to;
|
|
|
|
|
+ if(filterPriceList.length > 1){
|
|
|
|
|
+ my_from = custom_values.indexOf(custom_values[0]);
|
|
|
|
|
+ my_to = custom_values.indexOf(custom_values[priceLen]);
|
|
|
|
|
+ }else{
|
|
|
|
|
+ my_from = 0;
|
|
|
|
|
+ my_to = 1;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if(!gagajf.isNull($("#filterForm input:hidden[name=hPriceFrom]").val())){
|
|
|
|
|
+ my_from = $("#filterForm input:hidden[name=hPriceFrom]").val();
|
|
|
|
|
+ }
|
|
|
|
|
+ if(!gagajf.isNull($("#filterForm input:hidden[name=hPriceTo]").val())){
|
|
|
|
|
+ my_to = $("#filterForm input:hidden[name=hPriceTo]").val();
|
|
|
|
|
+ }
|
|
|
|
|
+ let minValue;
|
|
|
|
|
+ let maxValue;
|
|
|
|
|
+ if(filterPriceList.length > 1){
|
|
|
|
|
+ minValue = custom_values[0];
|
|
|
|
|
+ maxValue = custom_values[priceLen];
|
|
|
|
|
+ }else{
|
|
|
|
|
+ minValue = custom_values[0];
|
|
|
|
|
+ maxValue = custom_values[1];
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ $(".dp .js-range-slider01, .sch_result .js-range-slider01").ionRangeSlider({
|
|
|
|
|
+ type: "double",
|
|
|
|
|
+ min: minValue,
|
|
|
|
|
+ max: maxValue,
|
|
|
|
|
+ from: my_from,
|
|
|
|
|
+ to: my_to,
|
|
|
|
|
+ grid: true,
|
|
|
|
|
+ skin: "round",
|
|
|
|
|
+ postfix: "원",
|
|
|
|
|
+ prettify_separator: ",",
|
|
|
|
|
+ values: custom_values,
|
|
|
|
|
+ min_interval: 1,
|
|
|
|
|
+ // onStart : function(data){
|
|
|
|
|
+ // fnCheckPrice(data);
|
|
|
|
|
+ // },
|
|
|
|
|
+ // onChange : fnCheckPrice,
|
|
|
|
|
+ onFinish : function(data,priceLen){
|
|
|
|
|
+ fnCheckPrice(data,priceLen);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
fnCreateSearchCategoryList();
|
|
fnCreateSearchCategoryList();
|
|
|
// fnCreateSearchFilter();
|
|
// fnCreateSearchFilter();
|
|
@@ -849,21 +852,21 @@
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
//가격 슬라이드
|
|
//가격 슬라이드
|
|
|
- var custom_values = ['9,000원', '230,000원', '487,000원', '700,000원', '1,360,000원', '1,799,000원'];
|
|
|
|
|
- var my_from = custom_values.indexOf('9,000원');
|
|
|
|
|
- var my_to = custom_values.indexOf('230,000원');
|
|
|
|
|
- $(".dp .js-range-slider01, .sch_result .js-range-slider01").ionRangeSlider({
|
|
|
|
|
- type: "double",
|
|
|
|
|
- min: 9000,
|
|
|
|
|
- max: 1799000,
|
|
|
|
|
- from: my_from,
|
|
|
|
|
- to: my_to,
|
|
|
|
|
- grid: true,
|
|
|
|
|
- skin: "round",
|
|
|
|
|
- postfix: "원",
|
|
|
|
|
- prettify_separator: ",",
|
|
|
|
|
- values: custom_values
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ // var custom_values = ['9,000원', '230,000원', '487,000원', '700,000원', '1,360,000원', '1,799,000원'];
|
|
|
|
|
+ // var my_from = custom_values.indexOf('9,000원');
|
|
|
|
|
+ // var my_to = custom_values.indexOf('230,000원');
|
|
|
|
|
+ // $(".dp .js-range-slider01, .sch_result .js-range-slider01").ionRangeSlider({
|
|
|
|
|
+ // type: "double",
|
|
|
|
|
+ // min: 9000,
|
|
|
|
|
+ // max: 1799000,
|
|
|
|
|
+ // from: my_from,
|
|
|
|
|
+ // to: my_to,
|
|
|
|
|
+ // grid: true,
|
|
|
|
|
+ // skin: "round",
|
|
|
|
|
+ // postfix: "원",
|
|
|
|
|
+ // prettify_separator: ",",
|
|
|
|
|
+ // values: custom_values
|
|
|
|
|
+ // });
|
|
|
|
|
|
|
|
//할인율
|
|
//할인율
|
|
|
/*var custom_values02 = ['0%', '10%', '20%', '30%', '40%', '50%', '60%', '70%', '80%', '90%', '100%'];
|
|
/*var custom_values02 = ['0%', '10%', '20%', '30%', '40%', '50%', '60%', '70%', '80%', '90%', '100%'];
|