Sfoglia il codice sorgente

Merge branch '추천영역' into jmh

jmh 4 anni fa
parent
commit
00d3e868a9
25 ha cambiato i file con 557 aggiunte e 552 eliminazioni
  1. 3 0
      src/main/java/com/style24/front/biz/web/TsfGoodsController.java
  2. 2 2
      src/main/webapp/WEB-INF/views/mob/cart/CartListFormMob.html
  3. 1 1
      src/main/webapp/WEB-INF/views/mob/common/fragments/FooterMob.html
  4. 495 493
      src/main/webapp/WEB-INF/views/mob/display/BestMainFormMob.html
  5. 2 2
      src/main/webapp/WEB-INF/views/mob/display/BrandMainFormMob.html
  6. 1 1
      src/main/webapp/WEB-INF/views/mob/display/BrandSearchGoodsListFormMob.html
  7. 2 2
      src/main/webapp/WEB-INF/views/mob/display/BrandSearchLayerMob.html
  8. 2 2
      src/main/webapp/WEB-INF/views/mob/display/MallMainFormMob.html
  9. 2 2
      src/main/webapp/WEB-INF/views/mob/display/OutletMainFormMob.html
  10. 1 1
      src/main/webapp/WEB-INF/views/mob/display/SearchGoodsListFormMob.html
  11. 2 2
      src/main/webapp/WEB-INF/views/mob/display/SearchLayerMob.html
  12. 1 1
      src/main/webapp/WEB-INF/views/mob/goods/GoodsDetailFormMob.html
  13. 2 2
      src/main/webapp/WEB-INF/views/mob/goods/GoodsOtherFormMob.html
  14. 2 2
      src/main/webapp/WEB-INF/views/web/cart/CartListFormWeb.html
  15. 1 1
      src/main/webapp/WEB-INF/views/web/common/fragments/FooterWeb.html
  16. 6 4
      src/main/webapp/WEB-INF/views/web/display/BestMainFormWeb.html
  17. 2 2
      src/main/webapp/WEB-INF/views/web/display/BrandMainFormWeb.html
  18. 1 1
      src/main/webapp/WEB-INF/views/web/display/BrandSearchGoodsListFormWeb.html
  19. 2 2
      src/main/webapp/WEB-INF/views/web/display/BrandSearchLayerWeb.html
  20. 16 18
      src/main/webapp/WEB-INF/views/web/display/MallMainFormWeb.html
  21. 2 2
      src/main/webapp/WEB-INF/views/web/display/OutletMainFormWeb.html
  22. 1 1
      src/main/webapp/WEB-INF/views/web/display/SearchGoodsListFormWeb.html
  23. 3 3
      src/main/webapp/WEB-INF/views/web/display/SearchLayerWeb.html
  24. 1 1
      src/main/webapp/WEB-INF/views/web/goods/GoodsDealDetailFormWeb.html
  25. 4 4
      src/main/webapp/WEB-INF/views/web/goods/GoodsDetailFormWeb.html

+ 3 - 0
src/main/java/com/style24/front/biz/web/TsfGoodsController.java

@@ -1046,6 +1046,7 @@ public class TsfGoodsController extends TsfBaseController {
 		mav.addObject("goodsList", eigeneaiApi.getRelatedGoodsList(goods.getGoodsCd(),15, TsfSession.getFrontGb()));
 		goods.setIthrCd("IN15_03");
 		mav.addObject("params", goods);
+		mav.addObject("rccode", "a37");
 		mav.setViewName(super.getDeviceViewName("goods/GoodsOtherForm"));
 		return mav;
 	}
@@ -1063,6 +1064,7 @@ public class TsfGoodsController extends TsfBaseController {
 		mav.addObject("goodsList", eigeneaiApi.getBrandRelatedGoodsList(15,goods.getGoodsCd(), goods.getBrandGroupNo(), TsfSession.getFrontGb()));
 		goods.setIthrCd("IN15_04");
 		mav.addObject("params", goods);
+		mav.addObject("rccode", "a38");
 		mav.setViewName(super.getDeviceViewName("goods/GoodsOtherForm"));
 		return mav;
 	}
@@ -1088,6 +1090,7 @@ public class TsfGoodsController extends TsfBaseController {
 		}
 		goods.setIthrCd("IN15_05");
 		mav.addObject("params", goods);
+		mav.addObject("rccode", "a39");
 		mav.setViewName(super.getDeviceViewName("goods/GoodsOtherForm"));
 		return mav;
 	}

+ 2 - 2
src/main/webapp/WEB-INF/views/mob/cart/CartListFormMob.html

@@ -119,7 +119,7 @@
 								<div class="item_prod"> <!-- item_prod ranker d_detail -->
 									<div class="item_state"> <!-- item_state AD soldout -->
 										<button type="button" class="itemLike" onclick="cfnPutWishList(this);" th:attr="goodsCd=${cart.product.itemId}, goodsNm=${cart.product.itemName}, ithrCd='IN18_01', contentsLoc='', planDtlSq=''">관심상품 추가</button>
-										<a th:href="${cart.product.itemUrl}" class="itemLink">
+										<a th:href="${cart.product.itemUrl} + '&rccode=mo_cart_a37'" class="itemLink">
 											<div class="itemPic">
 												<img class="vLHTC pd_img" th:src="${cart.product.itemImage}" src="" alt="">
 											</div>
@@ -150,7 +150,7 @@
 							<div class="swiper-slide">
 								<div class="item_prod">
 									<div class="item_state">
-										<a th:href="${cart.itemUrl}" class="itemLink">
+										<a th:href="${cart.itemUrl} + '&rccode=rts_mo_cart&rtscode=mo_cart'" class="itemLink">
 											<div class="itemPic">
 												<img alt="BLACK-a" class=" vLHTC pd_img" th:src="${cart.imageUrl}" src="">
 											</div>

+ 1 - 1
src/main/webapp/WEB-INF/views/mob/common/fragments/FooterMob.html

@@ -347,7 +347,7 @@
 						tag += '<div class="item_prod">\n';
 						tag += '	<div class="item_state">\n';
 						// tag += '		<button type="button" class="itemLike">관심상품 추가</button>\n'; /* 21.07.27 기획 한리더 요청으로 최근본상품 내 위시버튼 제거 */
-						tag += '		<a href="javascript:void(0);" onclick="cfnGoToGoodsDetail(\''+item.goodsCd+'\',\'\',\'IN22_01\')" class="itemLink">\n';
+						tag += '		<a href="javascript:void(0);" onclick="cfnGoToGoodsDetail(\''+item.goodsCd+'\',\'\',\'IN22_01\',\'\',\'\',\'rts_mo_main&rtscode=mo_main\')" class="itemLink">\n';
 						tag += '			<div class="itemPic">\n';
 						tag += '				<img class="vLHTC pd_img" src="' + _uploadGoodsUrl + '/' + item.sysImgNm + '" alt="">\n';
 						tag += '			</div>\n';

+ 495 - 493
src/main/webapp/WEB-INF/views/mob/display/BestMainFormMob.html

@@ -19,504 +19,506 @@
 <body>
 
 <th:block layout:fragment="content">
