Procházet zdrojové kódy

퀵메뉴 익스관련 처리

eskim před 5 roky
rodič
revize
a17a5c0499

+ 132 - 1
src/main/webapp/WEB-INF/views/web/common/fragments/FooterWeb.html

@@ -1581,6 +1581,7 @@
 	}
 	
 	$(document).ready( function() {
+/*		
 		// 퀵메뉴탭 조회
 		fnCreateQuickMenuTab();
 		
@@ -1669,12 +1670,142 @@
 		
 						
 
-		/* 메인 공지 팝업 닫기 */
+		// 메인 공지 팝업 닫기 
 		$(document).on('click','#btnPopupClose',function(e){
 			$('#popupMainNotice').hide();
 			return false;
 		});		
+*/
+		
+		
+	});
+	
+	
+	//퀵메뉴탭 조회
+	var tabAnchor = $('.quick_btn button'),
+		tabPanel = $('#quick_menu .quick_con');
+	
+	$(document).on('click','.quick_btn button:not(#top_btn)',function(e){
+		e.preventDefault();
+		$('body').addClass('lock');
+		$('#quick_menu').addClass('active');
+		tabAnchor.removeClass('active');
+		$(this).addClass('active');
+		var NewLink = $(this).attr('data-tab');
+		tabPanel.hide();
+		$('.' + NewLink).show();
+	});
+
+	//Family Site
+	$('.family_link').on('click','.btn',function(e){
+		e.preventDefault();
+		$(this).parents('.family_link').find('#family_site').slideToggle(100);
+		$(this).find('.ico.ico_ft_arrow_b').toggleClass('ico_ft_arrow_t');
+	});
+	
+	var tabAnchor = $('.quick_btn button'),
+	tabPanel = $('#quick_menu .quick_con');
+
+	$(document).on('click','.quick_btn button:not(#top_btn)',function(e){
+		e.preventDefault();
+		$('body').addClass('lock');
+		$('#quick_menu').addClass('active');
+		tabAnchor.removeClass('active');
+		$(this).addClass('active');
+		var NewLink = $(this).attr('data-tab');
+		tabPanel.hide();
+		$('.' + NewLink).show();
+	});
+	
+	//퀵메뉴_쿠폰
+	var couponAnchor = $('.coupon_tab a'),
+	couponPanel = $('.coupon_area');
+
+	$(document).on('click','.coupon_tab a',function(e){
+		e.preventDefault();
+		couponAnchor.removeClass('active');
+		$(this).addClass('active');
+		var NewLink = $(this).attr('href');
+		
+		couponPanel.hide();
+		$(NewLink).show();
+		
+	});
+
+	//퀵메뉴 닫을 때
+	$(document).on('click','#quick_menu .quick_close_btn',function(e){
+		e.preventDefault();
+		$('body').removeClass('lock');
+		$('#quick_menu').removeClass('active');
+		$('#quick_menu .quick_con').hide();
+	});
+
+	//퀵메뉴 카테고리 메뉴 클릭시
+	$(document).on('click','#quick_menu .category .quick_cate_wrap > li',function(e){
+		$(this).toggleClass('active');
+		$(this).find('> ul').slideToggle(300);
+		$(this).siblings('li').find('> ul').slideUp(300);
+		$(this).siblings('li').removeClass('active');
+	});
+
+	//퀵메뉴 탑버튼 클릭 시
+	$(document).on('click','#top_btn',function(e){
+		$('body,html').animate({scrollTop:0});
+	});
+
+	//퀵메뉴_쿠폰 사용안내 팝업
+	$(".coupon_pop_btn").click(function() {
+		$(".coupon_popup").modal("show");
+	});
+	
+	// 메인 공지 팝업 닫기
+	$(document).on('click','#btnPopupClose',function(e){
+		$('#popupMainNotice').hide();
+		return false;
+	});	
+	
+	
+	//퀵메뉴
+	$('#ulQuickMenuCate').load('FooterWeb.html', function() {
+		fnCreateQuickMenuTab();
 	});
+	
+	//Family Site load 후
+	$('#family_site').load('FooterWeb.html', function() {
+		fnGetFamilySite();
+	}); 
+	
+	//최근본상품 조회
+	$('#quickMenuTodayGoods').load('FooterWeb.html', function() {
+		fnGetRecentlyGoods();
+	});
+	
+	// 장바구니 조회
+	$('#quick_menu .shopingbag.quick_con.quick02 .quick_body').load('FooterWeb.html', function() {
+		fnGetCartGoodsList();
+	});
+	
+	// 위시리스트
+	$('#quickMenuWishList').load('FooterWeb.html', function() {
+		fnGetWishList();
+	});
+	
+	// 팝업조회
+	//$('#layer_popup').load('footer.html', function() {
+		fnGetPopup();
+	//});
+	
+	// 쿠폰조회
+	$('#issueCoupon').load('FooterWeb.html', function() {
+		//$("#issueCouponBtn").trigger("click");
+		
+		couponAnchor.eq(0).trigger('click');
+	});
+	//$("#issueCouponBtn").trigger("click");
+	
+	//couponAnchor.eq(0).trigger('click');
+	
+	
 /*]]>*/
 </script>