|
|
@@ -27,7 +27,17 @@
|
|
|
</ul>
|
|
|
</div>
|
|
|
<div class="wrap">
|
|
|
- <th:block th:if="${socialInfo != null}">
|
|
|
+ <div class="nodata" style="display: none;">
|
|
|
+ <div class="txt_box">
|
|
|
+ <p>진행하는 핫딜이 없습니다.</p>
|
|
|
+ </div>
|
|
|
+ <div class="btn_box">
|
|
|
+ <button class="btn btn_default" onclick="cfnGoToPage(_PAGE_MAIN);">
|
|
|
+ <span>홈으로 가기</span>
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <th:block th:if="${socialInfo != null}">
|
|
|
<div class="content wide dp_hotdeal"> <!-- 페이지특정 클래스 = dp_hotdeal -->
|
|
|
<div class="cont_body">
|
|
|
<div class="hotdeal">
|
|
|
@@ -166,6 +176,7 @@ var fnDrawInfiniteScrollData = function (result){
|
|
|
gagaInfiniteScroll.pageStatus.totalCount = result.totalCnt;
|
|
|
|
|
|
if (result.dataList != null && result.dataList.length > 0) {
|
|
|
+ $(".nodata").hide();
|
|
|
let lastPage = result.paging.pageable.pageNo;
|
|
|
let endRow = result.endRow - result.paging.pageable.pageSize;
|
|
|
|
|
|
@@ -173,22 +184,11 @@ var fnDrawInfiniteScrollData = function (result){
|
|
|
gagaInfiniteScroll.draw(htm);
|
|
|
}else{
|
|
|
if($("#socialForm input[name=pageNo]").val()==1){
|
|
|
- var html = '';
|
|
|
- html += '<div class="nodata" >';
|
|
|
- html += ' <div class="txt_box">';
|
|
|
- html += ' <p>';
|
|
|
- html += ' 진행하는 핫딜이 없습니다.';
|
|
|
- html += ' </p>';
|
|
|
- html += ' </div>';
|
|
|
- html += ' <div class="btn_box">';
|
|
|
- html += ' <button class="btn btn_default" onclick="cfnGoToPage(_PAGE_MAIN);"><span>홈으로 가기</span></button>';
|
|
|
- html += ' </div>';
|
|
|
- html += '</div>';
|
|
|
-
|
|
|
- $('#listBox').html(html);
|
|
|
+ $(".nodata").show();
|
|
|
}
|
|
|
$("#divLastPage").show();
|
|
|
gagaInfiniteScroll.draw('not');
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -196,6 +196,7 @@ var fnDrawInfiniteScrollData = function (result){
|
|
|
$(function(){
|
|
|
fnSocialListSearch();
|
|
|
/* 핫딜 countDown */
|
|
|
+
|
|
|
function hotdealTimer() {
|
|
|
var endTime = new Date(socialInfo.socialEddt); // 남은시간 지정
|
|
|
|
|
|
@@ -220,7 +221,11 @@ $(function(){
|
|
|
$('#h-minutes').html(minutes);
|
|
|
$('#h-seconds').html(seconds);
|
|
|
}
|
|
|
- setInterval(function() { hotdealTimer(); }, 1000);
|
|
|
+
|
|
|
+ if (socialInfo != null) {
|
|
|
+ setInterval(function() { hotdealTimer(); }, 1000);
|
|
|
+ }
|
|
|
+
|
|
|
/* countDown */
|
|
|
});
|
|
|
|