-	<main role="" id="" class="container dp">
-
-		<section class="content dp_best">
-			<div class="inner wide">
-				<div class="category_nav">
-					<ul id="cateListArea">
-						<li class="" id="li0"><button type="button" onclick="fnBestListSearch(this,'');">전체</button></li>
-						<th:block th:each="item, stat : ${bestCateList}">
-							<li class="" th:id="${'li'+item.cateNo}"><button type="button" th:onclick="fnBestListSearch(this,[[${item.cateNo}]]);" th:text="${item.cateNm}">여성</button></li>
-						</th:block>
-					</ul>
-				</div>
-			</div>
-			<div class="inner bg_gray">
-				<div class="view_item">
-					<div class="count_wrap">
-						<div>
-							<p>지금 많이 <span>보고 있어요</span></p>
-						</div>
-						<div>
-							<ul class="dp_util">
-								<li><a href="javascript:void(0);" id="researchBtn" class="refresh" th:text="${#calendars.format(#calendars.createNow(), 'HH:mm')+' 기준'}">17:30 기준</a></li>
-							</ul>
-						</div>
-					</div>
-					<div class="swiper-container item_list">
-						<div class="swiper-wrapper" id="itemViewArea">
-						</div>
-					</div>
-				</div>
-			</div>
-
-			<div class="inner">
-				<div class="best_item">
-					<h2 class="dp_subtitle">베스트 TOP 100</h2>
-					<div class="item_list">
-						<div class="count_wrap">
-							<ul class="dp_util">
-								<li>
-									<div class="open_categori sex">
-										<a id="filter">구매 성별 전체
-										</a>
-									</div>
-								</li>
-								<li>
-									<div class="open_categori age">
-										<a id="filter">구매 연령 전체
-										</a>
-									</div>
-								</li>
-							</ul>
-						</div>
-						<div class="list_content">
-							<div class="itemsGrp" id="prodArea">
-							</div>
-						</div>
-						<div class="list_last" id="divLastPage" style="display: none;">마지막페이지 입니다.</div>
-					</div>
-				</div>
-			</div>
-		</section>
-
-		<!-- 카테고리 -->
-		<div class="category_box">
-			<div class="lap">
-				<div class="category_close">카테고리닫기</div>
-				<div class="category_list">
-					<!-- 카테고리 선택 -->
-					<div class="selcet_list">
-						<ul>
-							<li class="active"><a href="javascript:void(0)">구매성별 전체</a></li>
-							<li><a href="javascript:void(0)">구매성별1</a></li>
-							<li><a href="javascript:void(0)">구매성별2</a></li>
-							<li><a href="javascript:void(0)">구매성별3</a></li>
-							<li><a href="javascript:void(0)">구매성별4</a></li>
-						</ul>
-					</div>
-					<!-- //카테고리 선택 -->
-				</div>
-			</div>
-		</div>
-		<!-- //카테고리 -->
-
-		<!-- 210415_최신상품순 리스트 팝업 추가 -->
-		<div id="odDatePop1" class="popup_box odDatePop">
-			<div class="lap">
-				<div class="popup_close">카테고리닫기</div>
-				<div class="popup_head sr-only">
-					<h2 class="">기간 선택 팝업</h2>
-				</div>
-				<div class="popup_con">
-					<div class="button_list clear">
-						<button type="button" class="on" onclick="fnGetEigenD002(this, 'gender');" data-id="" ><span>구매성별 전체</span></button>
-						<button type="button" onclick="fnGetEigenD002(this, 'gender');" data-id="A" ><span>남성</span></button>
-						<button type="button" onclick="fnGetEigenD002(this, 'gender');" data-id="B" ><span>여성</span></button>
-					</div>
-				</div>
-			</div>
-		</div>
-		<div id="odDatePop2" class="popup_box odDatePop">
-			<div class="lap">
-				<div class="popup_close">카테고리닫기</div>
-				<div class="popup_head sr-only">
-					<h2 class="">기간 선택 팝업</h2>
-				</div>
-				<div class="popup_con">
-					<div class="button_list clear">
-						<button type="button" class="on" onclick="fnGetEigenD002(this, 'age');" data-id="" ><span>구매연령 전체</span></button>
-						<button type="button" onclick="fnGetEigenD002(this, 'age');" data-id="10" ><span>10대</span></button>
-						<button type="button" onclick="fnGetEigenD002(this, 'age');" data-id="20" ><span>20대</span></button>
-						<button type="button" onclick="fnGetEigenD002(this, 'age');" data-id="30" ><span>30대</span></button>
-						<button type="button" onclick="fnGetEigenD002(this, 'age');" data-id="40" ><span>40대</span></button>
-						<button type="button" onclick="fnGetEigenD002(this, 'age');" data-id="50" ><span>50대 이상</span></button>
-					</div>
-				</div>
-			</div>
-		</div>
-	</main>
-
-	<form id="bestGoodsForm" name="bestGoodsForm">
-		<input type="hidden" name="pageNo" id="pageNo" value ="1"/>
-		<input type="hidden" name="pageSize" value ="50"/>
-		<input type="hidden" name="cateNo" value=""/>
-		<input type="hidden" name="sortGb"/>
-	</form>
-
-	<!-- 수동설정 + 추천솔루션 카운트 문제로 인해 인피티니스크롤 제거 협의 21-07-21 -->
+  <main role="" id="" class="container dp">
+
+    <section class="content dp_best">
+      <div class="inner wide">
+        <div class="category_nav">
+          <ul id="cateListArea">
+            <li class="" id="li0"><button type="button" onclick="fnBestListSearch(this,'');">전체</button></li>
+            <th:block th:each="item, stat : ${bestCateList}">
+              <li class="" th:id="${'li'+item.cateNo}"><button type="button" th:onclick="fnBestListSearch(this,[[${item.cateNo}]]);" th:text="${item.cateNm}">여성</button></li>
+            </th:block>
+          </ul>
+        </div>
+      </div>
+      <div class="inner bg_gray">
+        <div class="view_item">
+          <div class="count_wrap">
+            <div>
+              <p>지금 많이 <span>보고 있어요</span></p>
+            </div>
+            <div>
+              <ul class="dp_util">
+                <li><a href="javascript:void(0);" id="researchBtn" class="refresh" th:text="${#calendars.format(#calendars.createNow(), 'HH:mm')+' 기준'}">17:30 기준</a></li>
+              </ul>
+            </div>
+          </div>
+          <div class="swiper-container item_list">
+            <div class="swiper-wrapper" id="itemViewArea">
+            </div>
+          </div>
+        </div>
+      </div>
+
+      <div class="inner">
+        <div class="best_item">
+          <h2 class="dp_subtitle">베스트 TOP 100</h2>
+          <div class="item_list">
+            <div class="count_wrap">
+              <ul class="dp_util">
+                <li>
+                  <div class="open_categori sex">
+                    <a id="filter">구매 성별 전체
+                    </a>
+                  </div>
+                </li>
+                <li>
+                  <div class="open_categori age">
+                    <a id="filter">구매 연령 전체
+                    </a>
+                  </div>
+                </li>
+              </ul>
+            </div>
+            <div class="list_content">
+              <div class="itemsGrp" id="prodArea">
+              </div>
+            </div>
+            <div class="list_last" id="divLastPage" style="display: none;">마지막페이지 입니다.</div>
+          </div>
+        </div>
+      </div>
+    </section>
+
+    <!-- 카테고리 -->
+    <div class="category_box">
+      <div class="lap">
+        <div class="category_close">카테고리닫기</div>
+        <div class="category_list">
+          <!-- 카테고리 선택 -->
+          <div class="selcet_list">
+            <ul>
+              <li class="active"><a href="javascript:void(0)">구매성별 전체</a></li>
+              <li><a href="javascript:void(0)">구매성별1</a></li>
+              <li><a href="javascript:void(0)">구매성별2</a></li>
+              <li><a href="javascript:void(0)">구매성별3</a></li>
+              <li><a href="javascript:void(0)">구매성별4</a></li>
+            </ul>
+          </div>
+          <!-- //카테고리 선택 -->
+        </div>
+      </div>
+    </div>
+    <!-- //카테고리 -->
+
+    <!-- 210415_최신상품순 리스트 팝업 추가 -->
+    <div id="odDatePop1" class="popup_box odDatePop">
+      <div class="lap">
+        <div class="popup_close">카테고리닫기</div>
+        <div class="popup_head sr-only">
+          <h2 class="">기간 선택 팝업</h2>
+        </div>
+        <div class="popup_con">
+          <div class="button_list clear">
+            <button type="button" class="on" onclick="fnGetEigenD002(this, 'gender');" data-id="" ><span>구매성별 전체</span></button>
+            <button type="button" onclick="fnGetEigenD002(this, 'gender');" data-id="A" ><span>남성</span></button>
+            <button type="button" onclick="fnGetEigenD002(this, 'gender');" data-id="B" ><span>여성</span></button>
+          </div>
+        </div>
+      </div>
+    </div>
+    <div id="odDatePop2" class="popup_box odDatePop">
+      <div class="lap">
+        <div class="popup_close">카테고리닫기</div>
+        <div class="popup_head sr-only">
+          <h2 class="">기간 선택 팝업</h2>
+        </div>
+        <div class="popup_con">
+          <div class="button_list clear">
+            <button type="button" class="on" onclick="fnGetEigenD002(this, 'age');" data-id="" ><span>구매연령 전체</span></button>
+            <button type="button" onclick="fnGetEigenD002(this, 'age');" data-id="10" ><span>10대</span></button>
+            <button type="button" onclick="fnGetEigenD002(this, 'age');" data-id="20" ><span>20대</span></button>
+            <button type="button" onclick="fnGetEigenD002(this, 'age');" data-id="30" ><span>30대</span></button>
+            <button type="button" onclick="fnGetEigenD002(this, 'age');" data-id="40" ><span>40대</span></button>
+            <button type="button" onclick="fnGetEigenD002(this, 'age');" data-id="50" ><span>50대 이상</span></button>
+          </div>
+        </div>
+      </div>
+    </div>
+  </main>
+
+  <form id="bestGoodsForm" name="bestGoodsForm">
+    <input type="hidden" name="pageNo" id="pageNo" value ="1"/>
+    <input type="hidden" name="pageSize" value ="50"/>
+    <input type="hidden" name="cateNo" value=""/>
+    <input type="hidden" name="sortGb"/>
+  </form>
+
+  <!-- 수동설정 + 추천솔루션 카운트 문제로 인해 인피티니스크롤 제거 협의 21-07-21 -->
 <!--	<script src="/ux/plugins/gaga/gaga.infinite.scrollSession.js"></script>-->
 <!--	<script src="/ux/plugins/jquery/jquery.history.min.js"></script>-->
 <!--	<script th:src="@{'/biz/goods.js?v=' + ${#calendars.format(#calendars.createNow(), 'yyyyMMddHHmmss')}}" src="/biz/goods.js"></script>-->
 
 
