|
@@ -62,20 +62,29 @@
|
|
|
<button type="button" onclick="fnRealtimeGoodsList();"><span><em class="time" th:text="${#calendars.format(#calendars.createNow(), 'HH:mm')}">17:30</em> 기준</span></button>
|
|
<button type="button" onclick="fnRealtimeGoodsList();"><span><em class="time" th:text="${#calendars.format(#calendars.createNow(), 'HH:mm')}">17:30</em> 기준</span></button>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="realtime_wrap">
|
|
<div class="realtime_wrap">
|
|
|
- <div class="itemsGrp" id="itemViewArea">
|
|
|
|
|
- <th:block th:each="item, status : ${realtimeGoodsList}">
|
|
|
|
|
- <div class="item_prod">
|
|
|
|
|
- <div class="item_state">
|
|
|
|
|
- <a th:href="${item.itemUrl}" class="itemLink">
|
|
|
|
|
- <div class="itemPic">
|
|
|
|
|
- <img alt="" class="vLHTC pd_img" th:src="${item.imageUrl}">
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <div class="swiper-container">
|
|
|
|
|
+ <div class="swiper-wrapper itemsGrp" id="itemViewArea">
|
|
|
|
|
+ <th:block th:each="item, status : ${realtimeGoodsList}">
|
|
|
|
|
+ <div class="swiper-slide">
|
|
|
|
|
+ <div class="item_prod">
|
|
|
|
|
+ <div class="item_state">
|
|
|
|
|
+ <a th:href="${item.itemUrl}" class="itemLink">
|
|
|
|
|
+ <div class="itemPic">
|
|
|
|
|
+ <img alt="" class="vLHTC pd_img" th:src="${item.imageUrl}">
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="itemName" th:text="${item.itemName}"></div>
|
|
|
|
|
+ <div class="viewCount"><span th:text="${item.count < 10 ? '10명 미만' : item.count + '명 보는중'}"></span></div>
|
|
|
|
|
+ </a>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="itemName" th:text="${item.itemName}"></div>
|
|
|
|
|
- <div class="viewCount"><span th:text="${item.count < 10 ? '10명 미만' : item.count + '명 보는중'}"></span></div>
|
|
|
|
|
- </a>
|
|
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
- </th:block>
|
|
|
|
|
|
|
+ </th:block>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="swiper-controls">
|
|
|
|
|
+ <div class="swiper-scrollbar"></div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -182,6 +191,7 @@
|
|
|
cfnGoToPage(actionUrl);
|
|
cfnGoToPage(actionUrl);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ var submain_slide;
|
|
|
$(document).ready( function() {
|
|
$(document).ready( function() {
|
|
|
$("#layer_search").addClass('active');
|
|
$("#layer_search").addClass('active');
|
|
|
|
|
|
|
@@ -202,6 +212,21 @@
|
|
|
|
|
|
|
|
//통합검색 - 검색어 입력 시
|
|
//통합검색 - 검색어 입력 시
|
|
|
//
|
|
//
|
|
|
|
|
+
|
|
|
|
|
+ // 지금 고객님들이 많이 보고 있어요
|
|
|
|
|
+ //210730_ 추가 : 지금 고객님들이 많이 보고 있어요 슬라이드 swiper 옵션 추가.
|
|
|
|
|
+ submain_slide = new Swiper('.realtime_wrap .swiper-container', {
|
|
|
|
|
+ slidesPerView: 5,
|
|
|
|
|
+ watchOverflow:true,
|
|
|
|
|
+ freeMode:true,
|
|
|
|
|
+ observer: true,
|
|
|
|
|
+ observeParents: true,
|
|
|
|
|
+ speed:1000,
|
|
|
|
|
+ scrollbar: {
|
|
|
|
|
+ el: '.realtime_wrap .swiper-scrollbar',
|
|
|
|
|
+ hide: false,
|
|
|
|
|
+ },
|
|
|
|
|
+ });
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
// 검색어 찾기
|
|
// 검색어 찾기
|
|
@@ -365,24 +390,41 @@
|
|
|
$.getJSON('/display/realtime/goods/list', function (result){
|
|
$.getJSON('/display/realtime/goods/list', function (result){
|
|
|
if(result.length > 0){
|
|
if(result.length > 0){
|
|
|
$.each(result, function (idx, item){
|
|
$.each(result, function (idx, item){
|
|
|
- html += '<div class="item_prod">\n';
|
|
|
|
|
- html += ' <div class="item_state">\n';
|
|
|
|
|
- html += ' <a href="'+item.itemUrl+'" class="itemLink">\n';
|
|
|
|
|
- html += ' <div class="itemPic">\n';
|
|
|
|
|
- html += ' <img alt="" class="vLHTC pd_img" src="'+item.imageUrl+'">\n';
|
|
|
|
|
- html += ' </div>\n';
|
|
|
|
|
- html += ' <div class="itemName">'+item.itemName+'</div>\n';
|
|
|
|
|
|
|
+ html += '<div class="swiper-slide">\n';
|
|
|
|
|
+ html += ' <div class="item_prod">\n';
|
|
|
|
|
+ html += ' <div class="item_state">\n';
|
|
|
|
|
+ html += ' <a href="'+item.itemUrl+'" class="itemLink">\n';
|
|
|
|
|
+ html += ' <div class="itemPic">\n';
|
|
|
|
|
+ html += ' <img alt="" class="vLHTC pd_img" src="'+item.imageUrl+'">\n';
|
|
|
|
|
+ html += ' </div>\n';
|
|
|
|
|
+ html += ' <div class="itemName">'+item.itemName+'</div>\n';
|
|
|
if(item.count < 10){
|
|
if(item.count < 10){
|
|
|
html += ' <div class="viewCount"><span>10명</span> 미만</div>\n';
|
|
html += ' <div class="viewCount"><span>10명</span> 미만</div>\n';
|
|
|
}else{
|
|
}else{
|
|
|
html += ' <div class="viewCount"><span>'+item.count.addComma()+'</span>명 보는중</div>\n';
|
|
html += ' <div class="viewCount"><span>'+item.count.addComma()+'</span>명 보는중</div>\n';
|
|
|
}
|
|
}
|
|
|
- html += ' </a>\n';
|
|
|
|
|
|
|
+ html += ' </a>\n';
|
|
|
|
|
+ html += ' </div>\n';
|
|
|
html += ' </div>\n';
|
|
html += ' </div>\n';
|
|
|
html += '</div>\n';
|
|
html += '</div>\n';
|
|
|
|
|
+
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
$("#itemViewArea").append(html);
|
|
$("#itemViewArea").append(html);
|
|
|
|
|
+
|
|
|
|
|
+ // 슬라이드 사이즈 때문에 재설정함
|
|
|
|
|
+ submain_slide = new Swiper('.realtime_wrap .swiper-container', {
|
|
|
|
|
+ slidesPerView: 5,
|
|
|
|
|
+ watchOverflow:true,
|
|
|
|
|
+ freeMode:true,
|
|
|
|
|
+ observer: true,
|
|
|
|
|
+ observeParents: true,
|
|
|
|
|
+ speed:1000,
|
|
|
|
|
+ scrollbar: {
|
|
|
|
|
+ el: '.realtime_wrap .swiper-scrollbar',
|
|
|
|
|
+ hide: false,
|
|
|
|
|
+ },
|
|
|
|
|
+ });
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|