|
@@ -23,6 +23,7 @@
|
|
|
<div class="breadcrumb">
|
|
<div class="breadcrumb">
|
|
|
<ul id="navArea">
|
|
<ul id="navArea">
|
|
|
<li class="bread_home" id="idHome"><a href="javascript:void(0);" id="navHome">홈</a></li>
|
|
<li class="bread_home" id="idHome"><a href="javascript:void(0);" id="navHome">홈</a></li>
|
|
|
|
|
+ <li class="bread_2depth" id="mainNm" style="display: none;"></li>
|
|
|
<li class="bread_2depth" id="brandNm" style="display: none;"></li>
|
|
<li class="bread_2depth" id="brandNm" style="display: none;"></li>
|
|
|
<li class="bread_2depth" id="navNm"></li>
|
|
<li class="bread_2depth" id="navNm"></li>
|
|
|
</ul>
|
|
</ul>
|
|
@@ -315,22 +316,40 @@
|
|
|
$(document).ready( function() {
|
|
$(document).ready( function() {
|
|
|
//가격 슬라이드
|
|
//가격 슬라이드
|
|
|
//var custom_values = ['9,000원', '230,000원', '487,000원', '700,000원', '1,360,000원', '1,799,000원'];
|
|
//var custom_values = ['9,000원', '230,000원', '487,000원', '700,000원', '1,360,000원', '1,799,000원'];
|
|
|
|
|
+ let priceLen;
|
|
|
if(!gagajf.isNull(filterPriceList)){
|
|
if(!gagajf.isNull(filterPriceList)){
|
|
|
|
|
+ priceLen = filterPriceList.length-1;
|
|
|
$.each(filterPriceList, function (priceIdx, priceItem){
|
|
$.each(filterPriceList, function (priceIdx, priceItem){
|
|
|
custom_values[priceIdx] = priceItem.filterNm;
|
|
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;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- let my_from = custom_values.indexOf(custom_values[0]);
|
|
|
|
|
- let my_to = custom_values.indexOf(custom_values[5]);
|
|
|
|
|
-
|
|
|
|
|
if(gagajf.isNull($("#filterForm input:hidden[name=priceFrom]").val())){
|
|
if(gagajf.isNull($("#filterForm input:hidden[name=priceFrom]").val())){
|
|
|
my_from = $("#filterForm input:hidden[name=priceFrom]").val();
|
|
my_from = $("#filterForm input:hidden[name=priceFrom]").val();
|
|
|
}
|
|
}
|
|
|
if(gagajf.isNull($("#filterForm input:hidden[name=priceTo]").val())){
|
|
if(gagajf.isNull($("#filterForm input:hidden[name=priceTo]").val())){
|
|
|
my_to = $("#filterForm input:hidden[name=priceTo]").val();
|
|
my_to = $("#filterForm input:hidden[name=priceTo]").val();
|
|
|
}
|
|
}
|
|
|
- let minValue = custom_values[0];
|
|
|
|
|
- let maxValue = custom_values[5];
|
|
|
|
|
|
|
+ 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({
|
|
$(".dp .js-range-slider01, .sch_result .js-range-slider01").ionRangeSlider({
|
|
|
type: "double",
|
|
type: "double",
|
|
@@ -348,8 +367,8 @@
|
|
|
// fnCheckPrice(data);
|
|
// fnCheckPrice(data);
|
|
|
// },
|
|
// },
|
|
|
// onChange : fnCheckPrice,
|
|
// onChange : fnCheckPrice,
|
|
|
- onFinish : function(data){
|
|
|
|
|
- fnCheckPrice(data);
|
|
|
|
|
|
|
+ onFinish : function(data,priceLen){
|
|
|
|
|
+ fnCheckPrice(data,priceLen);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
@@ -416,14 +435,14 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 필터 가격 확인
|
|
// 필터 가격 확인
|
|
|
- var fnCheckPrice = function (data){
|
|
|
|
|
|
|
+ var fnCheckPrice = function (data,priceLen){
|
|
|
$("#priceSpan").remove();
|
|
$("#priceSpan").remove();
|
|
|
$("#searchGoodsForm input:hidden[name=priceFrom]").remove();
|
|
$("#searchGoodsForm input:hidden[name=priceFrom]").remove();
|
|
|
$("#searchGoodsForm input:hidden[name=priceTo]").remove();
|
|
$("#searchGoodsForm input:hidden[name=priceTo]").remove();
|
|
|
let min = data.from;
|
|
let min = data.from;
|
|
|
let max = data.to;
|
|
let max = data.to;
|
|
|
$("#price_input_from").val(custom_values[0]);
|
|
$("#price_input_from").val(custom_values[0]);
|
|
|
- $("#price_input_to").val(custom_values[5]);
|
|
|
|
|
|
|
+ $("#price_input_to").val(custom_values[priceLen]);
|
|
|
|
|
|
|
|
fnFilterSlider('price' , custom_values[min].addComma(), custom_values[max].addComma());
|
|
fnFilterSlider('price' , custom_values[min].addComma(), custom_values[max].addComma());
|
|
|
}
|
|
}
|
|
@@ -458,7 +477,9 @@
|
|
|
$("#unisex").attr('onclick','fnFilterOption(this,\'on\');');
|
|
$("#unisex").attr('onclick','fnFilterOption(this,\'on\');');
|
|
|
$("#searchGoodsForm input:hidden[name=unisex]").remove();
|
|
$("#searchGoodsForm input:hidden[name=unisex]").remove();
|
|
|
$("#newGoods").prop('checked',true);
|
|
$("#newGoods").prop('checked',true);
|
|
|
- $("#newGoods").attr('onclick','fnFilterOption(this,\'on\');');
|
|
|
|
|
|
|
+ $("#newGoods").attr('onclick','fnFilterOption(this,\'off\');');
|
|
|
|
|
+ $("#searchGoodsForm input:hidden[name=newGoods]").val('40');
|
|
|
|
|
+
|
|
|
fnFilterSliderMove(0,5);
|
|
fnFilterSliderMove(0,5);
|
|
|
fnDcRateFilterSliderMove(0,10);
|
|
fnDcRateFilterSliderMove(0,10);
|
|
|
$('.filter_content .sort').find('input[type=checkbox]').each(function (idx){
|
|
$('.filter_content .sort').find('input[type=checkbox]').each(function (idx){
|
|
@@ -540,7 +561,7 @@
|
|
|
$("#brandNm").show();
|
|
$("#brandNm").show();
|
|
|
$("#brandNm").text(brandGroupNm);
|
|
$("#brandNm").text(brandGroupNm);
|
|
|
$("#navNm").hide();
|
|
$("#navNm").hide();
|
|
|
- $('#ulAllCate').append('<li><a href="javascript:void(0);" onclick="cfnGoToGoodsList(\''+brandGroupNo+'\',\''+cateGb+'\');">전체</a></li>\n');
|
|
|
|
|
|
|
+ $('#ulAllCate').append('<li><a href="javascript:void(0);" onclick="cfnGoToGoodsList(\''+brandGroupNo+'\',\''+cateGb+'\');" class="on">전체</a></li>\n');
|
|
|
navNm += '<li class="bread_2depth" id="navNm1">전체</li>';
|
|
navNm += '<li class="bread_2depth" id="navNm1">전체</li>';
|
|
|
}else{
|
|
}else{
|
|
|
if(formalGb=='G009_20'){
|
|
if(formalGb=='G009_20'){
|
|
@@ -626,6 +647,7 @@
|
|
|
$("#navArea").append(navNm);
|
|
$("#navArea").append(navNm);
|
|
|
}else if(cate1.cate1No == cate1No && cate3No == null){
|
|
}else if(cate1.cate1No == cate1No && cate3No == null){
|
|
|
$("#navNm").hide();
|
|
$("#navNm").hide();
|
|
|
|
|
+
|
|
|
navNm += '<li class="bread_2depth" id="navNm1">' + cate1.cate1Nm + '</li>';
|
|
navNm += '<li class="bread_2depth" id="navNm1">' + cate1.cate1Nm + '</li>';
|
|
|
$("#navArea").append(navNm);
|
|
$("#navArea").append(navNm);
|
|
|
}else if(cate3No != null){
|
|
}else if(cate3No != null){
|
|
@@ -847,7 +869,7 @@
|
|
|
|
|
|
|
|
if (cate3.leafYn == 'N' && cate3.cate4List != null && cate3.cate4List.length > 0) {
|
|
if (cate3.leafYn == 'N' && cate3.cate4List != null && cate3.cate4List.length > 0) {
|
|
|
tag += '<div class="sub_cate"';
|
|
tag += '<div class="sub_cate"';
|
|
|
- if (cate2.cate2No == cate2No) {
|
|
|
|
|
|
|
+ if (cate3.cate3No == cate3No) {
|
|
|
tag += ' style="display: block;"';
|
|
tag += ' style="display: block;"';
|
|
|
}
|
|
}
|
|
|
tag += '>\n';
|
|
tag += '>\n';
|
|
@@ -1051,6 +1073,7 @@
|
|
|
}else{
|
|
}else{
|
|
|
$(".fillter").show();
|
|
$(".fillter").show();
|
|
|
// fnCategoryGoodsInfiniteScrollInit();
|
|
// fnCategoryGoodsInfiniteScrollInit();
|
|
|
|
|
+ $('html, body').animate({scrollTop: historyData.scroll}, 'slow');
|
|
|
fnGoodsListSearch();
|
|
fnGoodsListSearch();
|
|
|
fnSetPriceFilter();
|
|
fnSetPriceFilter();
|
|
|
fnImgOnoff();
|
|
fnImgOnoff();
|