-	<script th:inline="javascript">
-		/*<![CDATA[*/
-		var bestCateList = [[${bestCateList}]];
-		$(document).ready(function(){
-			$(document).on('click','.sub_category .more_btn',function(){
-				$(this).toggleClass('on');
-				$('.sub_category .cate_wrap').toggleClass('on');
-				if($(this).hasClass('on')){
-					$(this).find('span').text('접기');
-				}else{
-					$(this).find('span').text('더보기');
-				}
-			});
-
-			//카테고리
-			function category(){
-				var categoryOpen=$(".open_categori .select_dress");
-				var categoryClose=$(".category_box .category_close");
-				var categoryPop=$(".category_box");
-
-				categoryOpen.on("click",function(){
-					categoryPop.show();
-					categoryPop.addClass("active");
-					$("body").css({"overflow":"hidden"});
-				});
-
-				categoryClose.on("click",function(){
-					categoryPop.hide();
-					$("body").css({"overflow":"visible"});
-				});
-			}
-			category();
-
-			// 210415_팝업관련 추가
-			//기간 선택 팝업
-			$(document).on("click", ".open_categori.sex", function(){
-				$('#odDatePop1').show().addClass("active");
-				$("body").css({"overflow":"hidden"});
-			});
-			$(document).on("click", ".open_categori.age", function(){
-				$('#odDatePop2').show().addClass("active");
-				$("body").css({"overflow":"hidden"});
-			});
-			//팝업_닫기
-			$('.popup_close').on("click",function(){
-				$('.popup_box').hide().removeClass('active');
-				$("body").css({"overflow":"visible"});
-			});
-
-			//210510_수정 : 토스트 팝업 버튼 on 클래스 제어.
-			$(document).on('click','.popup_box .button_list button',function(){
-				$(this).siblings('.button_list button').removeClass('on');
-				$(this).addClass('on');
-			})
-
-			//210510_추가 : 토스트 팝업 button 클릭 시 팝업 닫기.
-			$(document).on('click','.popup_box.odDatePop .button_list button',function(){
-				$(this).parents('.popup_box.odDatePop').hide().removeClass('active');
-				$("body").css({"overflow":"visible"});
-			})
-
-			$(document).on('click','.popup_box.odDatePop .button_list button',function(){
-				$(this).parents('.popup_box.odDatePop').hide().removeClass('active');
-				$("body").css({"overflow":"visible"});
-			})
-		});
-
-		var fnBestListSearch = function (obj, cateNo){
-			$.each($("#cateListArea").find('li').find('button'), function() {
-				$(this).removeClass();
-			});
-			if(gagajf.isNull(cateNo)){
-				$("#li0").find("button").addClass('active');
-			}else{
-				$("#li"+cateNo).find("button").addClass('active');
-			}
-
-			$("#bestGoodsForm input[name=cateNo]").val(cateNo);
-
-			// 카테고리별 실시간 베스트 상품 조회 getRealtimeViewBestGoodsList
-			fnRealtimeViewBestList(cateNo);
-
-			// TOP100 조회
-			fnBestTop100List();
-		}
-
-		var fnRealtimeViewBestList = function (cateNo){
-			if(gagajf.isNull(cateNo)){
-				cateNo = "";
-			}
-			var data = {cateNo : cateNo};
-			var html = '';
-
-			$.getJSON('/display/realtime/best/list' , data, function (result, status){
-				$("#itemViewArea").html('');
-				// console.log(result);
-				if(result.length > 0){
-					$.each(result, function (idx, item){
-						// 2021.08.30 이미지 null 처리
-						if (item.itemName != null) {
-							var imgUrl = '';
-	
-							html += '<div class="swiper-slide">\n';
-							html += '	<div class="item_prod">\n';
-							html += '		<div class="item_state">\n';
-							html += '			<a href="javascript:void(0);" class="itemLink" onclick="cfnGoToGoodsDetail(\''+item.itemId+'\')">\n';
-							html += '				<div class="itemPic">\n';
-							html += '				<img alt="BLACK-a" class=" vLHTC pd_img" src="' + item.imageUrl + '">\n';
-							html += '				</div>\n';
-							html += '				<div class="itemName">'+item.itemName+'</div>\n';
-							if(item.count < 10){
-								html += '				<div class="viewCount">10명 미만</div>\n';
-							}else{
-								html += '				<div class="viewCount">'+item.count.addComma()+'명 보는중</div>\n';
-							}
-							html += '			</a>\n';
-							html += '		</div>\n';
-							html += '	</div>\n';
-							html += '</div>\n';
-						}
-					});
-				}
-
-				$("#itemViewArea").append(html);
-				$("#researchBtn").attr("onclick","fnRealtimeViewBestList("+cateNo+");");
-				/* SLIDE - 지금많이 보고있어요 */
-				//210624_ 추가 : 슬라이드 속성 추가.
-				var dp_viewitem_slide = new Swiper('.view_item .swiper-container', {
-					slidesPerView: 'auto',
-					slidesPerView: 3,
-					spaceBetween: 8,
-					speed: 1000,
-					centerMode: true,
-					a11y: {
-						enabled: true,
-						notificationClass: 'swiper-notification',
-						prevSlideMessage: '이전 슬라이드',
-						nextSlideMessage: '다음 슬라이드',
-						firstSlideMessage: '첫번째 슬라이드 입니다',
-						lastSlideMessage: '마지막 슬라이드 입니다',
-						paginationBulletMessage: '슬라이드 {{index}}로 이동',
-					},
-					autoplay : {
-						delay : 3000,   // 시간 설정
-						disableOnInteraction: true,
-					},
-				});
-			});
-		}
-
-		var fnBestTop100List = function (){
-			gagajf.ajaxFormSubmit("/display/best/main/goods/list", document.bestGoodsForm,  fnCallbackBestTop100);
-		}
-
-		let bestCnt = 0;
-		let eigenBestCnt = 0;
-
-		var fnCallbackBestTop100 = function (result){
-			$("#prodArea").html('');
-			var tag = '';
-
-			bestCnt = result.dataList.length;
-
-			if(result.dataList.length > 0){
-				$.each(result.dataList, function (idx, item){
-					tag += '<div class="item_prod">\n';
-					tag += '	<div class="item_state">\n';
-					tag += '		<button type="button" class="itemLike"  onclick="wishlistDelete(this)" goodsCd="'+item.goodsCd+'" goodsNm="'+ item.goodsNm+'" ithrCd="" contentsLoc="IN10_01" planDtlSq="">관심상품 추가</button>\n';
-					tag += '		<a href="javascript:void(0);" class="itemLink" onclick="cfnGoToGoodsDetail(\''+item.goodsCd+'\', \''+item.colorCd+'\')">\n';
-					tag += '<div class="shape ';
-					if(idx==0){
-						tag += ' ranker';
-					}
-					tag += '"><span>'+(idx+1)+'</span></div>\n';
-					tag += '			<div class="itemPic">\n';
-					tag += '				<img alt="BLUE-a" class=" vLHTC pd_img" src="' + _uploadGoodsUrl + '/' + item.sysImgNm + '">\n';
-					tag += '			</div>\n';
-					tag += '			<p class="itemBrand">'+item.brandGroupNm+'</p>\n';
-					if (item.goodsTnm != null && item.goodsTnm != '') {
-						tag+='					<div class="itemComment">'+item.goodsTnm+'</div>\n';
-					}
-					tag += '			<div class="itemName">'+item.goodsFullNm+'</div>\n';
-					tag += '			<p class="itemPrice">';
-					if (item.currPrice != item.listPrice) {
-						tag += '						<span class="itemPrice_original">' + item.listPrice.addComma() + '</span>\n';
-					}
-					tag += item.currPrice.addComma();
-					if (item.currPrice != item.listPrice) {
-						tag+='						<span class=" itemPercent">'+ Math.round((item.listPrice - item.currPrice) / (item.listPrice * 1.0) * 100) +'%</span>\n';
-					}
-					tag += '			</p>\n';
-					tag += '			<div class="itemcolorchip">\n';
-					if(!gagajf.isNull(item.colorChips)){
-						var colorArr = item.colorChips.split(",");
-						var colorCd = '';
-						var rgbColor = '';
-						for(let i=0; i<colorArr.length; i++){
-							var colorInfo = colorArr[i].split(":");
-							colorCd = colorInfo[0];
-							rgbColor = colorInfo[1];
-							if(rgbColor=='#FFFFFF'){
-								tag += '	<span class="chip_color" style="background-color: '+rgbColor+';border:1px solid #aaa;" value="'+colorCd+'">'+colorCd+'</span>\n';
-							}else{
-								tag += '	<span class="chip_color" style="background-color: '+rgbColor+'" value="'+colorCd+'">'+colorCd+'</span>\n';
-							}
-						}
-					}
-					tag += '			</div>\n';
-					if(!gagajf.isNull(item.icon)){
-						var iconArr = item.icon.split(",");
-						var iconGb = '';
-						var iconNm = '';
-						tag += '	<p class="itemBadge">\n';
-						let arrCnt;
-						if(iconArr.length > 2){
-							arrCnt = 3;
-						}else{
-							arrCnt = iconArr.length;
-						}
-						for(let i=0; i<arrCnt; i++){
-							var iconInfo = iconArr[i].split(":");
-							iconGb = iconInfo[0];
-							iconNm = iconInfo[1];
-							tag += '	<span class="badge13" value="'+iconGb+'">'+iconNm+' </span>\n';
-						}
-						tag += '	</p>';
-					}
-					
-					tag += '		</a>\n';
-					tag += '	</div>\n';
-					tag += '</div>\n';
-				});
-
-				$("#prodArea").append(tag);
-			}
-
-			// 수동설정이 100미만이면 추천솔루션 데이터 추가 조회
-			if(bestCnt < 100){
-				eigenBestCnt = 100 - bestCnt;
-				fnGetEigenBestData(eigenBestCnt);
-			}
-		}
-
-		// 추천솔루션 데이터 추가 조회
-		var fnGetEigenBestData = function (cnt){
-			var eigenUrl = '';
-			var selectCateNo = $("#bestGoodsForm input[name=cateNo]").val();
-
-			if(gagajf.isNull(selectCateNo)){
-				/* cateNo 전체 일 때 */
-				eigenUrl = 'https://api.eigene.io/rec/m061?size='+cnt+'&cuid=1252aed4-78dc-46e8-b784-94ac42e86dd4' +"&rccode=mo_best_m61";
-			}else{
-				eigenUrl = 'https://api.eigene.io/rec/m060?size='+cnt+'&cuid=1252aed4-78dc-46e8-b784-94ac42e86dd4&incids='+selectCateNo +"&rccode=mo_best_m60";
-			}
-			var tag = '';
-
-			$.getJSON(eigenUrl, function (result, status){
-				if (status === 'success') {
-					if (!gagajf.isNull(result.results)) {
-						$.each(result.results, function (idx, item) {
-							tag += '<div class="item_prod">\n';
-							tag += '	<div class="item_state">\n';
-							tag += '		<button type="button" class="itemLike"  onclick="wishlistDelete(this)" goodsCd="'+item.product.itemId+'" goodsNm="'+ item.product.itemName+'" ithrCd="" contentsLoc="IN10_01" planDtlSq="">관심상품 추가</button>\n';
-							tag += '		<a href="javascript:void(0);" class="itemLink" onclick="cfnGoToGoodsDetail(\''+item.product.itemId+'\', \'\')">\n';
-							tag += '<div class="shape ';
-							if(cnt == 100 && idx==0){
-								tag += ' ranker';
-							}
-							tag += '"><span>'+(idx+1)+'</span></div>\n';
-							tag += '			<div class="itemPic">\n';
-							tag += '				<img alt="BLUE-a" class=" vLHTC pd_img" src="'+ item.product.itemImage +'">\n';
-							tag += '			</div>\n';
-							tag += '			<p class="itemBrand">'+item.product.brandName+'</p>\n';
-							tag += '			<div class="itemName">'+item.product.itemName+'</div>\n';
-							tag += '			<p class="itemPrice">';
-							if (item.product.originalPrice != item.product.salePrice) {
-								tag += '						<span class="itemPrice_original">' + item.product.originalPrice.addComma() + '</span>\n';
-							}
-							tag += item.product.salePrice.addComma();
-							if (item.product.originalPrice != item.product.salePrice) {
-								tag+='						<span class=" itemPercent">'+ Math.round((item.product.originalPrice - item.product.salePrice) / (item.product.originalPrice * 1.0) * 100) +'%</span>\n';
-							}
-							tag += '			</p>\n';
-							tag += '		</a>\n';
-							tag += '	</div>\n';
-							tag += '</div>\n';
-						});
-						$("#prodArea").append(tag);
-					}
-				}
-			});
-		}
-
-		// 구매 성별/연령 별 베스트 상품 추천
-		var fnGetEigenD002 = function (obj, key){
-			var gender = '';
-			var age = '';
-
-			if(key == 'gender'){
-				gender = $(obj).attr("data-id");
-				$("#odDatePop2").find(".popup_con .button_list").find("button").each(function (){
-					if($(this).hasClass("on")){
-						age = $(this).attr("data-id");
-					}
-				});
-			}else{
-				age = $(obj).attr("data-id");
-				$("#odDatePop1").find(".popup_con .button_list").find("button").each(function (){
-					if($(this).hasClass("on")){
-						gender = $(this).attr("data-id");
-					}
-				});
-			}
-
-			if(gagajf.isNull(gender) && gagajf.isNull(age)){
-				$("#prodArea").html('');
-				fnGetEigenBestData(100);
-			}else{
-				$("#prodArea").html('');
-				var eigenUrl = 'https://api.eigene.io/rec/d002?size=100&cuid=1252aed4-78dc-46e8-b784-94ac42e86dd4&gender='+gender+'&age='+age +"&rccode=mo_best_d2";
-				var tag = '';
-				$.getJSON(eigenUrl, function (result, status){
-					if (status === 'success') {
-						if (!gagajf.isNull(result.results)) {
-							$.each(result.results, function (idx, item) {
-								tag += '<div class="item_prod">\n';
-								tag += '	<div class="item_state">\n';
-								tag += '		<button type="button" class="itemLike"  onclick="wishlistDelete(this)" goodsCd="'+item.product.itemId+'" goodsNm="'+ item.product.itemName+'" ithrCd="" contentsLoc="IN10_01" planDtlSq="">관심상품 추가</button>\n';
-								tag += '		<a href="javascript:void(0);" class="itemLink" onclick="cfnGoToGoodsDetail(\''+item.product.itemId+'\', \'\')">\n';
-								tag += '<div class="shape ';
-								if(idx==0){
-									tag += ' ranker';
-								}
-								tag += '"><span>'+(idx+1)+'</span></div>\n';
-								tag += '			<div class="itemPic">\n';
-								tag += '				<img alt="BLUE-a" class=" vLHTC pd_img" src="'+ item.product.itemImage +'">\n';
-								tag += '			</div>\n';
-								tag += '			<p class="itemBrand">'+item.product.brandName+'</p>\n';
-								tag += '			<div class="itemName">'+item.product.itemName+'</div>\n';
-								tag += '			<p class="itemPrice">';
-								if (item.product.originalPrice != item.product.salePrice) {
-									tag += '						<span class="itemPrice_original">' + item.product.originalPrice.addComma() + '</span>\n';
-								}
-								tag += item.product.salePrice.addComma();
-								if (item.product.originalPrice != item.product.salePrice) {
-									tag+='						<span class=" itemPercent">'+ Math.round((item.product.originalPrice - item.product.salePrice) / (item.product.originalPrice * 1.0) * 100) +'%</span>\n';
-								}
-								tag += '			</p>\n';
-								tag += '		</a>\n';
-								tag += '	</div>\n';
-								tag += '</div>\n';
-							});
-							$("#prodArea").append(tag);
-						}
-					}
-				});
-			}
-		}
-
-		$(document).ready(function() {
-			fnBestListSearch();
-		});
-
-
-		/*]]>*/
-	</script>
+  <script th:inline="javascript">
+    /*<![CDATA[*/
+    var bestCateList = [[${bestCateList}]];
+    $(document).ready(function(){
+      $(document).on('click','.sub_category .more_btn',function(){
+        $(this).toggleClass('on');
+        $('.sub_category .cate_wrap').toggleClass('on');
+        if($(this).hasClass('on')){
+          $(this).find('span').text('접기');
+        }else{
+          $(this).find('span').text('더보기');
+        }
+      });
+
+      //카테고리
+      function category(){
+        var categoryOpen=$(".open_categori .select_dress");
+        var categoryClose=$(".category_box .category_close");
+        var categoryPop=$(".category_box");
+
+        categoryOpen.on("click",function(){
+          categoryPop.show();
+          categoryPop.addClass("active");
+          $("body").css({"overflow":"hidden"});
+        });
+
+        categoryClose.on("click",function(){
+          categoryPop.hide();
+          $("body").css({"overflow":"visible"});
+        });
+      }
+      category();
+
+      // 210415_팝업관련 추가
+      //기간 선택 팝업
+      $(document).on("click", ".open_categori.sex", function(){
+        $('#odDatePop1').show().addClass("active");
+        $("body").css({"overflow":"hidden"});
+      });
+      $(document).on("click", ".open_categori.age", function(){
+        $('#odDatePop2').show().addClass("active");
+        $("body").css({"overflow":"hidden"});
+      });
+      //팝업_닫기
+      $('.popup_close').on("click",function(){
+        $('.popup_box').hide().removeClass('active');
+        $("body").css({"overflow":"visible"});
+      });
+
+      //210510_수정 : 토스트 팝업 버튼 on 클래스 제어.
+      $(document).on('click','.popup_box .button_list button',function(){
+        $(this).siblings('.button_list button').removeClass('on');
+        $(this).addClass('on');
+      })
+
+      //210510_추가 : 토스트 팝업 button 클릭 시 팝업 닫기.
+      $(document).on('click','.popup_box.odDatePop .button_list button',function(){
+        $(this).parents('.popup_box.odDatePop').hide().removeClass('active');
+        $("body").css({"overflow":"visible"});
+      })
+
+      $(document).on('click','.popup_box.odDatePop .button_list button',function(){
+        $(this).parents('.popup_box.odDatePop').hide().removeClass('active');
+        $("body").css({"overflow":"visible"});
+      })
+    });
+
+    var fnBestListSearch = function (obj, cateNo){
+      $.each($("#cateListArea").find('li').find('button'), function() {
+        $(this).removeClass();
+      });
+      if(gagajf.isNull(cateNo)){
+        $("#li0").find("button").addClass('active');
+      }else{
+        $("#li"+cateNo).find("button").addClass('active');
+      }
+
+      $("#bestGoodsForm input[name=cateNo]").val(cateNo);
+
+      // 카테고리별 실시간 베스트 상품 조회 getRealtimeViewBestGoodsList
+      fnRealtimeViewBestList(cateNo);
+
+      // TOP100 조회
+      fnBestTop100List();
+    }
+
+    var fnRealtimeViewBestList = function (cateNo){
+      if(gagajf.isNull(cateNo)){
+        cateNo = "";
+      }
+      var data = {cateNo : cateNo};
+      var html = '';
+
+      $.getJSON('/display/realtime/best/list' , data, function (result, status){
+        $("#itemViewArea").html('');
+        // console.log(result);
+        if(result.length > 0){
+          $.each(result, function (idx, item){
+            // 2021.08.30 이미지 null 처리
+            if (item.itemName != null) {
+              var imgUrl = '';
+
+              html += '<div class="swiper-slide">\n';
+              html += '	<div class="item_prod">\n';
+              html += '		<div class="item_state">\n';
+              html += '			<a href="javascript:void(0);" class="itemLink" onclick="cfnGoToGoodsDetail(\''+item.itemId+'\',\'\',\'\',\'\',\'\',\'rts_mo_best&rtscode=mo_best\')">\n';
+              html += '				<div class="itemPic">\n';
+              html += '				<img alt="BLACK-a" class=" vLHTC pd_img" src="' + item.imageUrl + '">\n';
+              html += '				</div>\n';
+              html += '				<div class="itemName">'+item.itemName+'</div>\n';
+              if(item.count < 10){
+                html += '				<div class="viewCount">10명 미만</div>\n';
+              }else{
+                html += '				<div class="viewCount">'+item.count.addComma()+'명 보는중</div>\n';
+              }
+              html += '			</a>\n';
+              html += '		</div>\n';
+              html += '	</div>\n';
+              html += '</div>\n';
+            }
+          });
+        }
+
+        $("#itemViewArea").append(html);
+        $("#researchBtn").attr("onclick","fnRealtimeViewBestList("+cateNo+");");
+        /* SLIDE - 지금많이 보고있어요 */
+        //210624_ 추가 : 슬라이드 속성 추가.
+        var dp_viewitem_slide = new Swiper('.view_item .swiper-container', {
+          slidesPerView: 'auto',
+          slidesPerView: 3,
+          spaceBetween: 8,
+          speed: 1000,
+          centerMode: true,
+          a11y: {
+            enabled: true,
+            notificationClass: 'swiper-notification',
+            prevSlideMessage: '이전 슬라이드',
+            nextSlideMessage: '다음 슬라이드',
+            firstSlideMessage: '첫번째 슬라이드 입니다',
+            lastSlideMessage: '마지막 슬라이드 입니다',
+            paginationBulletMessage: '슬라이드 {{index}}로 이동',
+          },
+          autoplay : {
+            delay : 3000,   // 시간 설정
+            disableOnInteraction: true,
+          },
+        });
+      });
+    }
+
+    var fnBestTop100List = function (){
+      gagajf.ajaxFormSubmit("/display/best/main/goods/list", document.bestGoodsForm,  fnCallbackBestTop100);
+    }
+
+    let bestCnt = 0;
+    let eigenBestCnt = 0;
+
+    var fnCallbackBestTop100 = function (result){
+      $("#prodArea").html('');
+      var tag = '';
+
+      bestCnt = result.dataList.length;
+
+      if(result.dataList.length > 0){
+        $.each(result.dataList, function (idx, item){
+          tag += '<div class="item_prod">\n';
+          tag += '	<div class="item_state">\n';
+          tag += '		<button type="button" class="itemLike"  onclick="wishlistDelete(this)" goodsCd="'+item.goodsCd+'" goodsNm="'+ item.goodsNm+'" ithrCd="" contentsLoc="IN10_01" planDtlSq="">관심상품 추가</button>\n';
+          tag += '		<a href="javascript:void(0);" class="itemLink" onclick="cfnGoToGoodsDetail(\''+item.goodsCd+'\', \''+item.colorCd+'\')">\n';
+          tag += '<div class="shape ';
+          if(idx==0){
+            tag += ' ranker';
+          }
+          tag += '"><span>'+(idx+1)+'</span></div>\n';
+          tag += '			<div class="itemPic">\n';
+          tag += '				<img alt="BLUE-a" class=" vLHTC pd_img" src="' + _uploadGoodsUrl + '/' + item.sysImgNm + '">\n';
+          tag += '			</div>\n';
+          tag += '			<p class="itemBrand">'+item.brandGroupNm+'</p>\n';
+          if (item.goodsTnm != null && item.goodsTnm != '') {
+            tag+='					<div class="itemComment">'+item.goodsTnm+'</div>\n';
+          }
+          tag += '			<div class="itemName">'+item.goodsFullNm+'</div>\n';
+          tag += '			<p class="itemPrice">';
+          if (item.currPrice != item.listPrice) {
+            tag += '						<span class="itemPrice_original">' + item.listPrice.addComma() + '</span>\n';
+          }
+          tag += item.currPrice.addComma();
+          if (item.currPrice != item.listPrice) {
+            tag+='						<span class=" itemPercent">'+ Math.round((item.listPrice - item.currPrice) / (item.listPrice * 1.0) * 100) +'%</span>\n';
+          }
+          tag += '			</p>\n';
+          tag += '			<div class="itemcolorchip">\n';
+          if(!gagajf.isNull(item.colorChips)){
+            var colorArr = item.colorChips.split(",");
+            var colorCd = '';
+            var rgbColor = '';
+            for(let i=0; i<colorArr.length; i++){
+              var colorInfo = colorArr[i].split(":");
+              colorCd = colorInfo[0];
+              rgbColor = colorInfo[1];
+              if(rgbColor=='#FFFFFF'){
+                tag += '	<span class="chip_color" style="background-color: '+rgbColor+';border:1px solid #aaa;" value="'+colorCd+'">'+colorCd+'</span>\n';
+              }else{
+                tag += '	<span class="chip_color" style="background-color: '+rgbColor+'" value="'+colorCd+'">'+colorCd+'</span>\n';
+              }
+            }
+          }
+          tag += '			</div>\n';
+          if(!gagajf.isNull(item.icon)){
+            var iconArr = item.icon.split(",");
+            var iconGb = '';
+            var iconNm = '';
+            tag += '	<p class="itemBadge">\n';
+            let arrCnt;
+            if(iconArr.length > 2){
+              arrCnt = 3;
+            }else{
+              arrCnt = iconArr.length;
+            }
+            for(let i=0; i<arrCnt; i++){
+              var iconInfo = iconArr[i].split(":");
+              iconGb = iconInfo[0];
+              iconNm = iconInfo[1];
+              tag += '	<span class="badge13" value="'+iconGb+'">'+iconNm+' </span>\n';
+            }
+            tag += '	</p>';
+          }
+
+          tag += '		</a>\n';
+          tag += '	</div>\n';
+          tag += '</div>\n';
+        });
+
+        $("#prodArea").append(tag);
+      }
+
+      // 수동설정이 100미만이면 추천솔루션 데이터 추가 조회
+      if(bestCnt < 100){
+        eigenBestCnt = 100 - bestCnt;
+        fnGetEigenBestData(eigenBestCnt);
+      }
+    }
+
+    // 추천솔루션 데이터 추가 조회
+    var fnGetEigenBestData = function (cnt){
+      var eigenUrl = '';
+      var selectCateNo = $("#bestGoodsForm input[name=cateNo]").val();
+      var rccode = "";
+      if(gagajf.isNull(selectCateNo)){
+        /* cateNo 전체 일 때 */
+        rccode = "mo_best_m61";
+        eigenUrl = 'https://api.eigene.io/rec/m061?size='+cnt+'&cuid=1252aed4-78dc-46e8-b784-94ac42e86dd4' +"&rccode=mo_best_m61";
+      }else{
+    	  rccode = "mo_best_m60";
+        eigenUrl = 'https://api.eigene.io/rec/m060?size='+cnt+'&cuid=1252aed4-78dc-46e8-b784-94ac42e86dd4&incids='+selectCateNo +"&rccode=mo_best_m60";
+      }
+      var tag = '';
+	  
+      $.getJSON(eigenUrl, function (result, status){
+        if (status === 'success') {
+          if (!gagajf.isNull(result.results)) {
+            $.each(result.results, function (idx, item) {
+              tag += '<div class="item_prod">\n';
+              tag += '	<div class="item_state">\n';
+              tag += '		<button type="button" class="itemLike"  onclick="wishlistDelete(this)" goodsCd="'+item.product.itemId+'" goodsNm="'+ item.product.itemName+'" ithrCd="" contentsLoc="IN10_01" planDtlSq="">관심상품 추가</button>\n';
+              tag += '		<a href="javascript:void(0);" class="itemLink" onclick="cfnGoToGoodsDetail(\''+item.product.itemId+'\', \'\', \'\', \'\', \'\', \''+rccode+'\')">\n';
+              tag += '<div class="shape ';
+              if(cnt == 100 && idx==0){
+                tag += ' ranker';
+              }
+              tag += '"><span>'+(idx+1)+'</span></div>\n';
+              tag += '			<div class="itemPic">\n';
+              tag += '				<img alt="BLUE-a" class=" vLHTC pd_img" src="'+ item.product.itemImage +'">\n';
+              tag += '			</div>\n';
+              tag += '			<p class="itemBrand">'+item.product.brandName+'</p>\n';
+              tag += '			<div class="itemName">'+item.product.itemName+'</div>\n';
+              tag += '			<p class="itemPrice">';
+              if (item.product.originalPrice != item.product.salePrice) {
+                tag += '						<span class="itemPrice_original">' + item.product.originalPrice.addComma() + '</span>\n';
+              }
+              tag += item.product.salePrice.addComma();
+              if (item.product.originalPrice != item.product.salePrice) {
+                tag+='						<span class=" itemPercent">'+ Math.round((item.product.originalPrice - item.product.salePrice) / (item.product.originalPrice * 1.0) * 100) +'%</span>\n';
+              }
+              tag += '			</p>\n';
+              tag += '		</a>\n';
+              tag += '	</div>\n';
+              tag += '</div>\n';
+            });
+            $("#prodArea").append(tag);
+          }
+        }
+      });
+    }
+
+    // 구매 성별/연령 별 베스트 상품 추천
+    var fnGetEigenD002 = function (obj, key){
+      var gender = '';
+      var age = '';
+
+      if(key == 'gender'){
+        gender = $(obj).attr("data-id");
+        $("#odDatePop2").find(".popup_con .button_list").find("button").each(function (){
+          if($(this).hasClass("on")){
+            age = $(this).attr("data-id");
+          }
+        });
+      }else{
+        age = $(obj).attr("data-id");
+        $("#odDatePop1").find(".popup_con .button_list").find("button").each(function (){
+          if($(this).hasClass("on")){
+            gender = $(this).attr("data-id");
+          }
+        });
+      }
+
+      if(gagajf.isNull(gender) && gagajf.isNull(age)){
+        $("#prodArea").html('');
+        fnGetEigenBestData(100);
+      }else{
+        $("#prodArea").html('');
+        var eigenUrl = 'https://api.eigene.io/rec/d002?size=100&cuid=1252aed4-78dc-46e8-b784-94ac42e86dd4&gender='+gender+'&age='+age +"&rccode=mo_best_d2";
+        var tag = '';
+        $.getJSON(eigenUrl, function (result, status){
+          if (status === 'success') {
+            if (!gagajf.isNull(result.results)) {
+              $.each(result.results, function (idx, item) {
+                tag += '<div class="item_prod">\n';
+                tag += '	<div class="item_state">\n';
+                tag += '		<button type="button" class="itemLike"  onclick="wishlistDelete(this)" goodsCd="'+item.product.itemId+'" goodsNm="'+ item.product.itemName+'" ithrCd="" contentsLoc="IN10_01" planDtlSq="">관심상품 추가</button>\n';
+                tag += '		<a href="javascript:void(0);" class="itemLink" onclick="cfnGoToGoodsDetail(\''+item.product.itemId+'\', \'\', \'\', \'\', \'\', \'mo_best_d2\')">\n';
+                tag += '<div class="shape ';
+                if(idx==0){
+                  tag += ' ranker';
+                }
+                tag += '"><span>'+(idx+1)+'</span></div>\n';
+                tag += '			<div class="itemPic">\n';
+                tag += '				<img alt="BLUE-a" class=" vLHTC pd_img" src="'+ item.product.itemImage +'">\n';
+                tag += '			</div>\n';
+                tag += '			<p class="itemBrand">'+item.product.brandName+'</p>\n';
+                tag += '			<div class="itemName">'+item.product.itemName+'</div>\n';
+                tag += '			<p class="itemPrice">';
+                if (item.product.originalPrice != item.product.salePrice) {
+                  tag += '						<span class="itemPrice_original">' + item.product.originalPrice.addComma() + '</span>\n';
+                }
+                tag += item.product.salePrice.addComma();
+                if (item.product.originalPrice != item.product.salePrice) {
+                  tag+='						<span class=" itemPercent">'+ Math.round((item.product.originalPrice - item.product.salePrice) / (item.product.originalPrice * 1.0) * 100) +'%</span>\n';
+                }
+                tag += '			</p>\n';
+                tag += '		</a>\n';
+                tag += '	</div>\n';
+                tag += '</div>\n';
+              });
+              $("#prodArea").append(tag);
+            }
+          }
+        });
+      }
+    }
+
+    $(document).ready(function() {
+      fnBestListSearch();
+    });
+
+
+    /*]]>*/
+  </script>
 
 </th:block>
 

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

