bin2107 4 лет назад
Родитель
Сommit
fe9364abbc

+ 53 - 27
src/main/webapp/WEB-INF/views/mob/display/BrandMainFormMob.html

@@ -513,34 +513,60 @@
 		});
 	});
 
-	//210624_ 추가 : 슬라이드 속성 추가.
+	//210728_ 수정 : 슬라이드 1개일때 자동롤링 멈춤.
 	// 서브비주얼 슬라이드
-	var myArray = ["01", "02", "03"];
-	var submainVisualSwiper = new Swiper('.swiper-container.submain_visual', {
-		loop:true,
-		//210414_자동롤링 추가
-		speed: 1000,
-		autoplay : {
-			delay : 3000,   // 시간 설정
-			disableOnInteraction: false,
-		},
-		a11y: {
-			enabled: true,
-			notificationClass: 'swiper-notification',
-			prevSlideMessage: '이전 슬라이드',
-			nextSlideMessage: '다음 슬라이드',
-			firstSlideMessage: '첫번째 슬라이드 입니다',
-			lastSlideMessage: '마지막 슬라이드 입니다',
-			paginationBulletMessage: '슬라이드 {{index}}로 이동',
-		},
-		pagination: {
-			el: '.swiper-pagination',
-			type: 'fraction',
-			//renderCustom: function (swiper, current, total) {
-			//	return current + ' of ' + total;
-			//}
-		}
-	});
+	var brCont = $('.submain_visual .swiper-slide');
+	var brLength = brCont.length;
+	if (brLength < 2) {
+		var submainVisualSwiper = new Swiper('.swiper-container.submain_visual', {
+			loop:false,
+			//210414_자동롤링 추가
+			speed: 1000,
+			watchOverflow: true,
+			a11y: {
+				enabled: true,
+				notificationClass: 'swiper-notification',
+				prevSlideMessage: '이전 슬라이드',
+				nextSlideMessage: '다음 슬라이드',
+				firstSlideMessage: '첫번째 슬라이드 입니다',
+				lastSlideMessage: '마지막 슬라이드 입니다',
+				paginationBulletMessage: '슬라이드 {{index}}로 이동',
+			},
+			pagination: {
+				el: '.swiper-pagination',
+				type: 'fraction',
+				//renderCustom: function (swiper, current, total) {
+				//	return current + ' of ' + total;
+				//}
+			}
+		});
+	}else{
+		var submainVisualSwiper = new Swiper('.swiper-container.submain_visual', {
+			loop:true,
+			//210414_자동롤링 추가
+			speed: 1000,
+			autoplay : {
+				delay : 3000,   // 시간 설정
+				disableOnInteraction: false,
+			},
+			a11y: {
+				enabled: true,
+				notificationClass: 'swiper-notification',
+				prevSlideMessage: '이전 슬라이드',
+				nextSlideMessage: '다음 슬라이드',
+				firstSlideMessage: '첫번째 슬라이드 입니다',
+				lastSlideMessage: '마지막 슬라이드 입니다',
+				paginationBulletMessage: '슬라이드 {{index}}로 이동',
+			},
+			pagination: {
+				el: '.swiper-pagination',
+				type: 'fraction',
+				//renderCustom: function (swiper, current, total) {
+				//	return current + ' of ' + total;
+				//}
+			}
+		});
+	}
 
 	//210705_수정 : 기획전 배너 2개이상 등록시 슬라이드 각각 실행.
 	// post-bnnWide (210602_ 교체)

+ 4 - 0
src/main/webapp/WEB-INF/views/mob/display/BrandSearchGoodsListFormMob.html

@@ -785,6 +785,10 @@
 			$("body").css({"overflow":"visible"});
 		});
 
+		//210728_추가 : 브랜드 검색결과 타이틀 보이게 설정.
+		$('.htop h1').text('검색결과');
+		$('.htop h1').css({"display": "inline-block"});
+
 		// 카테고리 필터 생성
 		fnCreateCategoryFilter();
 

+ 50 - 24
src/main/webapp/WEB-INF/views/mob/display/CategoryMainFormMob.html

@@ -150,30 +150,56 @@
 		$(document).ready(function () {
 			fnSetCategory1Depts();
 
-			//210624_ 추가 : 슬라이드 속성 추가.
-			var swiper = new Swiper('.submain_visual .swiper-container', {
-				observer: true,
-				observeParents: true,
-				loop:true,
-				speed:1000,
-				a11y: {
-					enabled: true,
-					notificationClass: 'swiper-notification',
-					prevSlideMessage: '이전 슬라이드',
-					nextSlideMessage: '다음 슬라이드',
-					firstSlideMessage: '첫번째 슬라이드 입니다',
-					lastSlideMessage: '마지막 슬라이드 입니다',
-					paginationBulletMessage: '슬라이드 {{index}}로 이동',
-				},
-				autoplay : {
-					delay : 3000,   // 시간 설정
-					disableOnInteraction: false,
-				},
-				pagination: {
-					el: '.submain_visual .swiper-pagination',
-					type: 'fraction',
-				},
-			});
+			//210728_ 수정 : 슬라이드 1개일때 자동롤링 멈춤.
+			// 서브비주얼 슬라이드
+			var subMainCont = $('.submain_visual .swiper-slide');
+			var subMainLength = subMainCont.length;
+			if (subMainLength < 2) {
+				var swiper = new Swiper('.submain_visual .swiper-container', {
+					observer: true,
+					observeParents: true,
+					loop:false,
+					watchOverflow: true,
+					speed:1000,
+					a11y: {
+						enabled: true,
+						notificationClass: 'swiper-notification',
+						prevSlideMessage: '이전 슬라이드',
+						nextSlideMessage: '다음 슬라이드',
+						firstSlideMessage: '첫번째 슬라이드 입니다',
+						lastSlideMessage: '마지막 슬라이드 입니다',
+						paginationBulletMessage: '슬라이드 {{index}}로 이동',
+					},
+					pagination: {
+						el: '.submain_visual .swiper-pagination',
+						type: 'fraction',
+					},
+				});
+			}else{
+				var swiper = new Swiper('.submain_visual .swiper-container', {
+					observer: true,
+					observeParents: true,
+					loop:true,
+					speed:1000,
+					a11y: {
+						enabled: true,
+						notificationClass: 'swiper-notification',
+						prevSlideMessage: '이전 슬라이드',
+						nextSlideMessage: '다음 슬라이드',
+						firstSlideMessage: '첫번째 슬라이드 입니다',
+						lastSlideMessage: '마지막 슬라이드 입니다',
+						paginationBulletMessage: '슬라이드 {{index}}로 이동',
+					},
+					autoplay : {
+						delay : 3000,   // 시간 설정
+						disableOnInteraction: false,
+					},
+					pagination: {
+						el: '.submain_visual .swiper-pagination',
+						type: 'fraction',
+					},
+				});
+			}
 
 			//210624_ 추가 : max-height 값 변경.
 			var cate = this.querySelector('.cate_wrap');