|
|
@@ -1386,9 +1386,10 @@
|
|
|
}
|
|
|
|
|
|
// 팝업
|
|
|
- let fnGetPopup = function(){
|
|
|
+ let fnGetPopup = function(){debugger;
|
|
|
let data = {viewPage : [[${viewPage}]]
|
|
|
,cateNo : [[${popupCateNo}]]
|
|
|
+ ,brandCd : [[${popupBrandCd}]]
|
|
|
,planSq : [[${popupPlanSq}]]
|
|
|
,preview : [[${preview}]]
|
|
|
,viewDt : [[${viewDt}]]
|
|
|
@@ -1437,27 +1438,43 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- /* SLIDE - 메인 공지 팝업 */
|
|
|
- var popup_main_notice_slide = new Swiper ('.popup_main_notice .swiper-container', {
|
|
|
- loop: false,
|
|
|
- slidesPerView:'auto',
|
|
|
- spaceBetween: 0,
|
|
|
- speed:200,
|
|
|
- autoplay: false,
|
|
|
- navigation: {
|
|
|
- nextEl: '.popup_main_notice .swiper-button-next',
|
|
|
- prevEl: '.popup_main_notice .swiper-button-prev',
|
|
|
- },
|
|
|
- });
|
|
|
-
|
|
|
- /* 메인 공지 팝업 갯수체크 */
|
|
|
+ /* 메인 공지 팝업 갯수체크 210430_수정 */
|
|
|
var popNoticeCont = $('.popup_main_notice .swiper-slide');
|
|
|
var popNoticeLength = popNoticeCont.length;
|
|
|
- if (popNoticeLength == 1) {
|
|
|
+ if (popNoticeLength < 4) {
|
|
|
popNoticeCont.parents('.popup_body').addClass('onlyNotice');
|
|
|
+ var popup_main_notice_slide = new Swiper ('.popup_main_notice .swiper-container', {
|
|
|
+ loop: false,
|
|
|
+ watchOverflow: true, //loop와 함께 사용 불가.
|
|
|
+ slidesPerView:'auto',
|
|
|
+ spaceBetween: 0,
|
|
|
+ speed:200,
|
|
|
+ autoplay: {
|
|
|
+ delay: 3000,
|
|
|
+ disableOnInteraction: false,
|
|
|
+ },
|
|
|
+ navigation: {
|
|
|
+ nextEl: '.popup_main_notice .swiper-button-next',
|
|
|
+ prevEl: '.popup_main_notice .swiper-button-prev',
|
|
|
+ },
|
|
|
+ });
|
|
|
} else {
|
|
|
popNoticeCont.parents('.popup_body').removeClass('onlyNotice');
|
|
|
- }
|
|
|
+ var popup_main_notice_slide = new Swiper ('.popup_main_notice .swiper-container', {
|
|
|
+ loop: true,
|
|
|
+ slidesPerView:'auto',
|
|
|
+ spaceBetween: 0,
|
|
|
+ speed:200,
|
|
|
+ autoplay: {
|
|
|
+ delay: 3000,
|
|
|
+ disableOnInteraction: false,
|
|
|
+ },
|
|
|
+ navigation: {
|
|
|
+ nextEl: '.popup_main_notice .swiper-button-next',
|
|
|
+ prevEl: '.popup_main_notice .swiper-button-prev',
|
|
|
+ },
|
|
|
+ });
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
}
|