@@ -175,7 +175,7 @@
 												<div class="item_prod">
 													<div class="item_state">
 														<button type="button" class="itemLike" th:classappend="${goodsData.likeIt == 'likeit'}? 'likeit' : ''"  onclick="cfnPutWishList(this);" th:attr="goodsCd=${goodsData.goodsCd}, goodsNm=${goodsData.goodsFullNm}, ithrCd='', contentsLoc='SBMM008', planDtlSq=''">관심상품 추가</button>
-														<a href="javascript:void(0);" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${goodsData.goodsCd}]], '', '', 'SBMM008');">
+														<a href="javascript:void(0);" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${goodsData.goodsCd}]], '', '', 'SBMM008', '', 'mo_brand_m61');">
 															<div class="shape" th:classappend="${goodsStat.count==1}?'ranker'"><span th:text="${goodsStat.index+1}"></span></div>
 															<div class="itemPic">
 																<th:block th:each="option,idx:${goodsData.videos}" th:with="videoArr=${#strings.arraySplit(idx.current.replace(',',':'),':')}">
@@ -265,7 +265,7 @@
 												<div class="item_prod">
 													<div class="item_state">
 														<button type="button" class="itemLike" th:classappend="${goodsData.likeIt == 'likeit'}? 'likeit' : ''"  onclick="cfnPutWishList(this);" th:attr="goodsCd=${goodsData.goodsCd}, goodsNm=${goodsData.goodsFullNm}, ithrCd='', contentsLoc=${contentsLoc}, planDtlSq=''">관심상품 추가</button>
