Selaa lähdekoodia

베스트메인 수정

bin2107 5 vuotta sitten
vanhempi
commit
61403700f9

+ 8 - 3
src/main/webapp/WEB-INF/views/mob/display/BestMainFormMob.html

@@ -25,7 +25,7 @@
 			<div class="inner wide">
 				<div class="category_nav">
 					<ul id="cateListArea">
-						<li><button type="button" class="active" id="li0" onclick="fnBestListSearch(this,'');">전체</button></li>
+						<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>
@@ -313,10 +313,15 @@
 			// 	cateNo = 0;
 			// }
 
-			$.each($("#cateListArea").find('li'), function() {
+			$.each($("#cateListArea").find('li').find('button'), function() {
 				$(this).removeClass();
 			});
-			$("#li"+cateNo).addClass('active');
+			if(gagajf.isNull(cateNo)){
+				$("#li0").find("button").addClass('active');
+			}else{
+				$("#li"+cateNo).find("button").addClass('active');
+			}
+
 			$("#bestGoodsForm input[name=cateNo]").val(cateNo);
 			fnCategoryGoodsInfiniteScrollInit();
 			gagaInfiniteScroll.getHistory();

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

@@ -303,7 +303,12 @@
 		$.each($("#cateListArea").find('li'), function() {
 			$(this).removeClass();
 		});
-		$("#li"+cateNo).addClass('active');
+		if(gagajf.isNull(cateNo)){
+			$("#li0").addClass('active');
+		}else{
+			$("#li"+cateNo).addClass('active');
+		}
+
 		$("#bestGoodsForm input[name=cateNo]").val(cateNo);
 		fnCategoryGoodsInfiniteScrollInit();
 		gagaInfiniteScroll.getHistory();

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

@@ -129,6 +129,9 @@
 										<a href="javascript:void(0);" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${item.goodsCd}]], '', '', 'SCM002');">
 											<div class="rank" 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,':')}">-->
+
+<!--												</th:block>-->
 												<img class="vLHTC pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + item.sysImgNm}" th:alt="${item.goodsCd}" onerror="noneImg(this)"/>
 											</div>
 											<p class="itemBrand" th:text="${item.brandGroupNm}">BRAND NAME</p>