|
@@ -294,9 +294,9 @@
|
|
|
<input type="hidden" name="cate3No" th:value="${cateInfo.cate3No}"/>
|
|
<input type="hidden" name="cate3No" th:value="${cateInfo.cate3No}"/>
|
|
|
<input type="hidden" name="cate4No" th:value="${cateInfo.cate4No}"/>
|
|
<input type="hidden" name="cate4No" th:value="${cateInfo.cate4No}"/>
|
|
|
<input type="hidden" name="sortingType" value="NEW"/>
|
|
<input type="hidden" name="sortingType" value="NEW"/>
|
|
|
-<!-- <input type="hidden" name="newGoods" th:value="${cateInfo.formalGb=='G009_20'?'':'40'}" />-->
|
|
|
|
|
|
|
+ <input type="hidden" name="newGoods" th:unless="${cateInfo.formalGb=='G009_20'}" th:value="${cateInfo.formalGb=='G009_20'?'':'40'}" />
|
|
|
<input type="hidden" name="keyword" value=""/>
|
|
<input type="hidden" name="keyword" value=""/>
|
|
|
- <input type="hidden" name="benefitArr" th:unless="${cateInfo.formalGb=='G009_20'}" th:value="${cateInfo.formalGb=='G009_20'?'':'40:신상'}"/>
|
|
|
|
|
|
|
+<!-- <input type="hidden" name="benefitArr" th:unless="${cateInfo.formalGb=='G009_20'}" th:value="${cateInfo.formalGb=='G009_20'?'':'40:신상'}"/>-->
|
|
|
</form>
|
|
</form>
|
|
|
|
|
|
|
|
<script src="/ux/plugins/gaga/gaga.infinite.scrollSession.js"></script>
|
|
<script src="/ux/plugins/gaga/gaga.infinite.scrollSession.js"></script>
|
|
@@ -322,6 +322,7 @@
|
|
|
$(".br_header").css('background-color','#fff');
|
|
$(".br_header").css('background-color','#fff');
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
//가격 슬라이드
|
|
//가격 슬라이드
|
|
|
//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원'];
|
|
|
|
|
|
|
@@ -730,21 +731,25 @@ console.log(allCateList);
|
|
|
if(thisId == 'unisex'){
|
|
if(thisId == 'unisex'){
|
|
|
if(stat=='on'){
|
|
if(stat=='on'){
|
|
|
$(obj).attr('onclick','fnFilterOption(this,\'off\');');
|
|
$(obj).attr('onclick','fnFilterOption(this,\'off\');');
|
|
|
|
|
+ $(obj).attr('checked', true);
|
|
|
tag += '<input type="hidden" name="unisex" value="G007_Z"/>\n';
|
|
tag += '<input type="hidden" name="unisex" value="G007_Z"/>\n';
|
|
|
$("#searchGoodsForm").append(tag);
|
|
$("#searchGoodsForm").append(tag);
|
|
|
}else{
|
|
}else{
|
|
|
$(obj).attr('onclick','fnFilterOption(this,\'on\');');
|
|
$(obj).attr('onclick','fnFilterOption(this,\'on\');');
|
|
|
|
|
+ $(obj).attr('checked', false);
|
|
|
$("#searchGoodsForm input:hidden[name=unisex]").remove();
|
|
$("#searchGoodsForm input:hidden[name=unisex]").remove();
|
|
|
}
|
|
}
|
|
|
}else{
|
|
}else{
|
|
|
if(stat=='on'){
|
|
if(stat=='on'){
|
|
|
$(obj).attr('onclick','fnFilterOption(this,\'off\');');
|
|
$(obj).attr('onclick','fnFilterOption(this,\'off\');');
|
|
|
- // tag += '<input type="hidden" name="newGoods" value="40"/>\n';
|
|
|
|
|
- tag += '<input type="hidden" name="benefitArr" value="40:신상"/>\n';
|
|
|
|
|
|
|
+ $(obj).attr('checked', true);
|
|
|
|
|
+ tag += '<input type="hidden" name="newGoods" value="40"/>\n';
|
|
|
|
|
+ // tag += '<input type="hidden" name="benefitArr" value="40:신상"/>\n';
|
|
|
$("#searchGoodsForm").append(tag);
|
|
$("#searchGoodsForm").append(tag);
|
|
|
}else{
|
|
}else{
|
|
|
$(obj).attr('onclick','fnFilterOption(this,\'on\');');
|
|
$(obj).attr('onclick','fnFilterOption(this,\'on\');');
|
|
|
- // $("#searchGoodsForm input:hidden[name=newGoods]").remove();
|
|
|
|
|
|
|
+ $(obj).attr('checked', false);
|
|
|
|
|
+ $("#searchGoodsForm input:hidden[name=newGoods]").remove();
|
|
|
$("#searchGoodsForm input:hidden[name=benefitArr]").each(function(){
|
|
$("#searchGoodsForm input:hidden[name=benefitArr]").each(function(){
|
|
|
if($(this).val() == "40:신상"){
|
|
if($(this).val() == "40:신상"){
|
|
|
$(this).remove();
|
|
$(this).remove();
|
|
@@ -752,6 +757,7 @@ console.log(allCateList);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ fnSetFilterHtml();
|
|
|
fnCategoryGoodsInfiniteScrollInit();
|
|
fnCategoryGoodsInfiniteScrollInit();
|
|
|
fnGoodsListSearch();
|
|
fnGoodsListSearch();
|
|
|
}
|
|
}
|
|
@@ -1364,10 +1370,12 @@ console.log(allCateList);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
if ( (event.originalEvent && event.originalEvent.persisted) || (window.performance && window.performance.navigation.type == 2)) {
|
|
if ( (event.originalEvent && event.originalEvent.persisted) || (window.performance && window.performance.navigation.type == 2)) {
|
|
|
|
|
+ $("#searchGoodsForm input:hidden[name=unisex]").remove();
|
|
|
|
|
+ $("#searchGoodsForm input:hidden[name=newGoods]").remove();
|
|
|
if( history.scrollRestoration ) window.history.scrollRestoration = 'manual';
|
|
if( history.scrollRestoration ) window.history.scrollRestoration = 'manual';
|
|
|
var historyData = sessionStorage.getItem(document.location.href);
|
|
var historyData = sessionStorage.getItem(document.location.href);
|
|
|
if(historyData!=null){
|
|
if(historyData!=null){
|
|
|
- // console.log('historyData>>'+historyData);
|
|
|
|
|
|
|
+ console.log('historyData>>'+historyData);
|
|
|
historyData = JSON.parse(historyData);
|
|
historyData = JSON.parse(historyData);
|
|
|
}else{
|
|
}else{
|
|
|
historyData = {};
|
|
historyData = {};
|
|
@@ -1401,6 +1409,21 @@ console.log(allCateList);
|
|
|
$("#filterForm").find('input[name=hDcRateTo]').val($("#searchGoodsForm").find('input[name=dcRateTo]').val());
|
|
$("#filterForm").find('input[name=hDcRateTo]').val($("#searchGoodsForm").find('input[name=dcRateTo]').val());
|
|
|
}
|
|
}
|
|
|
idx++;
|
|
idx++;
|
|
|
|
|
+ if(gagajf.isNull($("#searchGoodsForm").find("input[name=unisex]").val())){
|
|
|
|
|
+ $("#unisex").attr('onclick','fnFilterOption(this,\'on\');');
|
|
|
|
|
+ $("#unisex").attr('checked', false);
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $("#unisex").attr('onclick','fnFilterOption(this,\'off\');');
|
|
|
|
|
+ $("#unisex").attr('checked', true);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if(gagajf.isNull($("#searchGoodsForm").find("input[name=newGoods]").val())){
|
|
|
|
|
+ $("#newGoods").attr('onclick','fnFilterOption(this,\'on\');');
|
|
|
|
|
+ $("#newGoods").attr('checked', false);
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $("#newGoods").attr('onclick','fnFilterOption(this,\'off\');');
|
|
|
|
|
+ $("#newGoods").attr('checked', true);
|
|
|
|
|
+ }
|
|
|
if(typeof historyData.sortingType!='undefined' && historyData.sortingType!=''){
|
|
if(typeof historyData.sortingType!='undefined' && historyData.sortingType!=''){
|
|
|
$("#searchGoodsForm input:hidden[name=sortingType]").val(historyData.sortingType);
|
|
$("#searchGoodsForm input:hidden[name=sortingType]").val(historyData.sortingType);
|
|
|
fnSortingChange(this,historyData.sortingType,'back');
|
|
fnSortingChange(this,historyData.sortingType,'back');
|