-														<a href="javascript:void(0);" class="itemLink"  th:onclick="cfnGoToGoodsDetail([[${goodsData.goodsCd}]], '', '', [[${contentsLoc}]]);">
+														<a href="javascript:void(0);" class="itemLink"  th:onclick="cfnGoToGoodsDetail([[${goodsData.goodsCd}]], '', '', [[${contentsLoc}]], '', 'mo_brand_m62');">
 															<div class="itemPic">
 																<th:block th:each="option,idx:${goodsData.videos}" th:with="videoArr=${#strings.arraySplit(idx.current.replace(',',':'),':')}">
 																	<iframe th:if="${videoArr[0]=='Y'}" id="pdThumbVideo" class="pd_mov" th:src="${'https://www.youtube.com/embed/'+videoArr[1]+'?autoplay=1&mute=1'}"></iframe>

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

@@ -961,7 +961,7 @@
 					html += '	<div class="item_prod">\n';
 					html += '		<div class="item_state">\n';
 					html += '			<button type="button" class="itemLike">관심상품 추가</button>\n';
-					html += '			<a href="'+item.product.itemUrl+'" class="itemLink">\n';
+					html += '			<a href="'+item.product.itemUrl+'&rccode=rts_mo_search&rtscode=mo_search" class="itemLink">\n';
 					html += '				<div class="itemPic">\n';
 					html += '					<img class="vLHTC pd_img" src="'+item.product.itemImage+'" alt="">\n';
 					html += '				</div>\n';

+ 2 - 2
src/main/webapp/WEB-INF/views/mob/display/BrandSearchLayerMob.html

@@ -78,7 +78,7 @@
 										<div class="swiper-slide">
 											<div class="item_prod">
 												<button type="button" class="itemLike" th:classappend="${item.wishCnt > 0}? 'likeit' : ''" onclick="cfnMoPutWishList(this);" th:attr="goodsCd=${item.itemId}">관심상품 추가</button>
-												<a th:href="${item.itemUrl}">
+												<a th:href="${item.itemUrl} + '&rccode=rts_mo_search&rtscode=mo_search'">
 													<img th:src="${item.imageUrl}" alt="">
 													<div class="s-text">
 														<div class="itemName" th:text="${item.itemName}"></div>
@@ -229,7 +229,7 @@
 
 				cfnGoToPage(actionUrl);
 			}
-		});
+		}, true);
 	});
 
 	// 검색어 찾기

+ 2 - 2
src/main/webapp/WEB-INF/views/mob/display/MallMainFormMob.html

@@ -174,7 +174,7 @@
 													<div class="item_prod">
 														<div class="item_state">
 															<button type="button" class="itemLike" th:classappend="${bestItemData.likeIt == 'likeit'}? 'likeit' : ''"  onclick="cfnPutWishList(this);" th:attr="goodsCd=${bestItemData.goodsCd}, goodsNm=${bestItemData.goodsFullNm}, ithrCd='', contentsLoc='SMM004', planDtlSq=''">관심상품 추가</button>
-															<a href="javascript:void(0)" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${bestItemData.goodsCd}]], '', '', 'SMM004');">
+															<a href="javascript:void(0)" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${bestItemData.goodsCd}]], '', '', 'SMM004', '', 'mo_main_m60');">
 																<div class="shape" th:classappend="${bestItemStat.count==1}?'ranker'">
 																	<span><em class="number" th:text="${bestItemStat.count}">1</em></span>
 																</div>
@@ -712,7 +712,7 @@
 										itemTag += '						<div class="swiper-slide">\n';
 										itemTag += '							<div class="item_prod">\n';
 										itemTag += '								<div class="item_state">\n';
-										itemTag += '									<a href="'+keyItem.product.itemUrl+'" class="itemLink">\n';
+										itemTag += '									<a href="'+keyItem.product.itemUrl+'&rccode=mo_main_p75" class="itemLink">\n';
 										itemTag += '										<div class="itemPic">\n';
 										itemTag += '											<img alt="" class=" pd_img" src="'+keyItem.product.itemImage+'">\n';
 										itemTag += '										</div>\n';

+ 2 - 2
src/main/webapp/WEB-INF/views/mob/display/OutletMainFormMob.html

@@ -66,7 +66,7 @@
 										<div class="item_prod">
 											<div class="item_state">
 												<button type="button" class="itemLike" th:classappend="${item.likeIt == 'likeit'}? 'likeit' : ''"  onclick="cfnPutWishList(this);" th:attr="goodsCd=${item.goodsCd}, goodsNm=${item.goodsFullNm}, ithrCd='', contentsLoc='SOM002', planDtlSq=''">관심상품 추가</button>
-												<a href="javascript:void(0);" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${item.goodsCd}]], '', '', 'SOM002');">
+												<a href="javascript:void(0);" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${item.goodsCd}]], '', '', 'SOM002', '', 'mo_outlet_m65');">
 													<div class="itemPic">
 														<th:block th:each="option,idx:${item.videos}" th:with="videoArr=${#strings.arraySplit(idx.current,':')}">
 															<iframe th:if="${videoArr[0]=='Y'}" id="pdThumbVideo" class="pd_mov" th:src="${'https://www.youtube.com/embed/'+videoArr[1]+'?autoplay=1&mute=1'}"></iframe>
@@ -105,7 +105,7 @@
 									<div class="item_prod" th:each="item, status : ${bestGoodsList}">
 										<div class="item_state">
 											<button type="button" class="itemLike" th:classappend="${item.likeIt == 'likeit'}? 'likeit' : ''"  onclick="cfnPutWishList(this);" th:attr="goodsCd=${item.goodsCd}, goodsNm=${item.goodsFullNm}, ithrCd='', contentsLoc='SOM003', planDtlSq=''">관심상품 추가</button>
-											<a href="javascript:void(0);" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${item.goodsCd}]], '', '', 'SOM003');">
+											<a href="javascript:void(0);" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${item.goodsCd}]], '', '', 'SOM003', '', 'mo_outlet_m64');">
 												<div class="shape" th:classappend="${status.count==1}?'ranker'"><span th:text="${status.index+1}">1</span></div>
 												<div class="itemPic">
 													<th:block th:each="option,idx:${item.videos}" th:with="videoArr=${#strings.arraySplit(idx.current,':')}">

+ 1 - 1
src/main/webapp/WEB-INF/views/mob/display/SearchGoodsListFormMob.html

@@ -1038,7 +1038,7 @@
 					html += '	<div class="item_prod">\n';
 					html += '		<div class="item_state">\n';
 					html += '			<button type="button" class="itemLike">관심상품 추가</button>\n';
-					html += '			<a href="'+item.product.itemUrl+'" class="itemLink">\n';
+					html += '			<a href="'+item.product.itemUrl+'&rccode=mo_search_s3" class="itemLink">\n';
 					html += '				<div class="itemPic">\n';
 					html += '					<img class="vLHTC pd_img" src="'+item.product.itemImage+'" alt="">\n';
 					html += '				</div>\n';

+ 2 - 2
src/main/webapp/WEB-INF/views/mob/display/SearchLayerMob.html

@@ -78,7 +78,7 @@
 										<div class="swiper-slide">
 											<div class="item_prod">
 												<button type="button" class="itemLike" th:classappend="${item.wishCnt > 0}? 'likeit' : ''" onclick="cfnMoPutWishList(this);" th:attr="goodsCd=${item.itemId}">관심상품 추가</button>
-												<a th:href="${item.itemUrl}">
+												<a th:href="${item.itemUrl} + '&rccode=rts_mo_search&rtscode=mo_search'">
 													<img th:src="${item.imageUrl}" alt="">
 													<div class="s-text">
 														<div class="itemName" th:text="${item.itemName}"></div>
@@ -287,7 +287,7 @@
 				let actionUrl = _PAGE_SEARCH_GOODS + '?keyword=' + keyword + '&brandGroupNo=' + $('#searchMainForm input[name=brandGroupNo]').val();
 				cfnGoToPage(actionUrl);
 			}
-		});
+		}, true);
 	});
 
 	// 검색어 찾기

+ 1 - 1
src/main/webapp/WEB-INF/views/mob/goods/GoodsDetailFormMob.html

@@ -333,7 +333,7 @@
 								<div class="item_prod">
 									<div class="item_state">
 										<button type="button" class="itemLike enp_mobon_wish" th:classappend="${goodsInfo.wishYn == 'Y'}? 'likeit active' : ''"  onclick="cfnPutWishList(this);" th:attr="goodsCd=${goodsInfo.goodsCd}, goodsNm=${goodsInfo.goodsFullNm}, ithrCd='IN15_02', contentsLoc='', planDtlSq=''">관심상품 추가</button>
-										<a href="javascript:void(0);" th:onclick="cfnGoToGoodsDetail([[${goodsInfo.goodsCd}]], '','IN15_02','','','pc_detail');" class="itemLink" >
+										<a href="javascript:void(0);" th:onclick="cfnGoToGoodsDetail([[${goodsInfo.goodsCd}]], '','IN15_02','','','');" class="itemLink" >
 											<div class="itemPic">
 												<img alt="" class="vLHTC pd_img" th:src="${imgGoodsUrl+'/'+goodsInfo.sysImgNm+'?RS=156'}" th:onerror="'this.src=\''+@{${uxImgUrl}+ '/images/pc/thumb/bg_item_none.png'}+'\';'">
 											</div>

+ 2 - 2
src/main/webapp/WEB-INF/views/mob/goods/GoodsOtherFormMob.html

@@ -20,14 +20,14 @@
 	<th:block th:if="${params.goodsOtherGb =='recommend'}" th:text="${params.brandGroupNm +' 추천상품'}"></th:block>
 	<th:block th:if="${params.goodsOtherGb =='like'}" th:text="${'이 상품과 비슷한 상품'}"></th:block>
 	</h3>
