|
|
@@ -2,7 +2,7 @@
|
|
|
<html lang="ko"
|
|
|
xmlns:th="http://www.thymeleaf.org"
|
|
|
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
|
|
- layout:decorator="web/common/layout/DefaultLayoutWeb">
|
|
|
+ layout:decorator="web/common/layout/PlanningLayoutWeb">
|
|
|
<!--
|
|
|
*******************************************************************************
|
|
|
* @source : CategoryGoodsListFormWeb.html
|
|
|
@@ -21,8 +21,8 @@
|
|
|
<th:block layout:fragment="content">
|
|
|
<div id="container" class="container dp">
|
|
|
<div class="breadcrumb">
|
|
|
- <ul>
|
|
|
- <li class="bread_home"><a href="index.html">홈</a></li>
|
|
|
+ <ul id="navArea">
|
|
|
+ <li class="bread_home"><a href="javascript:void(0);" id="navHome">홈</a></li>
|
|
|
<li class="bread_2depth" id="navNm">여성</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
@@ -44,235 +44,237 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="cont">
|
|
|
- <div class="cont_body">
|
|
|
- <div class="filter_list">
|
|
|
- <!-- 1depth -->
|
|
|
- <ul>
|
|
|
- <li data-id="tap02" th:if="${filterBrandList!=null and !filterBrandList.empty}">
|
|
|
- <a href="javascript:void(0)">브랜드</a>
|
|
|
- </li>
|
|
|
- <li data-id="tap03" th:if="${filterSizeList!=null and !filterSizeList.empty}">
|
|
|
- <a href="javascript:void(0)">사이즈</a>
|
|
|
- </li>
|
|
|
- <li data-id="tap04" th:if="${filterPriceList!=null and !filterPriceList.empty}">
|
|
|
- <a href="javascript:void(0)">가격</a>
|
|
|
- </li>
|
|
|
- <li data-id="tap05">
|
|
|
- <a href="javascript:void(0)">할인율</a>
|
|
|
- </li>
|
|
|
- <li data-id="tap06" th:if="${filterAgeList!=null and !filterAgeList.empty}">
|
|
|
- <a href="javascript:void(0)">연령</a>
|
|
|
- </li>
|
|
|
- <li data-id="tap07" th:if="${filterSeasonList!=null and !filterSeasonList.empty}">
|
|
|
- <a href="javascript:void(0)">시즌</a>
|
|
|
- </li>
|
|
|
- <li data-id="tap08" th:if="${filterColorList!=null and !filterColorList.empty}">
|
|
|
- <a href="javascript:void(0)">컬러</a>
|
|
|
- </li>
|
|
|
- <li data-id="tap09" th:if="${filterBenefitList!=null and !filterBenefitList.empty}">
|
|
|
- <a href="javascript:void(0)">혜택</a>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- <div class="form_field">
|
|
|
- <div>
|
|
|
- <input id="price" type="checkbox" ><label for="price"> <span>남여 공용만 보기</span> </label>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <input id="chk-2" type="checkbox" checked=""><label for="chk-2"> <span>신상품만 보기</span> </label>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="filter_content">
|
|
|
- <!-- 브랜드 -->
|
|
|
- <div class="sort tap02" th:if="${filterBrandList!=null and !filterBrandList.empty}">
|
|
|
+ <form id="filterForm">
|
|
|
+ <div class="cont_body">
|
|
|
+ <div class="filter_list">
|
|
|
+ <!-- 1depth -->
|
|
|
<ul>
|
|
|
- <th:block th:each="filterBrandData, filterBrandStat : ${filterBrandList}">
|
|
|
- <li>
|
|
|
- <label class="brand_btn" onclick="filterSel();">
|
|
|
- <input type="checkbox" group="filterValue" th:id="${'chkFilterBrand'+filterBrandStat.count}" name="filterBrandCds" th:value="${filterBrandData.filterCd}"><span th:text="${filterBrandData.filterNm}"></span>
|
|
|
- </label>
|
|
|
+ <li data-id="tap02" th:if="${filterBrandList!=null and !filterBrandList.empty}">
|
|
|
+ <a href="javascript:void(0)">브랜드</a>
|
|
|
</li>
|
|
|
- </th:block>
|
|
|
- </ul>
|
|
|
- <a href="javascript:void(0)" class="tap_close">delete-btn</a>
|
|
|
- </div>
|
|
|
- <!-- //브랜드 -->
|
|
|
- <!-- 사이즈 -->
|
|
|
- <div class="sort tap03" th:if="${filterSizeList!=null and !filterSizeList.empty}">
|
|
|
- <ul>
|
|
|
- <li>
|
|
|
- <strong>상의</strong>
|
|
|
- <th:block th:each="filterSizeData, filterSizeStat : ${filterSizeList}" th:if="${filterSizeData.filterCd == 'T'}">
|
|
|
- <label class="size_btn" onclick="filterSel();">
|
|
|
- <input type="checkbox" group="filterValue" th:id="${'chkFilterTSize'+filterSizeStat.count}" name="filterSizeCds" th:vale="${filterSizeData.filterNm}"><span th:text="${filterSizeData.filterNm}">80</span>
|
|
|
- </label>
|
|
|
- </th:block>
|
|
|
+ <li data-id="tap03" th:if="${filterSizeList!=null and !filterSizeList.empty}">
|
|
|
+ <a href="javascript:void(0)">사이즈</a>
|
|
|
</li>
|
|
|
- <li>
|
|
|
- <strong>하의</strong>
|
|
|
- <th:block th:each="filterSizeData, filterSizeStat : ${filterSizeList}" th:if="${filterSizeData.filterCd == 'B'}">
|
|
|
- <label class="size_btn" onclick="filterSel();">
|
|
|
- <input type="checkbox" group="filterValue" th:id="${'chkFilterBSize'+filterSizeStat.count}" name="filterSizeCds" th:vale="${filterSizeData.filterNm}"><span th:text="${filterSizeData.filterNm}">80</span>
|
|
|
- </label>
|
|
|
- </th:block>
|
|
|
+ <li data-id="tap04" th:if="${filterPriceList!=null and !filterPriceList.empty}">
|
|
|
+ <a href="javascript:void(0)">가격</a>
|
|
|
</li>
|
|
|
- <li>
|
|
|
- <strong>신발</strong>
|
|
|
- <th:block th:each="filterSizeData, filterSizeStat : ${filterSizeList}" th:if="${filterSizeData.filterCd == 'S'}">
|
|
|
- <label class="size_btn" onclick="filterSel();">
|
|
|
- <input type="checkbox" group="filterValue" th:id="${'chkFilterSSize'+filterSizeStat.count}" name="filterSizeCds" th:vale="${filterSizeData.filterNm}"><span th:text="${filterSizeData.filterNm}">80</span>
|
|
|
- </label>
|
|
|
- </th:block>
|
|
|
+ <li data-id="tap05">
|
|
|
+ <a href="javascript:void(0)">할인율</a>
|
|
|
+ </li>
|
|
|
+ <li data-id="tap06" th:if="${filterAgeList!=null and !filterAgeList.empty}">
|
|
|
+ <a href="javascript:void(0)">연령</a>
|
|
|
+ </li>
|
|
|
+ <li data-id="tap07" th:if="${filterSeasonList!=null and !filterSeasonList.empty}">
|
|
|
+ <a href="javascript:void(0)">시즌</a>
|
|
|
+ </li>
|
|
|
+ <li data-id="tap08" th:if="${filterColorList!=null and !filterColorList.empty}">
|
|
|
+ <a href="javascript:void(0)">컬러</a>
|
|
|
+ </li>
|
|
|
+ <li data-id="tap09" th:if="${filterBenefitList!=null and !filterBenefitList.empty}">
|
|
|
+ <a href="javascript:void(0)">혜택</a>
|
|
|
</li>
|
|
|
</ul>
|
|
|
- <a href="javascript:void(0)" class="tap_close">delete-btn</a>
|
|
|
- </div>
|
|
|
- <!-- //사이즈 -->
|
|
|
- <!-- 가격 -->
|
|
|
- <div class="sort tap04">
|
|
|
- <div class="range">
|
|
|
- <input type="text" class="js-range-slider01" name="my_range01" value="" />
|
|
|
- </div>
|
|
|
- <a href="javascript:void(0)" class="tap_close">delete-btn</a>
|
|
|
- </div>
|
|
|
- <!-- //가격 -->
|
|
|
- <!-- 할인율 -->
|
|
|
- <div class="sort tap05">
|
|
|
- <ul style="display:none;">
|
|
|
- <li><input type="checkbox" id="percent01" name="range" value="0"><label for="percent01"><span></span><span>0%</span></label></li>
|
|
|
- <li><input type="checkbox" id="percent02" name="range" value="10"><label for="percent02"><span></span><span>10%</span></label></li>
|
|
|
- <li><input type="checkbox" id="percent03" name="range" value="20"><label for="percent03"><span></span><span>20%</span></label></li>
|
|
|
- <li><input type="checkbox" id="percent04" name="range" value="30"><label for="percent04"><span></span><span>30%</span></label></li>
|
|
|
- <li><input type="checkbox" id="percent05" name="range" value="40"><label for="percent05"><span></span><span>40%</span></label></li>
|
|
|
- <li><input type="checkbox" id="percent06" name="range" value="50"><label for="percent06"><span></span><span>50%</span></label></li>
|
|
|
- <li><input type="checkbox" id="percent07" name="range" value="60"><label for="percent07"><span></span><span>60%</span></label></li>
|
|
|
- <li><input type="checkbox" id="percent08" name="range" value="70"><label for="percent08"><span></span><span>70%</span></label></li>
|
|
|
- <li><input type="checkbox" id="percent09" name="range" value="80"><label for="percent09"><span></span><span>80%</span></label></li>
|
|
|
- <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="" />
|
|
|
+ <div class="form_field">
|
|
|
+ <div>
|
|
|
+ <input id="price" type="checkbox" ><label for="price"> <span>남여 공용만 보기</span> </label>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <input id="chk-2" type="checkbox" checked=""><label for="chk-2"> <span>신상품만 보기</span> </label>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <a href="javascript:void(0)" class="tap_close">delete-btn</a>
|
|
|
</div>
|
|
|
- <!-- //할인율 -->
|
|
|
- <!-- 연령 -->
|
|
|
- <div class="sort tap06" th:if="${filterAgeList!=null and !filterAgeList.empty}">
|
|
|
- <ul>
|
|
|
- <th:block th:each="filterAgeData, filterAgeStat : ${filterAgeList}">
|
|
|
+ <div class="filter_content">
|
|
|
+ <!-- 브랜드 -->
|
|
|
+ <div class="sort tap02" th:if="${filterBrandList!=null and !filterBrandList.empty}" id="brandFilterDiv">
|
|
|
+ <ul>
|
|
|
+ <th:block th:each="filterBrandData, filterBrandStat : ${filterBrandList}">
|
|
|
<li>
|
|
|
- <label class="Age_btn" onclick="filterSel();">
|
|
|
- <input type="checkbox" group="filterValue" th:id="${'chkFilterAge'+filterAgeStat.count}" name="filterAgeCds" th:value="${filterAgeData.filterCd}"><span th:text="${filterAgeData.filterNm}">베이비(0~18개월)</span>
|
|
|
+ <label class="brand_btn">
|
|
|
+ <input type="checkbox" group="filterValue" th:id="${'chkFilterBrand'+filterBrandStat.count}" name="brand" th:value="${filterBrandData.filterCd}" th:data-id="${filterBrandData.filterNm}" onclick="filterSel(this,'brand','off');"><span th:text="${filterBrandData.filterNm}"></span>
|
|
|
</label>
|
|
|
</li>
|
|
|
- </th:block>
|
|
|
- </ul>
|
|
|
- <a href="javascript:void(0)" class="tap_close">delete-btn</a>
|
|
|
- </div>
|
|
|
- <!-- //연령 -->
|
|
|
- <!-- 시즌 -->
|
|
|
- <div class="sort tap07" th:if="${filterSeasonList!=null and !filterSeasonList.empty}">
|
|
|
- <ul>
|
|
|
- <th:block th:each="filterSeasonData, filterSeasonStat : ${filterSeasonList}">
|
|
|
- <li>
|
|
|
- <label class="Season_btn" onclick="filterSel();">
|
|
|
- <input type="checkbox" group="filterValue" th:id="${'chkFilterSeason'+filterSeasonStat.count}" name="filterSeasonCds" th:value="${filterSeasonData.filterCd}"><span th:text="${filterSeasonData.filterNm}">봄</span>
|
|
|
- </label>
|
|
|
+ </th:block>
|
|
|
+ </ul>
|
|
|
+ <a href="javascript:void(0)" class="tap_close">delete-btn</a>
|
|
|
+ </div>
|
|
|
+ <!-- //브랜드 -->
|
|
|
+ <!-- 사이즈 -->
|
|
|
+ <div class="sort tap03" th:if="${filterSizeList!=null and !filterSizeList.empty}" id="sizeFilterDiv">
|
|
|
+ <ul>
|
|
|
+ <li id="sizeLi1">
|
|
|
+ <strong>상의</strong>
|
|
|
+ <th:block th:each="filterSizeData, filterSizeStat : ${filterSizeList}" th:if="${filterSizeData.filterCd == 'T'}">
|
|
|
+ <label class="size_btn">
|
|
|
+ <input type="checkbox" group="filterValue" th:id="${'chkFilterTSize'+filterSizeStat.count}" name="size" th:vale="${filterSizeData.filterNm}" th:data-id="${filterSizeData.filterNm}" onclick="filterSel(this,'size','off','1');"><span th:text="${filterSizeData.filterNm}">80</span>
|
|
|
+ </label>
|
|
|
+ </th:block>
|
|
|
</li>
|
|
|
- </th:block>
|
|
|
- </ul>
|
|
|
- <a href="javascript:void(0)" class="tap_close">delete-btn</a>
|
|
|
- </div>
|
|
|
- <!-- //시즌 -->
|
|
|
- <!-- 컬러 -->
|
|
|
- <div class="sort tap08" th:if="${filterColorList!=null and !filterColorList.empty}">
|
|
|
- <ul>
|
|
|
- <th:block th:each="filterColorData, filterColorStat : ${filterColorList}">
|
|
|
- <li>
|
|
|
- <label class="color-check" onclick="filterSel();">
|
|
|
- <input type="checkbox" group="filterValue" th:id="${'chkFilterColor'+filterColorStat.count}" name="filterColorCds" th:value="${filterColorData.filterNm}" >
|
|
|
- <span class="pdColor-color" th:if="${filterColorData.filterNm=='#FFFFFF'}" th:style="${'background-color:'+filterColorData.filterNm+';'+' border:1px solid #aaa;'}"></span>
|
|
|
- <span class="pdColor-color" th:if="${filterColorData.filterNm!='#FFFFFF'}" th:style="${'background-color:'+filterColorData.filterNm}"></span>
|
|
|
- </label>
|
|
|
+ <li id="sizeLi2">
|
|
|
+ <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>
|
|
|
+ </label>
|
|
|
+ </th:block>
|
|
|
</li>
|
|
|
- </th:block>
|
|
|
- </ul>
|
|
|
- <a href="javascript:void(0)" class="tap_close">delete-btn</a>
|
|
|
- </div>
|
|
|
- <!-- //컬러 -->
|
|
|
- <!-- 혜택 -->
|
|
|
- <div class="sort tap09" th:if="${filterBenefitList!=null and !filterBenefitList.empty}">
|
|
|
- <ul>
|
|
|
- <th:block th:each="filterBenefitData, filterBenefitStat : ${filterBenefitList}">
|
|
|
- <li>
|
|
|
- <label class="Benefits_btn" onclick="filterSel();">
|
|
|
- <input type="checkbox" group="filterValue" th:id="${'chkFilterBenefits'+filterBenefitStat.count}" name="filterBenefitsCds" th:value="${filterBenefitData.filterCd}"><span th:text="${filterBenefitData.filterNm}"></span>
|
|
|
- </label>
|
|
|
+ <li id="sizeLi3">
|
|
|
+ <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>
|
|
|
+ </label>
|
|
|
+ </th:block>
|
|
|
</li>
|
|
|
- </th:block>
|
|
|
- </ul>
|
|
|
- <a href="javascript:void(0)" class="tap_close">delete-btn</a>
|
|
|
- </div>
|
|
|
- <!-- //혜택 -->
|
|
|
- <!-- 필터 -->
|
|
|
- <div class="fillter">
|
|
|
- <div class="fillter_box">
|
|
|
- <span>
|
|
|
- 모이몰른
|
|
|
- <a href="javascript:;" class="filter_delete"></a >
|
|
|
- </span>
|
|
|
- <!-- 컬러 표시 -->
|
|
|
- <span>
|
|
|
- <span class="pdColor-color12"></span>
|
|
|
- <a href="javascript:;" class="filter_delete"></a >
|
|
|
- </span>
|
|
|
- <!-- 컬러 표시 -->
|
|
|
+ </ul>
|
|
|
+ <a href="javascript:void(0)" class="tap_close">delete-btn</a>
|
|
|
</div>
|
|
|
- <button class="fillter_reset"><span>전체 초기화</span></button>
|
|
|
- </div>
|
|
|
- <!-- //필터 -->
|
|
|
- </div>
|
|
|
- <div class="list_content"> <!-- 데이터 없을시 클래스 nodata 추가 -->
|
|
|
- <div class="list_defult">
|
|
|
- <div>
|
|
|
- <p>선택하신 조건에 맞는 상품이 없습니다.<br>필터를 변경해 보세요.</p>
|
|
|
+ <!-- //사이즈 -->
|
|
|
+ <!-- 가격 -->
|
|
|
+ <div class="sort tap04" id="priceFilterDiv">
|
|
|
+ <div class="range">
|
|
|
+ <input type="text" class="js-range-slider01" name="my_range01" value="" />
|
|
|
+ </div>
|
|
|
+ <a href="javascript:void(0)" class="tap_close">delete-btn</a>
|
|
|
</div>
|
|
|
- <div class="ui_row">
|
|
|
- <button type="button" class="btn btn_default btn_md"><span>선택한 필터 초기화</span></button>
|
|
|
+ <!-- //가격 -->
|
|
|
+ <!-- 할인율 -->
|
|
|
+ <div class="sort tap05" id="dcrateFilterDiv">
|
|
|
+ <ul style="display:none;">
|
|
|
+ <li><input type="checkbox" id="percent01" name="range" value="0"><label for="percent01"><span></span><span>0%</span></label></li>
|
|
|
+ <li><input type="checkbox" id="percent02" name="range" value="10"><label for="percent02"><span></span><span>10%</span></label></li>
|
|
|
+ <li><input type="checkbox" id="percent03" name="range" value="20"><label for="percent03"><span></span><span>20%</span></label></li>
|
|
|
+ <li><input type="checkbox" id="percent04" name="range" value="30"><label for="percent04"><span></span><span>30%</span></label></li>
|
|
|
+ <li><input type="checkbox" id="percent05" name="range" value="40"><label for="percent05"><span></span><span>40%</span></label></li>
|
|
|
+ <li><input type="checkbox" id="percent06" name="range" value="50"><label for="percent06"><span></span><span>50%</span></label></li>
|
|
|
+ <li><input type="checkbox" id="percent07" name="range" value="60"><label for="percent07"><span></span><span>60%</span></label></li>
|
|
|
+ <li><input type="checkbox" id="percent08" name="range" value="70"><label for="percent08"><span></span><span>70%</span></label></li>
|
|
|
+ <li><input type="checkbox" id="percent09" name="range" value="80"><label for="percent09"><span></span><span>80%</span></label></li>
|
|
|
+ <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="" />
|
|
|
+ </div>
|
|
|
+ <a href="javascript:void(0)" class="tap_close">delete-btn</a>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div class="count_wrap">
|
|
|
- <div>
|
|
|
- <p><span id="totCntId"></span>개의 상품</p>
|
|
|
+ <!-- //할인율 -->
|
|
|
+ <!-- 연령 -->
|
|
|
+ <div class="sort tap06" th:if="${filterAgeList!=null and !filterAgeList.empty}" id="ageFilterDiv">
|
|
|
+ <ul>
|
|
|
+ <th:block th:each="filterAgeData, filterAgeStat : ${filterAgeList}">
|
|
|
+ <li>
|
|
|
+ <label class="Age_btn">
|
|
|
+ <input type="checkbox" group="filterValue" th:id="${'chkFilterAge'+filterAgeStat.count}" name="age" th:value="${filterAgeData.filterCd}" th:data-id="${filterAgeData.filterNm}" onclick="filterSel(this,'age','off');"><span th:text="${filterAgeData.filterNm}">베이비(0~18개월)</span>
|
|
|
+ </label>
|
|
|
+ </li>
|
|
|
+ </th:block>
|
|
|
+ </ul>
|
|
|
+ <a href="javascript:void(0)" class="tap_close">delete-btn</a>
|
|
|
</div>
|
|
|
- <div>
|
|
|
+ <!-- //연령 -->
|
|
|
+ <!-- 시즌 -->
|
|
|
+ <div class="sort tap07" th:if="${filterSeasonList!=null and !filterSeasonList.empty}" id="seasonFilterDiv">
|
|
|
<ul>
|
|
|
- <li>
|
|
|
- <a href="" class="on">최신상품순</a>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <a href="">인기상품순</a>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <a href="">리뷰 많은순</a>
|
|
|
- </li>
|
|
|
+ <th:block th:each="filterSeasonData, filterSeasonStat : ${filterSeasonList}">
|
|
|
+ <li>
|
|
|
+ <label class="Season_btn">
|
|
|
+ <input type="checkbox" group="filterValue" th:id="${'chkFilterSeason'+filterSeasonStat.count}" name="season" th:value="${filterSeasonData.filterCd}" th:data-id="${filterSeasonData.filterNm}" onclick="filterSel(this,'season','off');"><span th:text="${filterSeasonData.filterNm}">봄</span>
|
|
|
+ </label>
|
|
|
+ </li>
|
|
|
+ </th:block>
|
|
|
</ul>
|
|
|
+ <a href="javascript:void(0)" class="tap_close">delete-btn</a>
|
|
|
</div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div id="infiniteContainer">
|
|
|
- <div id="listBoxOuter" class="itemsGrp">
|
|
|
- <ul class="productlist quarter" >
|
|
|
+ <!-- //시즌 -->
|
|
|
+ <!-- 컬러 -->
|
|
|
+ <div class="sort tap08" th:if="${filterColorList!=null and !filterColorList.empty}" id="colorFilterDiv">
|
|
|
+ <ul>
|
|
|
+ <th:block th:each="filterColorData, filterColorStat : ${filterColorList}">
|
|
|
+ <li>
|
|
|
+ <label class="color-check">
|
|
|
+ <input type="checkbox" group="filterValue" th:id="${'chkFilterColor'+filterColorStat.count}" name="color" th:value="${filterColorData.filterNm}" th:data-id="${filterColorData.filterNm.replace('#','')}" onclick="filterSel(this,'color','off');">
|
|
|
+ <span class="pdColor-color" th:if="${filterColorData.filterNm=='#FFFFFF'}" th:style="${'background-color:'+filterColorData.filterNm+';'+' border:1px solid #aaa;'}" th:value="${filterColorData.filterNm}"></span>
|
|
|
+ <span class="pdColor-color" th:if="${filterColorData.filterNm!='#FFFFFF'}" th:style="${'background-color:'+filterColorData.filterNm}" th:value="${filterColorData.filterNm}"></span>
|
|
|
+ </label>
|
|
|
+ </li>
|
|
|
+ </th:block>
|
|
|
+ </ul>
|
|
|
+ <a href="javascript:void(0)" class="tap_close">delete-btn</a>
|
|
|
+ </div>
|
|
|
+ <!-- //컬러 -->
|
|
|
+ <!-- 혜택 -->
|
|
|
+ <div class="sort tap09" th:if="${filterBenefitList!=null and !filterBenefitList.empty}" id="benefitFilterDiv">
|
|
|
+ <ul>
|
|
|
+ <th:block th:each="filterBenefitData, filterBenefitStat : ${filterBenefitList}">
|
|
|
+ <li>
|
|
|
+ <label class="Benefits_btn">
|
|
|
+ <input type="checkbox" group="filterValue" th:id="${'chkFilterBenefits'+filterBenefitStat.count}" name="benefit" th:value="${filterBenefitData.filterCd}" th:data-id="${filterBenefitData.filterNm}" onclick="filterSel(this,'benefit','off');"><span th:text="${filterBenefitData.filterNm}"></span>
|
|
|
+ </label>
|
|
|
+ </li>
|
|
|
+ </th:block>
|
|
|
</ul>
|
|
|
+ <a href="javascript:void(0)" class="tap_close">delete-btn</a>
|
|
|
</div>
|
|
|
+ <!-- //혜택 -->
|
|
|
+ <!-- 필터 -->
|
|
|
+ <div class="fillter">
|
|
|
+ <div class="fillter_box" id="filterData">
|
|
|
+<!-- <span>-->
|
|
|
+<!-- 모이몰른-->
|
|
|
+<!-- <a href="javascript:;" class="filter_delete"></a >-->
|
|
|
+<!-- </span>-->
|
|
|
+ <!-- 컬러 표시 -->
|
|
|
+<!-- <span>-->
|
|
|
+<!-- <span class="pdColor-color12"></span>-->
|
|
|
+<!-- <a href="javascript:;" class="filter_delete"></a >-->
|
|
|
+<!-- </span>-->
|
|
|
+ <!-- 컬러 표시 -->
|
|
|
+ </div>
|
|
|
+ <button class="fillter_reset" onclick="fnFilterReset();"><span>전체 초기화</span></button>
|
|
|
+ </div>
|
|
|
+ <!-- //필터 -->
|
|
|
</div>
|
|
|
+ <div class="list_content"> <!-- 데이터 없을시 클래스 nodata 추가 -->
|
|
|
+ <div class="list_defult">
|
|
|
+ <div>
|
|
|
+ <p>선택하신 조건에 맞는 상품이 없습니다.<br>필터를 변경해 보세요.</p>
|
|
|
+ </div>
|
|
|
+ <div class="ui_row">
|
|
|
+ <button type="button" class="btn btn_default btn_md"><span>선택한 필터 초기화</span></button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="count_wrap">
|
|
|
+ <div>
|
|
|
+ <p><span id="totCntId"></span>개의 상품</p>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <ul>
|
|
|
+ <li>
|
|
|
+ <a href="" class="on">최신상품순</a>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <a href="">인기상품순</a>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <a href="">리뷰 많은순</a>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="itemsGrp" id="listBox">
|
|
|
+ <div id="infiniteContainer">
|
|
|
+ <div id="listBoxOuter" class="itemsGrp">
|
|
|
+ <ul class="productlist quarter" >
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
|
|
|
- </div>
|
|
|
+ <div class="itemsGrp" id="listBox">
|
|
|
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </form>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -293,7 +295,7 @@
|
|
|
|
|
|
<script src="/ux/plugins/gaga/gaga.infinite.scrollSession.js"></script>
|
|
|
<script src="/ux/plugins/jquery/jquery.history.min.js"></script>
|
|
|
- <script th:src="@{'/biz/goodsSession.js?v=' + ${#calendars.format(#calendars.createNow(), 'yyyyMMddHHmmss')}}" src="/biz/goodsSession.js"></script>
|
|
|
+ <script th:src="@{'/biz/goods.js?v=' + ${#calendars.format(#calendars.createNow(), 'yyyyMMddHHmmss')}}" src="/biz/goods.js"></script>
|
|
|
<script th:inline="javascript">
|
|
|
/*<![CDATA[*/
|
|
|
var filterPriceList = [[${filterPriceList}]];
|
|
|
@@ -312,6 +314,7 @@
|
|
|
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",
|
|
|
@@ -330,7 +333,7 @@
|
|
|
//할인율
|
|
|
var 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('100%');
|
|
|
+ var my_to02 = custom_values02.indexOf('10%');
|
|
|
$(".dp .js-range-slider02, .sch_result .js-range-slider02").ionRangeSlider({
|
|
|
type: "double",
|
|
|
min: 0,
|
|
|
@@ -349,13 +352,25 @@
|
|
|
//fnGoodsListSearch();
|
|
|
});
|
|
|
|
|
|
+ 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();
|
|
|
+ }
|
|
|
+
|
|
|
var fnGoodsListSearch = function (){
|
|
|
+ console.log('1');
|
|
|
gagaInfiniteScroll.getHistory();
|
|
|
+ console.log('2');
|
|
|
}
|
|
|
|
|
|
// 상품 검색
|
|
|
var fnGetInfiniteScrollDataList = function (pageNum){
|
|
|
- console.log('pageNum:::'+pageNum);
|
|
|
+ console.log('3');
|
|
|
$("#searchGoodsForm input[name=pageNo]").val(pageNum+1);
|
|
|
gagajf.ajaxFormSubmit("/display/category/goods/list", document.searchGoodsForm, gagaInfiniteScroll.jsonToHtml);
|
|
|
}
|
|
|
@@ -417,6 +432,7 @@
|
|
|
var formTitle = "";
|
|
|
|
|
|
let tag = '';
|
|
|
+
|
|
|
if (cate1 != null) {
|
|
|
tag += '<li';
|
|
|
if(cate1.cate1No == cate1No){
|
|
|
@@ -424,12 +440,17 @@
|
|
|
}
|
|
|
tag += '>\n';
|
|
|
tag += ' <a href="javascript:javascript:void(0);"';
|
|
|
- if(cate1.cate1No == cate1No){
|
|
|
+ if(cate1.cate1No == cate1No && cate2No == null){
|
|
|
tag += ' class="on"';
|
|
|
formTitle = cate1.cate1Nm;
|
|
|
- navNm = cate1.cate1Nm;
|
|
|
- $("#navNm").text(navNm);
|
|
|
$("#formTitle").text(formTitle);
|
|
|
+ if(brandGroupNo==0){
|
|
|
+ $("#navHome").attr('href', '/');
|
|
|
+ $("#navNm").text(cate1.cate1Nm);
|
|
|
+ }else{
|
|
|
+ $("#navHome").attr('onclick', 'cfnGoToBrandMain('+brandGroupNo+');');
|
|
|
+ $("#navNm").text(cate1.cate1Nm);
|
|
|
+ }
|
|
|
}
|
|
|
tag += ' onclick="cfnGoToGoodsList('+brandGroupNo+',\''+cateGb+'\','+cate1.cate1No+');" >' + cate1.cate1Nm + '</a>\n';
|
|
|
if (cate1.leafYn == 'N' && cate1.cate2List.length > 0) {
|
|
|
@@ -441,15 +462,16 @@
|
|
|
tag += ' <ul>\n';
|
|
|
$.each(cate1.cate2List, function(idx2, cate2) {
|
|
|
tag += ' <li';
|
|
|
- if(cate2.cate2No == cate2No){
|
|
|
+ if(cate2.cate2No == cate2No && cate3No == null){
|
|
|
tag += ' class="on"';
|
|
|
}
|
|
|
tag += ' >\n';
|
|
|
tag += ' <a href="javascript:javascript:void(0);" ';
|
|
|
- if(cate2.cate2No == cate2No){
|
|
|
+ if(cate2.cate2No == cate2No && cate3No == null){
|
|
|
tag += ' class="on"';
|
|
|
- navNm = navNm +' > ' + cate2.cate2Nm;
|
|
|
- $("#navNm").text(navNm);
|
|
|
+ navNm = '<li class="bread_2depth" id="navNm2">'+cate2.cate2Nm+'</li>';
|
|
|
+ $("#navArea").append(navNm);
|
|
|
+ $("#formTitle").text(cate2.cate2Nm);
|
|
|
}
|
|
|
tag += ' onclick="cfnGoToGoodsList('+brandGroupNo+',\''+cateGb+'\','+cate1.cate1No+','+cate2.cate2No+');">' + cate2.cate2Nm + '</a>\n';
|
|
|
if (cate2.leafYn == 'N' && cate2.cate3List != null && cate2.cate3List.length > 0) {
|
|
|
@@ -461,15 +483,16 @@
|
|
|
tag += ' <ul>\n';
|
|
|
$.each(cate2.cate3List, function (idx3, cate3){
|
|
|
tag += '<li';
|
|
|
- if(cate3.cate3No == cate3No){
|
|
|
+ if(cate3.cate3No == cate3No && cate4No == null){
|
|
|
tag += ' class="on"';
|
|
|
}
|
|
|
tag += '>';
|
|
|
tag += ' <a href="javascript:javascript:void(0);" ';
|
|
|
- if(cate3.cate3No == cate3No){
|
|
|
+ if(cate3.cate3No == cate3No && cate4No == null){
|
|
|
tag += ' class="on"';
|
|
|
- navNm = navNm +' > ' + cate3.cate3Nm;
|
|
|
- $("#navNm").text(navNm);
|
|
|
+ navNm = '<li class="bread_2depth" id="navNm2">'+cate2.cate2Nm+'</li><li class="bread_2depth" id="navNm3">'+cate3.cate3Nm+'</li>';
|
|
|
+ $("#navArea").append(navNm);
|
|
|
+ $("#formTitle").text(cate3.cate3Nm);
|
|
|
}
|
|
|
tag += ' onclick="cfnGoToGoodsList('+brandGroupNo+',\''+cateGb+'\','+cate1.cate1No+','+cate2.cate2No+','+cate3.cate3No+');">' + cate3.cate3Nm + '</a>';
|
|
|
tag += '</li>\n';
|
|
|
@@ -484,13 +507,12 @@
|
|
|
}
|
|
|
tag += '</li>\n';
|
|
|
}
|
|
|
-
|
|
|
return tag;
|
|
|
}
|
|
|
|
|
|
// 사파리 - event.persisted || 크롬 - window.performance.navigation.type 이 1이면 새로고침, 2면 페이지 이동을 통한 캐쉬페이징
|
|
|
$(window).on("pageshow", function(event) {
|
|
|
- /*$('#filterForm input[name=brand]:checked').each(function(){
|
|
|
+ $('#filterForm input[name=brand]:checked').each(function(){
|
|
|
$(this).parent().addClass("active");
|
|
|
});
|
|
|
$('#filterForm input[name=size]:checked').each(function(){
|
|
|
@@ -498,7 +520,7 @@
|
|
|
});
|
|
|
$('#filterForm input[name=price]:checked').each(function(){
|
|
|
$(this).parent().addClass("active");
|
|
|
- });*/
|
|
|
+ });
|
|
|
if ( (event.originalEvent && event.originalEvent.persisted) || (window.performance && window.performance.navigation.type == 2)) {
|
|
|
var historyData = sessionStorage.getItem(document.location.href);
|
|
|
if(historyData!=null){
|