|
|
@@ -347,7 +347,7 @@
|
|
|
</ul>
|
|
|
</li>
|
|
|
<li class="brand chkFilter" th:if="${filterBrandList != null and !filterBrandList.empty}" id="brandGroupFilterDiv">
|
|
|
- <a href="javascript:void(0)" class="daps1">브랜드</a>
|
|
|
+ <a href="javascript:void(0)" class="daps1">브랜드<span class="pic"></span></a>
|
|
|
<ul class="daps2">
|
|
|
<li th:each="oneData, status : ${filterBrandList}">
|
|
|
<a href="javascript:void(0)">
|
|
|
@@ -361,7 +361,7 @@
|
|
|
</ul>
|
|
|
</li>
|
|
|
<li calss="size chkFilter" th:if="${filterSizeList != null and !filterSizeList.empty}" id="sizeFilterDiv">
|
|
|
- <a href="javascript:void(0)" class="daps1">사이즈</a>
|
|
|
+ <a href="javascript:void(0)" class="daps1">사이즈<span class="pic"></span></a>
|
|
|
<div class="daps2">
|
|
|
<ul class="sizebox">
|
|
|
<li id="sizeLi1">
|
|
|
@@ -394,7 +394,7 @@
|
|
|
<li class="price chkFilter" id="priceFilterDiv">
|
|
|
<input type="hidden" id="hPriceFrom" name="hPriceFrom" value=""/>
|
|
|
<input type="hidden" id="hPriceTo" name="hPriceTo" value=""/>
|
|
|
- <a href="javascript:void(0)" class="daps1">가격</a>
|
|
|
+ <a href="javascript:void(0)" class="daps1">가격<span class="pic"></span></a>
|
|
|
<ul class="daps2" id="priceArea">
|
|
|
|
|
|
</ul>
|
|
|
@@ -402,7 +402,7 @@
|
|
|
<li class="discount chkFilter" id="dcRateFilterDiv">
|
|
|
<input type="hidden" id="hDcRateFrom" name="hDcRateFrom" value=""/>
|
|
|
<input type="hidden" id="hDcRateTo" name="hDcRateTo" value=""/>
|
|
|
- <a href="javascript:void(0)" class="daps1">할인율</a>
|
|
|
+ <a href="javascript:void(0)" class="daps1">할인율<span class="pic"></span></a>
|
|
|
<ul class="daps2" id="dcRateArea">
|
|
|
<li>
|
|
|
<a href="javascript:void(0)">
|
|
|
@@ -497,7 +497,7 @@
|
|
|
</ul>
|
|
|
</li>
|
|
|
<li class="age chkFilter" th:if="${filterAgeList != null and !filterAgeList.empty}" id="ageFilterDiv">
|
|
|
- <a href="javascript:void(0)" class="daps1">연령</a>
|
|
|
+ <a href="javascript:void(0)" class="daps1">연령<span class="pic"></span></a>
|
|
|
<ul class="daps2">
|
|
|
<li th:each="oneData, status : ${filterAgeList}">
|
|
|
<a href="javascript:void(0)">
|
|
|
@@ -511,7 +511,7 @@
|
|
|
</ul>
|
|
|
</li>
|
|
|
<li class="season chkFilter" th:if="${filterSeasonList != null and !filterSeasonList.empty}" id="seasonFilterDiv">
|
|
|
- <a href="javascript:void(0)" class="daps1">시즌</a>
|
|
|
+ <a href="javascript:void(0)" class="daps1">시즌<span class="pic"></span></a>
|
|
|
<ul class="daps2">
|
|
|
<li th:each="oneData, status : ${filterSeasonList}">
|
|
|
<a href="javascript:void(0)">
|
|
|
@@ -541,7 +541,7 @@
|
|
|
</div>
|
|
|
</li>
|
|
|
<li class="benefit chkFilter" th:if="${filterBenefitList != null and !filterBenefitList.empty}" id="benefitFilterDiv">
|
|
|
- <a href="javascript:void(0)" class="daps1">혜택</a>
|
|
|
+ <a href="javascript:void(0)" class="daps1">혜택<span class="pic"></span></a>
|
|
|
<ul class="daps2">
|
|
|
<li th:each="oneData, status : ${filterBenefitList}">
|
|
|
<a href="javascript:void(0)">
|
|
|
@@ -593,16 +593,55 @@
|
|
|
|
|
|
<script th:inline="javascript">
|
|
|
/*<![CDATA[*/
|
|
|
+ var filterPriceList = [[${filterPriceList}]];
|
|
|
+
|
|
|
$(window).on("pageshow", function(event) {
|
|
|
+ $('#filterForm input[name=brandGroup]:checked').each(function(){
|
|
|
+ $(this).attr('checked', true);
|
|
|
+ });
|
|
|
+ $('#filterForm input[name=size]:checked').each(function(){
|
|
|
+ $(this).attr('checked', true);
|
|
|
+ });
|
|
|
+ $('#filterForm input[name=dcRate]:checked').each(function(){
|
|
|
+ $(this).attr('checked', true);
|
|
|
+ });
|
|
|
+ $('#filterForm input[name=age]:checked').each(function(){
|
|
|
+ $(this).attr('checked', true);
|
|
|
+ });
|
|
|
+ $('#filterForm input[name=season]:checked').each(function(){
|
|
|
+ $(this).attr('checked', true);
|
|
|
+ });
|
|
|
+ $('#filterForm input[name=color]:checked').each(function(){
|
|
|
+ $(this).attr('checked', true);
|
|
|
+ });
|
|
|
+ $('#filterForm input[name=benefit]:checked').each(function(){
|
|
|
+ $(this).attr('checked', true);
|
|
|
+ });
|
|
|
+ $('#filterForm input[name=price]:checked').each(function(){
|
|
|
+ $(this).attr('checked', true);
|
|
|
+ });
|
|
|
if ( (event.originalEvent && event.originalEvent.persisted) || (window.performance && window.performance.navigation.type == 2)) {
|
|
|
var historyData = sessionStorage.getItem(document.location.href);
|
|
|
+ // console.log(historyData);
|
|
|
if(historyData!=null){
|
|
|
// console.log('historyData>>'+historyData);
|
|
|
historyData = JSON.parse(historyData);
|
|
|
}else{
|
|
|
historyData = {};
|
|
|
}
|
|
|
-
|
|
|
+ // if(typeof historyData.filterHtml!='undefined' && historyData.filterHtml!=''){
|
|
|
+ // //console.log('historyData.filterHtml>>>'+historyData.filterHtml);
|
|
|
+ // $("#searchGoodsForm").append(historyData.filterHtml);
|
|
|
+ // filterHtml = historyData.filterHtml;
|
|
|
+ // }
|
|
|
+ // if(typeof historyData.filterStatHtml!='undefined' && historyData.filterStatHtml!=''){
|
|
|
+ // $("#filterForm").append(historyData.filterStatHtml);
|
|
|
+ // filterStatHtml = historyData.filterStatHtml;
|
|
|
+ // }
|
|
|
+ fnReCheckFilterList();
|
|
|
+ if(typeof historyData.totalCount!='undefined' && historyData.totalCount!=''){
|
|
|
+ $("#totCntId").text(historyData.totalCount);
|
|
|
+ }
|
|
|
if(typeof historyData.sortingType!='undefined' && historyData.sortingType!=''){
|
|
|
$("#searchGoodsForm input:hidden[name=sortingType]").val(historyData.sortingType);
|
|
|
fnSortingChange(this,historyData.sortingType,'back','Mob');
|
|
|
@@ -610,6 +649,7 @@
|
|
|
fnSearchGoodsListSearch();
|
|
|
}
|
|
|
}else{
|
|
|
+ console.log('2');
|
|
|
fnCategoryGoodsInfiniteScrollInit();
|
|
|
|
|
|
var sortingType = $("#searchGoodsForm input:hidden[name=sortingType]").val();
|
|
|
@@ -776,6 +816,34 @@
|
|
|
|
|
|
|
|
|
$(document).ready( function() {
|
|
|
+ if(filterPriceList.length > 0){
|
|
|
+ $("#priceArea").html('');
|
|
|
+ var priceHtml = '';
|
|
|
+ var minPrice;
|
|
|
+ var maxPrice;
|
|
|
+ for(let i=0; i<filterPriceList.length-1; i++){
|
|
|
+ if(i==filterPriceList.length-2){
|
|
|
+ minPrice = filterPriceList[i].filterNm;
|
|
|
+ maxPrice = filterPriceList[i+1].filterNm;
|
|
|
+ }else{
|
|
|
+ minPrice = filterPriceList[i].filterNm;
|
|
|
+ maxPrice = filterPriceList[i+1].filterNm;
|
|
|
+ }
|
|
|
+
|
|
|
+ priceHtml += '<li>\n';
|
|
|
+ priceHtml += ' <a href="javascript:void(0)">\n';
|
|
|
+ priceHtml += ' <div class="form_field">\n';
|
|
|
+ priceHtml += ' <div>\n';
|
|
|
+ priceHtml += ' <input type="checkbox" id="price'+(i+1)+'" name="price" value="'+minPrice+','+maxPrice+'" data-id="'+minPrice.addComma()+'원 ~ '+maxPrice.addComma()+'원" onclick="filterPriceMob(this,\'price\',\'off\',\''+(i+1)+'\');"><label for="price'+(i+1)+'">\n';
|
|
|
+ priceHtml += ' <span id="pricdSpan'+(i+1)+'">'+minPrice.addComma()+'원 ~ '+maxPrice.addComma()+'원</span> </label>\n';
|
|
|
+ priceHtml += ' </div>\n';
|
|
|
+ priceHtml += ' </div>\n';
|
|
|
+ priceHtml += ' </a>\n';
|
|
|
+ priceHtml += '</li>\n';
|
|
|
+ }
|
|
|
+ $("#priceArea").append(priceHtml);
|
|
|
+ }
|
|
|
+
|
|
|
$("#htopSub").find('.search').hide();
|
|
|
|
|
|
// btPop_full
|
|
|
@@ -999,10 +1067,8 @@
|
|
|
$("#searchGoodsForm input:hidden[name=cate5No]").remove();
|
|
|
$("#searchGoodsForm input:hidden[name=brandGroupArr]").remove();
|
|
|
$("#searchGoodsForm input:hidden[name=sizeArr]").remove();
|
|
|
- $("#searchGoodsForm input:hidden[name=dcRateFrom]").remove();
|
|
|
- $("#searchGoodsForm input:hidden[name=dcRateTo]").remove();
|
|
|
- $("#searchGoodsForm input:hidden[name=priceFrom]").remove();
|
|
|
- $("#searchGoodsForm input:hidden[name=priceTo]").remove();
|
|
|
+ $("#searchGoodsForm input:hidden[name=dcRateArr]").remove();
|
|
|
+ $("#searchGoodsForm input:hidden[name=priceArr]").remove();
|
|
|
$("#searchGoodsForm input:hidden[name=ageArr]").remove();
|
|
|
$("#searchGoodsForm input:hidden[name=seasonArr]").remove();
|
|
|
$("#searchGoodsForm input:hidden[name=colorArr]").remove();
|
|
|
@@ -1047,7 +1113,7 @@
|
|
|
var searchKeyword = '[[${params.keyword}]]';
|
|
|
window._eglqueue = window._eglqueue || [];
|
|
|
_eglqueue.push(['setVar', 'cuid', eglqueueCuid]);
|
|
|
- _eglqueue.push(['setVar', 'searchTerm', [[${params.keyword}]]]);
|
|
|
+ _eglqueue.push(['setVar', 'searchTerm', '[[${params.keyword}]]']);
|
|
|
_eglqueue.push(['setVar', 'userId', hCustId]); // optional
|
|
|
_eglqueue.push(['track', 'search']);
|
|
|
(function (s, x) {
|