-	<div class="area_slider">
+	<div class="area_slider" th:with="t_rccode='mo_detail_'+${rccode}">
 		<div class="swiper-container">
 			<div class="swiper-wrapper">
 				<div class="swiper-slide" th:each="result, status : ${goodsList}">
 					<div class="item_prod">
 						<div class="item_state">
 							<button type="button" class="itemLike" th:classappend="${result.product.itemId == 'Y'}? 'likeit active' : ''"  onclick="cfnPutWishList(this);" th:attr="goodsCd=${result.product.itemId}, goodsNm=${result.product.itemName}, ithrCd=${params.ithrCd}, contentsLoc='', planDtlSq=''">관심상품 추가</button>
-							<a href="javascript:void(0);" th:onclick="cfnGoToGoodsDetail([[${result.product.itemId}]], '',[[${params.ithrCd}]],'','','pc_detail');" class="itemLink" >
+							<a href="javascript:void(0);" th:onclick="cfnGoToGoodsDetail([[${result.product.itemId}]], '',[[${params.ithrCd}]],'','',[[${t_rccode}]]);" class="itemLink" >
 								<div class="itemPic">
 									<img alt="" class="vLHTC pd_img" th:src="${result.product.itemImage+'?RS=156'}" th:onerror="'this.src=\''+@{${uxImgUrl}+ '/images/pc/thumb/bg_item_none.png'}+'\';'">
 								</div>

+ 2 - 2
src/main/webapp/WEB-INF/views/web/cart/CartListFormWeb.html

@@ -204,7 +204,7 @@
 										<div class="item_prod">
 											<div class="item_state">
 												<button type="button" class="itemLike" onclick="cfnPutWishList(this);" th:attr="goodsCd=${cart.product.itemId}, goodsNm=${cart.product.itemName}, ithrCd='IN18_01', contentsLoc='', planDtlSq=''">관심상품 추가</button>
-												<a th:href="${cart.product.itemUrl}" class="itemLink">
+												<a th:href="${cart.product.itemUrl} + '&rccode=pc_cart_a37'" class="itemLink">
 													<div class="itemPic">
 														<img alt="BLACK-a" class=" vLHTC pd_img" th:src="${cart.product.itemImage}" src="">
 													</div>
@@ -246,7 +246,7 @@
 									<div class="item_prod">
 										<div class="item_state">
 											<button type="button" class="itemLike" th:classappend="${cart.wishCnt > 0} ? 'likeit active'" onclick="cfnPutWishList(this);" th:attr="goodsCd=${cart.itemId}, goodsNm=${cart.itemName}, ithrCd='IN18_01', contentsLoc='', planDtlSq=''">관심상품 추가</button>
-											<a th:href="${cart.itemUrl}" class="itemLink">
+											<a th:href="${cart.itemUrl} + '&rccode=rts_pc_cart&rtscode=pc_cart'" class="itemLink">
 												<div class="itemPic">
 													<img alt="BLACK-a" class=" vLHTC pd_img" th:src="${cart.imageUrl}" src="">
 												</div>

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

@@ -654,7 +654,7 @@
 						let item = itemList[i];
 						quickShoppingBagHtml += '	<div class="item_prod">';
 						quickShoppingBagHtml += '		<div class="item_state">';
-						quickShoppingBagHtml += '			<a href="' + item.itemUrl + '" class="itemLink">';
+						quickShoppingBagHtml += '			<a href="' + item.itemUrl + '&rccode=rts_pc_main&rtscode=pc_main" class="itemLink">';
 						quickShoppingBagHtml += '				<div class="itemPic">';
 						quickShoppingBagHtml += '					<img alt="BLACK-a" class="vLHTC pd_img" src="' + item.imageUrl + '"/>';
 						quickShoppingBagHtml += '				</div>';

+ 6 - 4
src/main/webapp/WEB-INF/views/web/display/BestMainFormWeb.html

@@ -194,7 +194,7 @@
 						html += '	<div class="item_prod">\n';
 						html += '		<div class="item_state">\n';
 						html += '		<button type="button" class="itemLike" onclick="cfnPutWishList(this)" goodsCd="'+item.itemId+'" goodsNm="'+ item.itemName+'" ithrCd="" contentsLoc="IN10_01" planDtlSq="">관심상품 추가</button>\n';
-						html += '		<a href="javascript:void(0);" class="itemLink" onclick="cfnGoToGoodsDetail(\''+item.itemId+'\',\'\',\'IN10_01\')">\n';
+						html += '		<a href="javascript:void(0);" class="itemLink" onclick="cfnGoToGoodsDetail(\''+item.itemId+'\',\'\',\'IN10_01\',\'\',\'\',\'rts_pc_best&rtscode=pc_best\')">\n';
 						html += '				<div class="itemPic">\n';
 						html += '					<img alt="" class="vLHTC pd_img" src="' + item.imageUrl + '">\n';
 						html += '				</div>\n';
@@ -323,11 +323,13 @@
 	var fnGetEigenBestData = function (cnt){
 		var eigenUrl = '';
 		var selectCateNo = $("#bestGoodsForm input[name=cateNo]").val();
-
+		var rccode = "";
 		if(gagajf.isNull(selectCateNo)){
 			/* cateNo 전체 일 때 */
+			rccode = "pc_best_m61";
 			eigenUrl = 'https://api.eigene.io/rec/m061?size='+cnt+'&cuid=1252aed4-78dc-46e8-b784-94ac42e86dd4' +"&rccode=pc_best_m61";
 		}else{
+			rccode = "pc_best_m60";
 			eigenUrl = 'https://api.eigene.io/rec/m060?size='+cnt+'&cuid=1252aed4-78dc-46e8-b784-94ac42e86dd4&incids='+selectCateNo +"&rccode=pc_best_m60";
 		}
 		var tag = '';
@@ -338,7 +340,7 @@
 						tag += '<div class="item_prod">\n';
 						tag += '	<div class="item_state">\n';
 						tag += '		<button type="button" class="itemLike" onclick="wishlistDelete(this)" goodsCd="'+item.product.itemId+'" goodsNm="'+ item.product.itemName+'" ithrCd="" contentsLoc="IN10_01" planDtlSq="">관심상품 추가</button>\n';
-						tag += '		<a href="javascript:void(0);" class="itemLink" onclick="cfnGoToGoodsDetail(\''+item.product.itemId+'\', \'\',\'IN10_01\')">\n';
+						tag += '		<a href="javascript:void(0);" class="itemLink" onclick="cfnGoToGoodsDetail(\''+item.product.itemId+'\', \'\',\'IN10_01\', \'\', \'\',\''+rccode+'\')">\n';
 						tag += '<div class="shape ';
 						if(cnt == 100 && idx==0){
 							tag += ' ranker';
@@ -400,7 +402,7 @@
 							tag += '<div class="item_prod">\n';
 							tag += '	<div class="item_state">\n';
 							tag += '		<button type="button" class="itemLike" onclick="wishlistDelete(this)" goodsCd="'+item.product.itemId+'" goodsNm="'+ item.product.itemName+'" ithrCd="" contentsLoc="IN10_01" planDtlSq="">관심상품 추가</button>\n';
-							tag += '		<a href="javascript:void(0);" class="itemLink" onclick="cfnGoToGoodsDetail(\''+item.product.itemId+'\', \'\',\'IN10_01\')">\n';
+							tag += '		<a href="javascript:void(0);" class="itemLink" onclick="cfnGoToGoodsDetail(\''+item.product.itemId+'\', \'\',\'IN10_01\', \'\', \'\',\'pc_best_d2\')">\n';
 							tag += '<div class="shape ';
 							if(idx==0){
 								tag += ' ranker';

+ 2 - 2
src/main/webapp/WEB-INF/views/web/display/BrandMainFormWeb.html

@@ -191,7 +191,7 @@
 											<div class="item_prod sUiXc">
 												<div class="item_state">
 													<button type="button" class="itemLike" th:classappend="${goodsData.likeIt == 'likeit'}? 'likeit' : ''"  onclick="cfnPutWishList(this);" th:attr="goodsCd=${goodsData.goodsCd}, goodsNm=${goodsData.goodsFullNm}, ithrCd='', contentsLoc='SBM008', planDtlSq=''">관심상품 추가</button>
-													<a href="javascript:void(0);" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${goodsData.goodsCd}]], '', '', 'SBM008');">
+													<a href="javascript:void(0);" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${goodsData.goodsCd}]], '', '', 'SBM008', '', 'pc_brand_m61');">
 														<div class="shape" th:classappend="${goodsStat.count==1}?'ranker'"><span th:text="${goodsStat.index+1}"></span></div>
 														<div class="itemPic">
 															<th:block th:each="option,idx:${goodsData.videos}" th:with="videoArr=${#strings.arraySplit(idx.current.replace(',',':'),':')}">
@@ -275,7 +275,7 @@
 										<div class="item_prod sUiXc">
 											<div class="item_state">
 												<button type="button" class="itemLike" th:classappend="${goodsData.likeIt == 'likeit'}? 'likeit' : ''"  onclick="cfnPutWishList(this);" th:attr="goodsCd=${goodsData.goodsCd}, goodsNm=${goodsData.goodsFullNm}, ithrCd='', contentsLoc=${contentsLoc}, planDtlSq=''">관심상품 추가</button>
-												<a href="javascript:void(0);" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${goodsData.goodsCd}]], '', '', 'SBM009');">
+												<a href="javascript:void(0);" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${goodsData.goodsCd}]], '', '', 'SBM009', '', 'pc_brand_m62');">
 													<div class="itemPic">
 														<th:block th:each="option,idx:${goodsData.videos}" th:with="videoArr=${#strings.arraySplit(idx.current.replace(',',':'),':')}">
 															<iframe th:if="${videoArr[0]=='Y'}" id="pdThumbVideo" class="pd_mov" th:src="${'https://www.youtube.com/embed/'+videoArr[1]+'?autoplay=1&mute=1'}"></iframe>

+ 1 - 1
src/main/webapp/WEB-INF/views/web/display/BrandSearchGoodsListFormWeb.html

@@ -920,7 +920,7 @@
 						html += '<div class="item_prod">\n';
 						html += '	<div class="item_state">\n';
 						html += '		<button type="button" class="itemLike">관심상품 추가</button>\n';
-						html += '		<a href="'+item.product.itemUrl+'" class="itemLink">\n';
+						html += '		<a href="'+item.product.itemUrl+'&rccode=rts_pc_search&rtscode=pc_search" class="itemLink">\n';
 						html += '			<div class="itemPic">\n';
 						html += '				<img alt="" class="vLHTC pd_img" src="'+item.product.itemImage+'">\n';
 						html += '			</div>\n';

+ 2 - 2
src/main/webapp/WEB-INF/views/web/display/BrandSearchLayerWeb.html

@@ -61,7 +61,7 @@
 								<div class="swiper-slide">
 									<div class="item_prod">
 										<div class="item_state">
-											<a th:href="${item.itemUrl}" class="itemLink">
+											<a th:href="${item.itemUrl} + '&rccode=rts_pc_search&rtscode=pc_search'" class="itemLink">
 												<div class="itemPic">
 													<img alt="" class="vLHTC pd_img" th:src="${item.imageUrl}">
 												</div>
@@ -194,7 +194,7 @@
 				let actionUrl = _PAGE_BRAND_SEARCH_GOODS + '?keyword=' + keyword + '&brandGroupNo=' + $('#brandSearchMainForm input[name=brandGroupNo]').val();
 				cfnGoToPage(actionUrl);
 			}
-		});
+		}, true);
 	});
 
 	var submain_slide;

+ 16 - 18
src/main/webapp/WEB-INF/views/web/display/MallMainFormWeb.html

@@ -154,9 +154,7 @@
 								<input type="hidden" name="title" th:value="${mainLayoutData.contentsTitle}">
 							</p>
 <!--						<th:block th:each="ContentsData, ContentsStat : ${mainLayoutData.ContentsList}">-->
-							<!-- 2021.08.30 card007 메인 잇 아이템 전체보기 주석처리 추후 주석 제거 필요 -->
-<!--							<a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_BEST_MAIN);"><span>전체보기</span></a>-->
-							<!-- //2021.08.30 card007 메인 잇 아이템 전체보기 주석처리 추후 주석 제거 필요 -->
+							<a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_BEST_MAIN);"><span>전체보기</span></a>
 <!--						</th:block>-->
 						</div>
 						<div class="cont_body">
