|
@@ -107,7 +107,7 @@
|
|
|
|
|
|
|
|
<!-- 3. 트렌디한 신상아이템 -->
|
|
<!-- 3. 트렌디한 신상아이템 -->
|
|
|
<th:block th:if="${contentsLoc=='003'}">
|
|
<th:block th:if="${contentsLoc=='003'}">
|
|
|
- <div class="content main_trendy" th:if="${mainLayoutData.goodsList != null}">
|
|
|
|
|
|
|
+ <div class="content main_trendy" th:if="${mainLayoutData.goodsList != null and !mainLayoutData.goodsList.empty}">
|
|
|
<div class="cont_head">
|
|
<div class="cont_head">
|
|
|
<p class="displayH t_c" th:text="${mainLayoutData.contentsTitle}"></p>
|
|
<p class="displayH t_c" th:text="${mainLayoutData.contentsTitle}"></p>
|
|
|
</div>
|
|
</div>
|
|
@@ -147,14 +147,12 @@
|
|
|
|
|
|
|
|
<!-- 4. 잇 아이템 -->
|
|
<!-- 4. 잇 아이템 -->
|
|
|
<th:block th:if="${contentsLoc=='004'}">
|
|
<th:block th:if="${contentsLoc=='004'}">
|
|
|
- <div class="content main_it" th:if="${mainLayoutData.BestItemList != null}">
|
|
|
|
|
|
|
+ <div class="content main_it" th:if="${mainLayoutData.BestItemList != null and !mainLayoutData.BestItemList.empty}">
|
|
|
<div class="cont_head">
|
|
<div class="cont_head">
|
|
|
<p class="displayH" id="id004">
|
|
<p class="displayH" id="id004">
|
|
|
<input type="hidden" name="title" th:value="${mainLayoutData.contentsTitle}">
|
|
<input type="hidden" name="title" th:value="${mainLayoutData.contentsTitle}">
|
|
|
</p>
|
|
</p>
|
|
|
- <th:block th:each="ContentsData, ContentsStat : ${mainLayoutData.ContentsList}">
|
|
|
|
|
- <a href="javascript:void(0);" th:onclick="cfnGoToPage([[${ContentsData.strVar1}]]);"><span>전체보기</span></a>
|
|
|
|
|
- </th:block>
|
|
|
|
|
|
|
+ <a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_BEST_MAIN);"><span>전체보기</span></a>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="cont_body">
|
|
<div class="cont_body">
|
|
|
<div class="it_nav">
|
|
<div class="it_nav">
|
|
@@ -205,7 +203,7 @@
|
|
|
|
|
|
|
|
<!-- 5. 프로모션배너 -->
|
|
<!-- 5. 프로모션배너 -->
|
|
|
<th:block th:if="${contentsLoc=='005'}">
|
|
<th:block th:if="${contentsLoc=='005'}">
|
|
|
- <div class="content main_2stage" th:if="${mainLayoutData.ContentsList != null}">
|
|
|
|
|
|
|
+ <div class="content main_2stage" th:if="${mainLayoutData.ContentsList != null and !mainLayoutData.ContentsList.empty}">
|
|
|
<div class="cont_head dpnone">
|
|
<div class="cont_head dpnone">
|
|
|
<p class="t_c">프로모션배너</p>
|
|
<p class="t_c">프로모션배너</p>
|
|
|
</div>
|
|
</div>
|
|
@@ -240,7 +238,7 @@
|
|
|
<!-- 6. 타임딜 : 슬라이드 -->
|
|
<!-- 6. 타임딜 : 슬라이드 -->
|
|
|
<th:block th:if="${contentsLoc=='006'}">
|
|
<th:block th:if="${contentsLoc=='006'}">
|
|
|
<th:block th:each="socialData, socialStat : ${mainLayoutData.socialInfo}">
|
|
<th:block th:each="socialData, socialStat : ${mainLayoutData.socialInfo}">
|
|
|
- <div class="content wide main_deal" th:if="${socialData.socialGoodsList != null}">
|
|
|
|
|
|
|
+ <div class="content wide main_deal" th:if="${socialData.socialGoodsList != null and !socialData.socialGoodsList.empty}">
|
|
|
<div class="cont_head">
|
|
<div class="cont_head">
|
|
|
<p class="displayH" id="id006">
|
|
<p class="displayH" id="id006">
|
|
|
<input type="hidden" name="title" th:value="${mainLayoutData.contentsTitle}">
|
|
<input type="hidden" name="title" th:value="${mainLayoutData.contentsTitle}">
|
|
@@ -271,54 +269,56 @@
|
|
|
<script>
|
|
<script>
|
|
|
/* 핫딜 countDown */
|
|
/* 핫딜 countDown */
|
|
|
// var target_date = new Date().getTime() + (1000*3600*8); // set the countdown date
|
|
// var target_date = new Date().getTime() + (1000*3600*8); // set the countdown date
|
|
|
- var target_date = $("#socailForm").find("input[name=targetTime]").val().toDate("YYYYMMDD");
|
|
|
|
|
- var days, hours, minutes, seconds; // variables for time units
|
|
|
|
|
|
|
+ if(!gagajf.isNull($("#socailForm").find("input[name=targetTime]").val())){
|
|
|
|
|
+ var target_date = $("#socailForm").find("input[name=targetTime]").val().toDate("YYYYMMDD");
|
|
|
|
|
+ var days, hours, minutes, seconds; // variables for time units
|
|
|
|
|
|
|
|
- var countdown = document.getElementById("tiles"); // get tag element
|
|
|
|
|
|
|
+ var countdown = document.getElementById("tiles"); // get tag element
|
|
|
|
|
|
|
|
- getCountdown();
|
|
|
|
|
|
|
+ getCountdown();
|
|
|
|
|
|
|
|
- var timerStop = setInterval(function () { getCountdown(); }, 1000);
|
|
|
|
|
|
|
+ var timerStop = setInterval(function () { getCountdown(); }, 1000);
|
|
|
|
|
|
|
|
- var fixDate = new Date().getTime();
|
|
|
|
|
- var fixTarget = (target_date - fixDate) / 1000;
|
|
|
|
|
- var width = (86400-fixTarget)*100/86400;
|
|
|
|
|
|
|
+ var fixDate = new Date().getTime();
|
|
|
|
|
+ var fixTarget = (target_date - fixDate) / 1000;
|
|
|
|
|
+ var width = (86400-fixTarget)*100/86400;
|
|
|
|
|
|
|
|
- function getCountdown(){
|
|
|
|
|
|
|
+ function getCountdown(){
|
|
|
|
|
|
|
|
- // find the amount of "seconds" between now and target
|
|
|
|
|
- var current_date = new Date().getTime();
|
|
|
|
|
- var seconds_left = (target_date - current_date) / 1000;
|
|
|
|
|
|
|
+ // find the amount of "seconds" between now and target
|
|
|
|
|
+ var current_date = new Date().getTime();
|
|
|
|
|
+ var seconds_left = (target_date - current_date) / 1000;
|
|
|
|
|
|
|
|
- seconds_left = seconds_left % 86400;
|
|
|
|
|
|
|
+ seconds_left = seconds_left % 86400;
|
|
|
|
|
|
|
|
- hours = pad( parseInt(seconds_left / 3600) );
|
|
|
|
|
- seconds_left = seconds_left % 3600;
|
|
|
|
|
|
|
+ hours = pad( parseInt(seconds_left / 3600) );
|
|
|
|
|
+ seconds_left = seconds_left % 3600;
|
|
|
|
|
|
|
|
- minutes = pad( parseInt(seconds_left / 60) );
|
|
|
|
|
- seconds = pad( parseInt( seconds_left % 60 ) );
|
|
|
|
|
|
|
+ minutes = pad( parseInt(seconds_left / 60) );
|
|
|
|
|
+ seconds = pad( parseInt( seconds_left % 60 ) );
|
|
|
|
|
|
|
|
- // format countdown string + set tag value
|
|
|
|
|
- countdown.innerHTML = "<span>" + hours + "</span><span>" + minutes + "</span><span>" + seconds + "</span>";
|
|
|
|
|
|
|
+ // format countdown string + set tag value
|
|
|
|
|
+ countdown.innerHTML = "<span>" + hours + "</span><span>" + minutes + "</span><span>" + seconds + "</span>";
|
|
|
|
|
|
|
|
- var elem = document.getElementById("barCurrent");
|
|
|
|
|
- function progressMove(){
|
|
|
|
|
- width += (100-width)/fixTarget;
|
|
|
|
|
- elem.style.width = width + "%";
|
|
|
|
|
- }
|
|
|
|
|
- progressMove();
|
|
|
|
|
|
|
+ var elem = document.getElementById("barCurrent");
|
|
|
|
|
+ function progressMove(){
|
|
|
|
|
+ width += (100-width)/fixTarget;
|
|
|
|
|
+ elem.style.width = width + "%";
|
|
|
|
|
+ }
|
|
|
|
|
+ progressMove();
|
|
|
|
|
|
|
|
- if(seconds_left < 1){
|
|
|
|
|
- clearInterval(timerStop);
|
|
|
|
|
- elem.style.width = "100%";
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if(seconds_left < 1){
|
|
|
|
|
+ clearInterval(timerStop);
|
|
|
|
|
+ elem.style.width = "100%";
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- function pad(n) {
|
|
|
|
|
- return (n < 10 ? '0' : '') + n;
|
|
|
|
|
|
|
+ function pad(n) {
|
|
|
|
|
+ return (n < 10 ? '0' : '') + n;
|
|
|
|
|
+ }
|
|
|
|
|
+ /* countDown */
|
|
|
}
|
|
}
|
|
|
- /* countDown */
|
|
|
|
|
|
|
|
|
|
</script>
|
|
</script>
|
|
|
</div>
|
|
</div>
|
|
@@ -362,7 +362,7 @@
|
|
|
|
|
|
|
|
<!-- 7. 브랜드픽 -->
|
|
<!-- 7. 브랜드픽 -->
|
|
|
<th:block th:if="${contentsLoc=='007'}">
|
|
<th:block th:if="${contentsLoc=='007'}">
|
|
|
- <div class="content main_pick">
|
|
|
|
|
|
|
+ <div class="content main_pick" th:if="${mainLayoutData.ContentsList != null and !mainLayoutData.ContentsList.empty}">
|
|
|
<div class="cont_head">
|
|
<div class="cont_head">
|
|
|
<p class="displayH t_c" th:text="${mainLayoutData.contentsTitle}">브랜드 PICK1</p>
|
|
<p class="displayH t_c" th:text="${mainLayoutData.contentsTitle}">브랜드 PICK1</p>
|
|
|
</div>
|
|
</div>
|
|
@@ -441,7 +441,7 @@
|
|
|
<!-- 8. 가로 긴 배너 슬라이드 -->
|
|
<!-- 8. 가로 긴 배너 슬라이드 -->
|
|
|
<!-- bnn_1stage -->
|
|
<!-- bnn_1stage -->
|
|
|
<th:block th:if="${contentsLoc=='008'}">
|
|
<th:block th:if="${contentsLoc=='008'}">
|
|
|
- <div class="content wide main_1stage">
|
|
|
|
|
|
|
+ <div class="content wide main_1stage" th:if="${mainLayoutData.ContentsList != null and !mainLayoutData.ContentsList.empty}">
|
|
|
<div class="cont_head dpnone">
|
|
<div class="cont_head dpnone">
|
|
|
<p class="t_c">배너 슬라이드</p>
|
|
<p class="t_c">배너 슬라이드</p>
|
|
|
</div>
|
|
</div>
|
|
@@ -479,7 +479,7 @@
|
|
|
|
|
|
|
|
<!-- 9. MD추천 스타일 -->
|
|
<!-- 9. MD추천 스타일 -->
|
|
|
<th:block th:if="${contentsLoc=='009'}">
|
|
<th:block th:if="${contentsLoc=='009'}">
|
|
|
- <div class="content main_recomm" >
|
|
|
|
|
|
|
+ <div class="content main_recomm" th:if="${mainLayoutData.mdPickList != null and !mainLayoutData.mdPickList.empty}">
|
|
|
<div class="cont_head">
|
|
<div class="cont_head">
|
|
|
<p class="displayH t_c" th:text="${mainLayoutData.contentsTitle}"></p>
|
|
<p class="displayH t_c" th:text="${mainLayoutData.contentsTitle}"></p>
|
|
|
</div>
|
|
</div>
|
|
@@ -541,7 +541,7 @@
|
|
|
|
|
|
|
|
<!-- 11. TV 슬라이드 -->
|
|
<!-- 11. TV 슬라이드 -->
|
|
|
<th:block th:if="${contentsLoc=='011'}">
|
|
<th:block th:if="${contentsLoc=='011'}">
|
|
|
- <div class="content wide main_tv" th:if="${mainLayoutData.ContentsList != null}">
|
|
|
|
|
|
|
+ <div class="content wide main_tv" th:if="${mainLayoutData.ContentsList != null and !mainLayoutData.ContentsList.empty}">
|
|
|
<div class="cont_head">
|
|
<div class="cont_head">
|
|
|
<p class="displayH t_c" th:text="${mainLayoutData.contentsTitle}"></p>
|
|
<p class="displayH t_c" th:text="${mainLayoutData.contentsTitle}"></p>
|
|
|
</div>
|
|
</div>
|