Sfoglia il codice sorgente

상품상세 추천 스크립트 수정

eskim 5 anni fa
parent
commit
18016ab191

+ 5 - 5
src/main/webapp/WEB-INF/views/web/common/advertisements/GoodsDetailScriptsWeb.html

@@ -16,13 +16,13 @@
  -->
  -->
 <th:block th:fragment="scripts">
 <th:block th:fragment="scripts">
 	<script th:inline="javascript">
 	<script th:inline="javascript">
-		
+
 		window._eglqueue = window._eglqueue || [];
 		window._eglqueue = window._eglqueue || [];
-		_eglqueue.push(['setVar', 'cuid', eglqueueCuid);
-		_eglqueue.push(['setVar', 'itemId', [[${goodsInfo.goodsCd}]]);
+		_eglqueue.push(['setVar', 'cuid', eglqueueCuid]);
+		_eglqueue.push(['setVar', 'itemId', [[${goodsInfo.goodsCd}]]]);
 		_eglqueue.push(['setVar', 'userId', hCustId]);
 		_eglqueue.push(['setVar', 'userId', hCustId]);
-		_eglqueue.push(['setVar', 'categoryId', cateNm);
-		_eglqueue.push(['setVar', 'brandId', [[${goodsInfo.brandGroupNo}]]);
+		_eglqueue.push(['setVar', 'categoryId', cateNm]);
+		_eglqueue.push(['setVar', 'brandId', [[${goodsInfo.brandGroupNo}]]]);
 		_eglqueue.push(['track', 'view']);
 		_eglqueue.push(['track', 'view']);
 		_eglqueue.push(['track', 'product']);
 		_eglqueue.push(['track', 'product']);
 		(function (s, x) {
 		(function (s, x) {

+ 3 - 2
src/main/webapp/WEB-INF/views/web/goods/GoodsDetailFormWeb.html

@@ -679,6 +679,7 @@
 <script th:inline="javascript">
 <script th:inline="javascript">
 /*<![CDATA[*/
 /*<![CDATA[*/
 		
 		
+	var cateNm = "";
 	// 다다익선 상품
 	// 다다익선 상품
 	var jfGoodsTmtbSearch = function(params) {
 	var jfGoodsTmtbSearch = function(params) {
 		gagajf.ajaxSubmit("/goods/detail/tmtb/frame", "html", "goodsTmtbArea", params);
 		gagajf.ajaxSubmit("/goods/detail/tmtb/frame", "html", "goodsTmtbArea", params);
@@ -1189,6 +1190,7 @@
 		
 		
 		// 광고 스크립트용
 		// 광고 스크립트용
 		var goodsNavigation = [[${goodsNavigation}]];
 		var goodsNavigation = [[${goodsNavigation}]];
+		
 		if (!gagajf.isNull(goodsNavigation)) {
 		if (!gagajf.isNull(goodsNavigation)) {
 			var cate1Nm = goodsNavigation.cate1Nm;
 			var cate1Nm = goodsNavigation.cate1Nm;
 			var cate2Nm = goodsNavigation.cate2Nm;
 			var cate2Nm = goodsNavigation.cate2Nm;
@@ -1278,13 +1280,12 @@
 	
 	
 /*]]>*/
 /*]]>*/
 </script>
 </script>
-</th:block>
-
 
 
 <!-- 광고 스크립트 -->
 <!-- 광고 스크립트 -->
 <th:block th:replace="~{web/common/advertisements/GoodsDetailScriptsWeb :: scripts}"></th:block>
 <th:block th:replace="~{web/common/advertisements/GoodsDetailScriptsWeb :: scripts}"></th:block>
 <!-- //광고 스크립트 -->
 <!-- //광고 스크립트 -->
 
 
+</th:block>
 
 
 </body>
 </body>
 </html>
 </html>