Просмотр исходного кода

기획전 수정 및 헤더 수정

jun820624 4 лет назад
Родитель
Сommit
02e1c2d491

+ 3 - 2
src/main/webapp/WEB-INF/views/web/common/fragments/GnbWeb.html

@@ -97,7 +97,8 @@
 <script th:inline="javascript">
 /*<![CDATA[*/
 	// 전체카테고리 조회
-	let gAllCate = [[${allCateList}]];
+	//let gAllCate = [[${allCateList}]];
+	let gAllCate =[];
 // 	let fnGetAllCategory = function() {
 // 		$.getJSON('/display/all/cate/list'
 // 			, function(result, status) {
@@ -116,7 +117,7 @@
 		$.getJSON('/display/searchengine/all/cate/list'
 			, function(result, status) {
 				if (result.length > 0) {
-					searchEngineAllCate = result;
+					searchEngineAllCate = gAllCate = result;
 					// GNB탭 > 브랜드 생성
 					// fnCreateGnbBrandGroup();
 					fnCreateGnbTab();

+ 12 - 10
src/main/webapp/WEB-INF/views/web/planning/PlanningDetailFormWeb.html

@@ -194,18 +194,20 @@
 	openWindow = function() {
 		var popupX = (document.body.offsetWidth / 2) - (800 / 2);
 		var popupY= (window.screen.height / 2) - (700 / 2);
-		window.open('gift_popup.html', '', 'status=no, height=700, width=800, left='+ popupX + ', top='+ popupY + ', screenX='+ popupX + ', screenY= '+ popupY);
+		window.open('https://image.istyle24.com/Statics/design/event/2021/1220Blanket/gift_popup.html', '', 'status=no, height=700, width=800, left='+ popupX + ', top='+ popupY + ', screenX='+ popupX + ', screenY= '+ popupY);
 		return;
 	}
-	let slider = $('.gift_slider').bxSlider(
-        {
-            wrapperClass: 'giftwrap', 
-            auto: true, 
-            speed: 300, 
-            nextText: '<i class="xi-angle-right-thin"></i>',
-            prevText: '<i class="xi-angle-left-thin"></i>',
-        }
-    );
+	$(function () {
+		let slider = $('.gift_slider').bxSlider(
+	        {
+	            wrapperClass: 'giftwrap', 
+	            auto: true, 
+	            speed: 300, 
+	            nextText: '<i class="xi-angle-right-thin"></i>',
+	            prevText: '<i class="xi-angle-left-thin"></i>',
+	        }
+	    );
+	});
     $(document).on('click','.bx-next, .bx-prev',function() {
         slider.stopAuto();
         slider.startAuto();