@@ -175,7 +173,7 @@
 												<div class=" item_prod sUiXc "> <!-- item_prod ranker d_detail -->
 													<div class="item_state"> <!-- item_state AD soldout -->
 														<button type="button" class="itemLike" th:classappend="${bestItemData.likeIt == 'likeit'}? 'likeit' : ''"  onclick="cfnPutWishList(this);" th:attr="goodsCd=${bestItemData.goodsCd}, goodsNm=${bestItemData.goodsFullNm}, ithrCd='', contentsLoc='SMM004', planDtlSq=''">관심상품 추가</button>
-														<a href="javascript:void(0);" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${bestItemData.goodsCd}]], '', '', 'SMM004');">
+														<a href="javascript:void(0);" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${bestItemData.goodsCd}]], '', '', 'SMM004', '', 'pc_main_m60');">
 															<div class="shape" th:classappend="${bestItemStat.count==1}?'ranker'"><span th:text="${bestItemStat.count}"></span></div>
 															<div class="itemPic">
 																<th:block th:each="option,idx:${bestItemData.videos}" th:with="videoArr=${#strings.arraySplit(idx.current,':')}">
@@ -674,7 +672,7 @@ var fnGetEigenApi = function (id){
 											itemTag += '		<div class="item_prod">\n';
 											itemTag += '			<div class="item_state">\n';
 											itemTag += '				<button type="button" class="itemLike" tabindex="0" goodsCd="'+keyItem.product.itemId+'" goodsNm="'+keyItem.product.itemName+'" onclick="cfnPutWishList(this);">관심상품 추가</button>\n';
-											itemTag += '				<a href="'+keyItem.product.itemUrl+'" class="itemLink" tabindex="0">\n';
+											itemTag += '				<a href="'+keyItem.product.itemUrl+'&rccode=pc_main_p75" class="itemLink" tabindex="0">\n';
 											itemTag += '					<div class="itemPic">\n';
 											itemTag += '						<img alt="BLACK-a" class=" vLHTC pd_img" src="'+keyItem.product.itemImage+'">\n';
 											itemTag += '					</div>\n';
@@ -690,7 +688,7 @@ var fnGetEigenApi = function (id){
 											itemTag += '		<div class="item_prod">\n';
 											itemTag += '			<div class="item_state">\n';
 											itemTag += '				<button type="button" class="itemLike" tabindex="0" goodsCd="'+keyItem.product.itemId+'" goodsNm="'+keyItem.product.itemName+'" onclick="cfnPutWishList(this);">관심상품 추가</button>\n';
-											itemTag += '				<a href="'+keyItem.product.itemUrl+'" class="itemLink" tabindex="0">\n';
+											itemTag += '				<a href="'+keyItem.product.itemUrl+'&rccode=pc_main_p75" class="itemLink" tabindex="0">\n';
 											itemTag += '					<div class="itemPic">\n';
 											itemTag += '						<img alt="BLACK-a" class=" vLHTC pd_img" src="'+keyItem.product.itemImage+'">\n';
 											itemTag += '					</div>\n';
@@ -708,7 +706,7 @@ var fnGetEigenApi = function (id){
 											itemTag += '		<div class="item_prod">\n';
 											itemTag += '			<div class="item_state">\n';
 											itemTag += '				<button type="button" class="itemLike" tabindex="0" goodsCd="'+keyItem.product.itemId+'" goodsNm="'+keyItem.product.itemName+'" onclick="cfnPutWishList(this);">관심상품 추가</button>\n';
-											itemTag += '				<a href="'+keyItem.product.itemUrl+'" class="itemLink" tabindex="0">\n';
+											itemTag += '				<a href="'+keyItem.product.itemUrl+'&rccode=pc_main_p75" class="itemLink" tabindex="0">\n';
 											itemTag += '					<div class="itemPic">\n';
 											itemTag += '						<img alt="BLACK-a" class=" vLHTC pd_img" src="'+keyItem.product.itemImage+'">\n';
 											itemTag += '					</div>\n';
@@ -726,7 +724,7 @@ var fnGetEigenApi = function (id){
 											itemTag += '		<div class="item_prod">\n';
 											itemTag += '			<div class="item_state">\n';
 											itemTag += '				<button type="button" class="itemLike" tabindex="0" goodsCd="'+keyItem.product.itemId+'" goodsNm="'+keyItem.product.itemName+'" onclick="cfnPutWishList(this);">관심상품 추가</button>\n';
-											itemTag += '				<a href="'+keyItem.product.itemUrl+'" class="itemLink" tabindex="0">\n';
+											itemTag += '				<a href="'+keyItem.product.itemUrl+'&rccode=pc_main_p75" class="itemLink" tabindex="0">\n';
 											itemTag += '					<div class="itemPic">\n';
 											itemTag += '						<img alt="BLACK-a" class=" vLHTC pd_img" src="'+keyItem.product.itemImage+'">\n';
 											itemTag += '					</div>\n';
@@ -742,7 +740,7 @@ var fnGetEigenApi = function (id){
 											itemTag += '		<div class="item_prod">\n';
 											itemTag += '			<div class="item_state">\n';
 											itemTag += '				<button type="button" class="itemLike" tabindex="0" goodsCd="'+keyItem.product.itemId+'" goodsNm="'+keyItem.product.itemName+'" onclick="cfnPutWishList(this);">관심상품 추가</button>\n';
-											itemTag += '				<a href="'+keyItem.product.itemUrl+'" class="itemLink" tabindex="0">\n';
+											itemTag += '				<a href="'+keyItem.product.itemUrl+'&rccode=pc_main_p75" class="itemLink" tabindex="0">\n';
 											itemTag += '					<div class="itemPic">\n';
 											itemTag += '						<img alt="BLACK-a" class=" vLHTC pd_img" src="'+keyItem.product.itemImage+'">\n';
 											itemTag += '					</div>\n';
@@ -760,7 +758,7 @@ var fnGetEigenApi = function (id){
 											itemTag += '		<div class="item_prod">\n';
 											itemTag += '			<div class="item_state">\n';
 											itemTag += '				<button type="button" class="itemLike" tabindex="0" goodsCd="'+keyItem.product.itemId+'" goodsNm="'+keyItem.product.itemName+'" onclick="cfnPutWishList(this);">관심상품 추가</button>\n';
-											itemTag += '				<a href="'+keyItem.product.itemUrl+'" class="itemLink" tabindex="0">\n';
+											itemTag += '				<a href="'+keyItem.product.itemUrl+'&rccode=pc_main_p75" class="itemLink" tabindex="0">\n';
 											itemTag += '					<div class="itemPic">\n';
 											itemTag += '						<img alt="BLACK-a" class=" vLHTC pd_img" src="'+keyItem.product.itemImage+'">\n';
 											itemTag += '					</div>\n';
@@ -776,7 +774,7 @@ var fnGetEigenApi = function (id){
 											itemTag += '		<div class="item_prod">\n';
 											itemTag += '			<div class="item_state">\n';
 											itemTag += '				<button type="button" class="itemLike" tabindex="0" goodsCd="'+keyItem.product.itemId+'" goodsNm="'+keyItem.product.itemName+'" onclick="cfnPutWishList(this);">관심상품 추가</button>\n';
-											itemTag += '				<a href="'+keyItem.product.itemUrl+'" class="itemLink" tabindex="0">\n';
+											itemTag += '				<a href="'+keyItem.product.itemUrl+'&rccode=pc_main_p75" class="itemLink" tabindex="0">\n';
 											itemTag += '					<div class="itemPic">\n';
 											itemTag += '						<img alt="BLACK-a" class=" vLHTC pd_img" src="'+keyItem.product.itemImage+'">\n';
 											itemTag += '					</div>\n';
@@ -796,7 +794,7 @@ var fnGetEigenApi = function (id){
 											itemTag += '		<div class="item_prod">\n';
 											itemTag += '			<div class="item_state">\n';
 											itemTag += '				<button type="button" class="itemLike" tabindex="0" goodsCd="'+keyItem.product.itemId+'" goodsNm="'+keyItem.product.itemName+'" onclick="cfnPutWishList(this);">관심상품 추가</button>\n';
-											itemTag += '				<a href="'+keyItem.product.itemUrl+'" class="itemLink" tabindex="0">\n';
+											itemTag += '				<a href="'+keyItem.product.itemUrl+'&rccode=pc_main_p75" class="itemLink" tabindex="0">\n';
 											itemTag += '					<div class="itemPic">\n';
 											itemTag += '						<img alt="BLACK-a" class=" vLHTC pd_img" src="'+keyItem.product.itemImage+'">\n';
 											itemTag += '					</div>\n';
@@ -812,7 +810,7 @@ var fnGetEigenApi = function (id){
 											itemTag += '		<div class="item_prod">\n';
 											itemTag += '			<div class="item_state">\n';
 											itemTag += '				<button type="button" class="itemLike" tabindex="0" goodsCd="'+keyItem.product.itemId+'" goodsNm="'+keyItem.product.itemName+'" onclick="cfnPutWishList(this);">관심상품 추가</button>\n';
-											itemTag += '				<a href="'+keyItem.product.itemUrl+'" class="itemLink" tabindex="0">\n';
+											itemTag += '				<a href="'+keyItem.product.itemUrl+'&rccode=pc_main_p75" class="itemLink" tabindex="0">\n';
 											itemTag += '					<div class="itemPic">\n';
 											itemTag += '						<img alt="BLACK-a" class=" vLHTC pd_img" src="'+keyItem.product.itemImage+'">\n';
 											itemTag += '					</div>\n';
@@ -830,7 +828,7 @@ var fnGetEigenApi = function (id){
 											itemTag += '		<div class="item_prod">\n';
 											itemTag += '			<div class="item_state">\n';
 											itemTag += '				<button type="button" class="itemLike" tabindex="0" goodsCd="'+keyItem.product.itemId+'" goodsNm="'+keyItem.product.itemName+'" onclick="cfnPutWishList(this);">관심상품 추가</button>\n';
-											itemTag += '				<a href="'+keyItem.product.itemUrl+'" class="itemLink" tabindex="0">\n';
+											itemTag += '				<a href="'+keyItem.product.itemUrl+'&rccode=pc_main_p75" class="itemLink" tabindex="0">\n';
 											itemTag += '					<div class="itemPic">\n';
 											itemTag += '						<img alt="BLACK-a" class=" vLHTC pd_img" src="'+keyItem.product.itemImage+'">\n';
 											itemTag += '					</div>\n';
@@ -846,7 +844,7 @@ var fnGetEigenApi = function (id){
 											itemTag += '		<div class="item_prod">\n';
 											itemTag += '			<div class="item_state">\n';
 											itemTag += '				<button type="button" class="itemLike" tabindex="0" goodsCd="'+keyItem.product.itemId+'" goodsNm="'+keyItem.product.itemName+'" onclick="cfnPutWishList(this);">관심상품 추가</button>\n';
-											itemTag += '				<a href="'+keyItem.product.itemUrl+'" class="itemLink" tabindex="0">\n';
+											itemTag += '				<a href="'+keyItem.product.itemUrl+'&rccode=pc_main_p75" class="itemLink" tabindex="0">\n';
 											itemTag += '					<div class="itemPic">\n';
 											itemTag += '						<img alt="BLACK-a" class=" vLHTC pd_img" src="'+keyItem.product.itemImage+'">\n';
 											itemTag += '					</div>\n';
@@ -864,7 +862,7 @@ var fnGetEigenApi = function (id){
 											itemTag += '		<div class="item_prod">\n';
 											itemTag += '			<div class="item_state">\n';
 											itemTag += '				<button type="button" class="itemLike" tabindex="0" goodsCd="'+keyItem.product.itemId+'" goodsNm="'+keyItem.product.itemName+'" onclick="cfnPutWishList(this);">관심상품 추가</button>\n';
-											itemTag += '				<a href="'+keyItem.product.itemUrl+'" class="itemLink" tabindex="0">\n';
+											itemTag += '				<a href="'+keyItem.product.itemUrl+'&rccode=pc_main_p75" class="itemLink" tabindex="0">\n';
 											itemTag += '					<div class="itemPic">\n';
 											itemTag += '						<img alt="BLACK-a" class=" vLHTC pd_img" src="'+keyItem.product.itemImage+'">\n';
 											itemTag += '					</div>\n';
@@ -880,7 +878,7 @@ var fnGetEigenApi = function (id){
 											itemTag += '		<div class="item_prod">\n';
 											itemTag += '			<div class="item_state">\n';
 											itemTag += '				<button type="button" class="itemLike" tabindex="0" goodsCd="'+keyItem.product.itemId+'" goodsNm="'+keyItem.product.itemName+'" onclick="cfnPutWishList(this);">관심상품 추가</button>\n';
-											itemTag += '				<a href="'+keyItem.product.itemUrl+'" class="itemLink" tabindex="0">\n';
+											itemTag += '				<a href="'+keyItem.product.itemUrl+'&rccode=pc_main_p75" class="itemLink" tabindex="0">\n';
 											itemTag += '					<div class="itemPic">\n';
 											itemTag += '						<img alt="BLACK-a" class=" vLHTC pd_img" src="'+keyItem.product.itemImage+'">\n';
 											itemTag += '					</div>\n';
@@ -898,7 +896,7 @@ var fnGetEigenApi = function (id){
 											itemTag += '		<div class="item_prod">\n';
 											itemTag += '			<div class="item_state">\n';
 											itemTag += '				<button type="button" class="itemLike" tabindex="0" goodsCd="'+keyItem.product.itemId+'" goodsNm="'+keyItem.product.itemName+'" onclick="cfnPutWishList(this);">관심상품 추가</button>\n';
-											itemTag += '				<a href="'+keyItem.product.itemUrl+'" class="itemLink" tabindex="0">\n';
+											itemTag += '				<a href="'+keyItem.product.itemUrl+'&rccode=pc_main_p75" class="itemLink" tabindex="0">\n';
 											itemTag += '					<div class="itemPic">\n';
 											itemTag += '						<img alt="BLACK-a" class=" vLHTC pd_img" src="'+keyItem.product.itemImage+'">\n';
 											itemTag += '					</div>\n';

+ 2 - 2
src/main/webapp/WEB-INF/views/web/display/OutletMainFormWeb.html

@@ -96,7 +96,7 @@
 								<div class="item_prod">
 									<div class="item_state">
 										<button type="button" class="itemLike" th:classappend="${item.likeIt == 'likeit'}? 'likeit' : ''"  onclick="cfnPutWishList(this);" th:attr="goodsCd=${item.goodsCd}, goodsNm=${item.goodsFullNm}, ithrCd='', contentsLoc='SOM002', planDtlSq=''">관심상품 추가</button>
-										<a href="javascript:void(0);" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${item.goodsCd}]], '', '', 'SOM002');">
+										<a href="javascript:void(0);" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${item.goodsCd}]], '', '', 'SOM002', '', 'pc_outlet_m65');">
 											<div class="itemPic">
 												<th:block th:each="option,idx:${item.videos}" th:with="videoArr=${#strings.arraySplit(idx.current,':')}">
 													<iframe th:if="${videoArr[0]=='Y'}" id="pdThumbVideo" class="pd_mov" th:src="${'https://www.youtube.com/embed/'+videoArr[1]+'?autoplay=1&mute=1'}"></iframe>
@@ -139,7 +139,7 @@
 							<div class="item_prod" th:each="item, status : ${bestGoodsList}">
 								<div class="item_state">
 									<button type="button" class="itemLike" th:classappend="${item.likeIt == 'likeit'}? 'likeit' : ''"  onclick="cfnPutWishList(this);" th:attr="goodsCd=${item.goodsCd}, goodsNm=${item.goodsFullNm}, ithrCd='', contentsLoc='SOM003', planDtlSq=''">관심상품 추가</button>
-									<a href="javascript:void(0);" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${item.goodsCd}]], '', '', 'SOM003');">
+									<a href="javascript:void(0);" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${item.goodsCd}]], '', '', 'SOM003', '', 'pc_outlet_m64');">
 										<div class="shape" th:classappend="${status.count==1}?'ranker'"><span th:text="${status.index+1}">1</span></div>
 										<div class="itemPic">
 											<th:block th:each="option,idx:${item.videos}" th:with="videoArr=${#strings.arraySplit(idx.current,':')}">

+ 1 - 1
src/main/webapp/WEB-INF/views/web/display/SearchGoodsListFormWeb.html

@@ -1134,7 +1134,7 @@
 						html += '<div class="item_prod">\n';
 						html += '	<div class="item_state">\n';
 						html += '		<button type="button" class="itemLike">관심상품 추가</button>\n';
-						html += '		<a href="'+item.product.itemUrl+'" class="itemLink">\n';
+						html += '		<a href="'+item.product.itemUrl+'&rccode=pc_search_s3" class="itemLink">\n';
 						html += '			<div class="itemPic">\n';
 						html += '				<img alt="" class="vLHTC pd_img" src="'+item.product.itemImage+'">\n';
 						html += '			</div>\n';

+ 3 - 3
src/main/webapp/WEB-INF/views/web/display/SearchLayerWeb.html

@@ -69,7 +69,7 @@
 								<div class="swiper-slide">
 									<div class="item_prod">
 										<div class="item_state">
-											<a th:href="${item.itemUrl}" class="itemLink">
+											<a th:href="${item.itemUrl} + '&rccode=rts_pc_search&rtscode=pc_search'" class="itemLink">
 												<div class="itemPic">
 													<img alt="" class="vLHTC pd_img" th:src="${item.imageUrl}">
 												</div>
@@ -212,7 +212,7 @@
 				let actionUrl = _PAGE_SEARCH_GOODS + '?keyword=' + keyword + '&brandGroupNo=' + $('#searchMainForm input[name=brandGroupNo]').val();
 				cfnGoToPage(actionUrl);
 			}
-		});
+		}, true);
 	});
 
 	var submain_slide;
