|
@@ -23,7 +23,9 @@
|
|
|
<div id="container" class="container dp">
|
|
<div id="container" class="container dp">
|
|
|
<div class="breadcrumb">
|
|
<div class="breadcrumb">
|
|
|
<ul>
|
|
<ul>
|
|
|
- <li class="bread_home"><a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_MAIN);">홈</a></li>
|
|
|
|
|
|
|
+ <li class="bread_home" th:if="${brandGroupInfo==null}"><a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_MAIN);">홈</a></li>
|
|
|
|
|
+ <li class="bread_home" th:unless="${brandGroupInfo==null}"><a href="javascript:void(0);" th:onclick="cfnGoToBrandMain([[${brandGroupInfo.brandGroupNo}]]);">홈</a></li>
|
|
|
|
|
+ <li class="bread_home" th:unless="${brandGroupInfo==null}" th:text="${brandGroupInfo.brandGroupNm}"></li>
|
|
|
<li class="bread_2depth">기획전</li>
|
|
<li class="bread_2depth">기획전</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
@@ -38,8 +40,10 @@
|
|
|
<div class="taps">
|
|
<div class="taps">
|
|
|
<div>
|
|
<div>
|
|
|
<ul>
|
|
<ul>
|
|
|
- <li th:class="${cateNo == null ? 'active' : ''}"><a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_PLANNING_MAIN);">전체</a></li>
|
|
|
|
|
- <li th:each="oneData, stat : ${cateList}" th:class="${oneData.cateNo == cateNo ? 'active' : '' }" ><a href="javascript:void(0);" th:onclick="|cfnGoToPage(_PAGE_PLANNING_MAIN + '?cateNo=${oneData.cateNo}');|">[[${oneData.cateNm}]]</a></li>
|
|
|
|
|
|
|
+ <li th:if="${brandGroupInfo==null}" th:class="${cateNo == null ? 'active' : ''}"><a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_PLANNING_MAIN);">전체</a></li>
|
|
|
|
|
+ <li th:unless="${brandGroupInfo==null}" th:class="${cateNo == null ? 'active' : ''}"><a href="javascript:void(0);" th:onclick="|cfnGoToPage(_PAGE_PLANNING_MAIN + '?brandGroupNo=${brandGroupInfo.brandGroupNo}');|">전체</a></li>
|
|
|
|
|
+ <li th:if="${brandGroupInfo==null}" th:each="oneData, stat : ${cateList}" th:class="${oneData.cateNo == cateNo ? 'active' : '' }" ><a href="javascript:void(0);" th:onclick="|cfnGoToPage(_PAGE_PLANNING_MAIN + '?cateNo=${oneData.cateNo}');|">[[${oneData.cateNm}]]</a></li>
|
|
|
|
|
+ <li th:unless="${brandGroupInfo==null}" th:each="oneData, stat : ${cateList}" th:class="${oneData.cateNo == cateNo ? 'active' : '' }" ><a href="javascript:void(0);" th:onclick="|cfnGoToPage(_PAGE_PLANNING_MAIN + '?cateNo=${oneData.cateNo}' + '&brandGroupNo=${brandGroupInfo.brandGroupNo}');|">[[${oneData.cateNm}]]</a></li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -54,7 +58,8 @@
|
|
|
<p>등록된 기획전이 없습니다.</p>
|
|
<p>등록된 기획전이 없습니다.</p>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="btn_box">
|
|
<div class="btn_box">
|
|
|
- <button class="btn btn_default" onclick="cfnGoToPage(_PAGE_MAIN);"><span>메인으로 가기</span></button>
|
|
|
|
|
|
|
+ <button class="btn btn_default" th:if="${brandGroupInfo==null}" onclick="cfnGoToPage(_PAGE_MAIN);"><span>메인으로 가기</span></button>
|
|
|
|
|
+ <button class="btn btn_default" th:unless="${brandGroupInfo==null}" th:onclick="cfnGoToBrandMain([[${brandGroupInfo.brandGroupNo}]]);"><span th:text="${brandGroupInfo.brandGroupNm+' 홈으로 가기'}"></span></button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -114,9 +119,16 @@
|
|
|
<script th:inline="javascript">
|
|
<script th:inline="javascript">
|
|
|
/*<![CDATA[*/
|
|
/*<![CDATA[*/
|
|
|
let fnGetPlanningList = function(cateNo,brandGroupNo) {
|
|
let fnGetPlanningList = function(cateNo,brandGroupNo) {
|
|
|
|
|
+ console.log('fnGetPlanningList>>'+brandGroupNo);
|
|
|
let actionUrl = '/planning/main/list';
|
|
let actionUrl = '/planning/main/list';
|
|
|
if (!gagajf.isNull(cateNo)) actionUrl += '?cateNo=' + cateNo;
|
|
if (!gagajf.isNull(cateNo)) actionUrl += '?cateNo=' + cateNo;
|
|
|
- if (!gagajf.isNull(brandGroupNo)) actionUrl += '?brandGroupNo=' + brandGroupNo;
|
|
|
|
|
|
|
+ if (!gagajf.isNull(brandGroupNo)){
|
|
|
|
|
+ if (!gagajf.isNull(cateNo)){
|
|
|
|
|
+ actionUrl += '&brandGroupNo=' + brandGroupNo;
|
|
|
|
|
+ }else{
|
|
|
|
|
+ actionUrl += '?brandGroupNo=' + brandGroupNo;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
$.getJSON(actionUrl , function(result, status) {
|
|
$.getJSON(actionUrl , function(result, status) {
|
|
|
if (status == 'success') {
|
|
if (status == 'success') {
|
|
@@ -133,7 +145,11 @@
|
|
|
$.each(result, function(idx, item) {
|
|
$.each(result, function(idx, item) {
|
|
|
tag += ' <div class="exhi_item">\n';
|
|
tag += ' <div class="exhi_item">\n';
|
|
|
tag += ' <div class="exhi_item_img">\n';
|
|
tag += ' <div class="exhi_item_img">\n';
|
|
|
- tag += ' <a href= "javascript:void(0);" onclick="cfnGoToPlanDetail(\'' + item.planSq + '\')">\n';
|
|
|
|
|
|
|
+ if(!gagajf.isNull(brandGroupNo)){
|
|
|
|
|
+ tag += ' <a href= "javascript:void(0);" onclick="cfnGoToPlanDetail(\'' + item.planSq + '\',\'' + brandGroupNo + '\')">\n';
|
|
|
|
|
+ }else{
|
|
|
|
|
+ tag += ' <a href= "javascript:void(0);" onclick="cfnGoToPlanDetail(\'' + item.planSq + '\')">\n';
|
|
|
|
|
+ }
|
|
|
if (item.newYn == 'Y') {
|
|
if (item.newYn == 'Y') {
|
|
|
tag += ' <div class="shape ranker"><span>NEW</span></div>\n';
|
|
tag += ' <div class="shape ranker"><span>NEW</span></div>\n';
|
|
|
}
|
|
}
|