@@ -356,7 +356,7 @@
 					if(idx<5) {
 						tag += '<div class="item_prod">\n';
 						tag += '	<div class="item_state">\n';
-						tag += '		<a href="javascript:void(0);" class="itemLink" onclick="cfnGoToGoodsDetail(\'' + item.goodsCd + '\',\'' + item.colorCd + '\');">\n';
+						tag += '		<a href="javascript:void(0);" class="itemLink" onclick="cfnGoToGoodsDetail(\'' + item.goodsCd + '\',\'' + item.colorCd + '\', \'\',\'\',\'\',\'pc_search_s3\');">\n';
 						tag += '			<div class="itemPic">\n';
 						tag += '				<img alt="" class="vLHTC pd_img" src="' + item.sysImgNm + '">\n';
 						tag += '			</div>\n';

+ 1 - 1
src/main/webapp/WEB-INF/views/web/goods/GoodsDealDetailFormWeb.html

@@ -424,7 +424,7 @@
 								<div class="item_prod">
 									<div class="item_state">
 										<button type="button" class="itemLike" th:classappend="${result.product.itemId == 'Y'}? 'active' : ''"  onclick="cfnPutWishList(this);" th:attr="goodsCd=${result.product.itemId}, goodsNm=${result.product.itemName}, ithrCd='IN15_03', contentsLoc='', planDtlSq=''">관심상품 추가</button>
-										<a href="javascript:void(0);" th:onclick="cfnGoToGoodsDetail([[${result.product.itemId}]], '','IN15_03','','','pc_detail');" class="itemLink" >
+										<a href="javascript:void(0);" th:onclick="cfnGoToGoodsDetail([[${result.product.itemId}]], '','IN15_03','','','pc_detail_a37');" class="itemLink" >
 											<div class="itemPic">
 												<img alt="" class="vLHTC pd_img" th:src="${result.product.itemImage +'?RS=300'}" th:onerror="'this.src=\''+@{${uxImgUrl}+ '/images/pc/thumb/bg_item_none.png'}+'\';'">
 											</div>

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

@@ -694,7 +694,7 @@
 								<div class="item_prod">
 									<div class="item_state">
 										<button type="button" class="itemLike" th:classappend="${goodsInfo.wishYn == 'Y'}? 'active' : ''"  onclick="cfnPutWishList(this);" th:attr="goodsCd=${goodsInfo.goodsCd}, goodsNm=${goodsInfo.goodsFullNm}, ithrCd='IN15_02', contentsLoc='', planDtlSq=''">관심상품 추가</button>
-										<a href="javascript:void(0);" th:onclick="cfnGoToGoodsDetail([[${goodsInfo.goodsCd}]], '','IN15_02','','','pc_detail');" class="itemLink" >
+										<a href="javascript:void(0);" th:onclick="cfnGoToGoodsDetail([[${goodsInfo.goodsCd}]], '','IN15_02','','','');" class="itemLink" >
 											<div class="itemPic">
 												<img alt="" class="vLHTC pd_img" th:src="${imgGoodsUrl+'/'+goodsInfo.sysImgNm +'?RS=300'}" th:onerror="'this.src=\''+@{${uxImgUrl}+ '/images/pc/thumb/bg_item_none.png'}+'\';'">
 
@@ -1234,7 +1234,7 @@
 								<div class="item_prod">
 									<div class="item_state">
 										<button type="button" class="itemLike" th:classappend="${result.product.itemId == 'Y'}? 'active' : ''"  onclick="cfnPutWishList(this);" th:attr="goodsCd=${result.product.itemId}, goodsNm=${result.product.itemName}, ithrCd='IN15_03', contentsLoc='', planDtlSq=''">관심상품 추가</button>
-										<a href="javascript:void(0);" th:onclick="cfnGoToGoodsDetail([[${result.product.itemId}]], '','IN15_03','','','pc_detail');" class="itemLink" >
+										<a href="javascript:void(0);" th:onclick="cfnGoToGoodsDetail([[${result.product.itemId}]], '','IN15_03','','','pc_detail_a37');" class="itemLink" >
 											<div class="itemPic">
 												<img alt="" class="vLHTC pd_img" th:src="${result.product.itemImage +'?RS=300'}" th:onerror="'this.src=\''+@{${uxImgUrl}+ '/images/pc/thumb/bg_item_none.png'}+'\';'">
 											</div>
@@ -1363,7 +1363,7 @@
 								<div class="item_prod">
 									<div class="item_state">
 										<button type="button" class="itemLike" th:classappend="${result.product.itemId == 'Y'}? 'active' : ''"  onclick="cfnPutWishList(this);" th:attr="goodsCd=${result.product.itemId}, goodsNm=${result.product.itemName}, ithrCd='IN15_03', contentsLoc='', planDtlSq=''">관심상품 추가</button>
-										<a href="javascript:void(0);" th:onclick="cfnGoToGoodsDetail([[${result.product.itemId}]], '','IN15_03','','','pc_detail');" class="itemLink" >
+										<a href="javascript:void(0);" th:onclick="cfnGoToGoodsDetail([[${result.product.itemId}]], '','IN15_03','','','pc_detail_a38');" class="itemLink" >
 											<div class="itemPic">
 												<img alt="" class="vLHTC pd_img" th:src="${result.product.itemImage +'?RS=300'}" th:onerror="'this.src=\''+@{${uxImgUrl}+ '/images/pc/thumb/bg_item_none.png'}+'\';'">
 											</div>
@@ -1407,7 +1407,7 @@
 								<div class="item_prod">
 									<div class="item_state">
 										<button type="button" class="itemLike" th:classappend="${result.product.itemId == 'Y'}? 'active' : ''"  onclick="cfnPutWishList(this);" th:attr="goodsCd=${result.product.itemId}, goodsNm=${result.product.itemName}, ithrCd='IN15_03', contentsLoc='', planDtlSq=''">관심상품 추가</button>
-										<a href="javascript:void(0);" th:onclick="cfnGoToGoodsDetail([[${result.product.itemId}]], '','IN15_03','','','pc_detail');" class="itemLink" >
+										<a href="javascript:void(0);" th:onclick="cfnGoToGoodsDetail([[${result.product.itemId}]], '','IN15_03','','','pc_detail_a39');" class="itemLink" >
 											<div class="itemPic">
 												<img alt="" class="vLHTC pd_img" th:src="${result.product.itemImage +'?RS=300'}" th:onerror="'this.src=\''+@{${uxImgUrl}+ '/images/pc/thumb/bg_item_none.png'}+'\';'">
 											</div>