Bladeren bron

메인관련 수정

bin2107 4 jaren geleden
bovenliggende
commit
a32179e8d9

+ 15 - 1
src/main/java/com/style24/front/biz/service/TsfDisplayService.java

@@ -544,6 +544,7 @@ public class TsfDisplayService {
 	 */
 	public Collection<Contents> getContentsForGoods(Contents contents) {
 		Collection<Contents> contentsList = displayDao.getContentsList(contents);
+		Collection<Goods> goodsList = new ArrayList<>();
 		Cate4Srch tempContents = new Cate4Srch();
 		for (Contents data : contentsList) {
 			tempContents.setContentsLoc(data.getContentsLoc());
@@ -554,7 +555,20 @@ public class TsfDisplayService {
 				data.setFrontGb(TsfSession.getFrontGb());
 				data.setBannerList(displayDao.getContentsBannerList(data));
 			}
-			data.setGoodsList(goodsDao.getContentsCategoryGoodsList(tempContents));
+			goodsList = (goodsDao.getContentsCategoryGoodsList(tempContents));
+			if("SMM007".equals(data.getContentsLoc())){
+				int maxrow = 3;
+				if(goodsList == null || goodsList.size() < 3){
+					Cate4Srch cate = new Cate4Srch();
+					cate.setSiteCd(TscConstants.Site.STYLE24.value());
+					cate.setCateGb(TsfConstants.CateGb.BYITEM.value());
+					cate.setFrontGb(data.getFrontGb());
+					cate.setBrandGroupNo(Integer.parseInt(data.getBrandGroupNo()));
+					cate.setMaxRow(maxrow-goodsList.size());
+					goodsList.addAll(goodsDao.getContentsCategoryNewGoodsList(cate));
+				}
+			}
+			data.setGoodsList(goodsList);
 		}
 
 		log.info("getContentsForGoods contentsList.size()::{}", contentsList.size());

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

@@ -38,7 +38,7 @@
 						<li class="fn">주소 : 서울시 영등포구 은행로 11, 8층(여의도동, 일신빌딩)</li>
 						<li class="fn">사업자등록번호 : 116-81-32499 </li>
 <!--						<li class="fn">개인정보관리책임자 : 이정득 </li>-->
-						<li class="fn">통신판매업신고번호 : 제 2020-서울영등포1432</li>
+						<li class="fn">통신판매업신고번호 : 제 2020-서울영등포-1432</li>
 						<li class="fn">개인정보보호책임자 : 김명인</li>
 						<li class="fn">호스팅 서비스 : 아이스타일이십사㈜</li>
 					</ul>

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

@@ -146,6 +146,7 @@
 
 	var swiperBrand = new Swiper('.swiper-container.brand_si', {
 		slidesPerView: 3,
+		slidesPerGroup: 6,
 		slidesPerColumn: 2,
 		spaceBetween: 0,
 		pagination: {

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

@@ -125,23 +125,27 @@
 				<th:block th:if="${contentsLoc=='006' || contentsLoc=='014'||contentsLoc=='015'||contentsLoc=='016'}">
 					<!-- 배너 슬라이드 -->
 					<div class="inner wide" th:if="${brandMainLayoutData.ContentsList!=null and !brandMainLayoutData.ContentsList.empty}">
-						<div class="swiper-container br_second_slide">
-							<div class="swiper-wrapper">
-								<th:block th:each="ContentsData, ContentsStat : ${brandMainLayoutData.ContentsList}">
-									<div class="swiper-slide">
-										<a th:href="${ContentsData.strVar1}" target="_blank" title="새 창으로 열기">
-											<img th:src="${@environment.getProperty('domain.image')+ContentsData.imgPath1}" alt="">
-											<div class="s-text" id="bannerS">
-												<p class="bText">
-													<input type="hidden" name="bannerDesc" th:value="${ContentsData.strTitle1}">
-												</p>
-											</div>
-										</a>
-									</div>
-								</th:block>
+						<div class="main_1stage">
+							<div class="swiper-container post-bnnWide">
+								<div class="swiper-wrapper">
+									<th:block th:each="ContentsData, ContentsStat : ${brandMainLayoutData.ContentsList}">
+										<div class="swiper-slide">
+											<a th:href="${ContentsData.strVar1}" target="_blank" title="새 창으로 열기">
+												<div class="bnnbox"> <!-- 210528_ 삭제 : 인라인 style css 제거 -->
+													<div class="txtWrap" id="bannerS">
+														<p class="bText">
+															<input type="hidden" name="bannerDesc" th:value="${ContentsData.strTitle1}">
+														</p> <!-- 210614_ 수정 : 줄내림 방식 교체 -->
+													</div>
+													<img alt="BLUE-a" class=" vLHTC pd_img" th:src="${@environment.getProperty('domain.image')+ContentsData.imgPath1}">
+												</div>
+											</a>
+										</div>
+									</th:block>
+									<!-- Add Pagination -->
+									<div class="swiper-pagination"></div>
+								</div>
 							</div>
-							<!-- Add Pagination -->
-							<div class="swiper-pagination"></div>
 						</div>
 					</div>
 				</th:block>

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

@@ -69,6 +69,7 @@
 									<div class="swiper-slide" th:each="item, status : ${newGoodsList}">
 										<div class="item_prod" th:if="${status.count<21}">
 											<div class="item_state">
+												<button type="button" class="itemLike" th:classappend="${item.likeIt == 'likeit'}? 'likeit' : ''"  onclick="cfnPutWishList(this);" th:attr="goodsCd=${item.goodsCd}, ithrCd='', contentsLoc='SCM001', planDtlSq=''">관심상품 추가</button>
 												<a href="javascript:void(0);" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${item.goodsCd}]], '', '', 'SCM001');">
 													<div class="itemPic">
 														<th:block th:each="option,idx:${item.videos}" th:with="videoArr=${#strings.arraySplit(idx.current,':')}">
@@ -76,7 +77,6 @@
 															<iframe th:unless="${videoArr[0]=='Y'}" id="pdThumbVideo" class="pd_mov" th:src="${kollusMediaUrl+'/'+videoArr[1]+'?enable_initialize_focus=false&autoplay&mute&controls_activation=none'}" allow="fullscreen" allowFullScreen></iframe>
 														</th:block>
 														<img alt="BLACK-a" class=" vLHTC pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + item.sysImgNm}" onerror="noneImg(this)">
-														<button type="button" class="itemLike" th:classappend="${item.likeIt == 'likeit'}? 'likeit' : ''"  onclick="cfnPutWishList(this);" th:attr="goodsCd=${item.goodsCd}, ithrCd='', contentsLoc='SCM001', planDtlSq=''">관심상품 추가</button>
 													</div>
 													<p class="itemBrand" th:text="${item.brandGroupNm}">BRAND NAME</p>
 													<div class="itemName" th:text="${item.goodsFullNm}">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
@@ -100,6 +100,7 @@
 								<div class="itemsGrp">
 									<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}, ithrCd='', contentsLoc='SCM002', planDtlSq=''">관심상품 추가</button>
 											<a href="javascript:void(0);" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${item.goodsCd}]], '', '', 'SCM002');">
 												<div class="shape" th:classappend="${status.count==1}?'ranker'"><span th:text="${status.index+1}"></span></div>
 												<div class=" itemPic">
@@ -108,7 +109,6 @@
 														<iframe th:unless="${videoArr[0]=='Y'}" id="pdThumbVideo" class="pd_mov" th:src="${kollusMediaUrl+'/'+videoArr[1]+'?enable_initialize_focus=false&autoplay&mute&controls_activation=none'}" allow="fullscreen" allowFullScreen></iframe>
 													</th:block>
 													<img alt="BLUE-a" class=" vLHTC pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + item.sysImgNm}" onerror="noneImg(this)">
-													<button type="button" class="itemLike" th:classappend="${item.likeIt == 'likeit'}? 'likeit' : ''"  onclick="cfnPutWishList(this);" th:attr="goodsCd=${item.goodsCd}, ithrCd='', contentsLoc='SCM002', planDtlSq=''">관심상품 추가</button>
 												</div>
 												<p class="itemBrand" th:text="${item.brandGroupNm}">BRAND NAME</p>
 												<div class=" itemName" th:text="${item.goodsFullNm}">여성 체인 프린트 큐롯 스커트 프린트 큐롯 스커트</div>

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

@@ -271,7 +271,7 @@
 																<div class="itemPic">
 																	<img alt="" class=" pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm}" onerror="noneImg(this)">
 																</div>
-																<p class="itemBrand" th:text="${goodsData.brandEnm}">TBJ</p>
+																<p class="itemBrand" th:text="${goodsData.brandGroupNm}">TBJ</p>
 																<div class="itemName" th:text="${goodsData.goodsNm}">11111 남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
 																<div class="itemComment" th:text="${goodsData.goodsTnm}"># 가을 느낌 물씬!</div>
 																<p class="itemPrice">

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

@@ -1039,6 +1039,7 @@
 
 	<!-- //2021.06.18 검색화면 로그스크립트 삽입 -->
 	<script type="text/javascript">
+		var searchKeyword = '[[${params.keyword}]]';
 		window._eglqueue = window._eglqueue || [];
 		_eglqueue.push(['setVar', 'cuid', eglqueueCuid]);
 		_eglqueue.push(['setVar', 'searchTerm', [[${params.keyword}]]]);

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

@@ -1102,9 +1102,10 @@
 
 	<!-- //2021.06.18 검색화면 로그스크립트 삽입 -->
 	<script type="text/javascript">
+		var searchKeyword = '[[${params.keyword}]]';
 		window._eglqueue = window._eglqueue || [];
 		_eglqueue.push(['setVar', 'cuid', eglqueueCuid]);
-		_eglqueue.push(['setVar', 'searchTerm', [[${params.keyword}]]]);
+		_eglqueue.push(['setVar', 'searchTerm', searchKeyword]);
 		_eglqueue.push(['setVar', 'userId', hCustId]); // optional
 		_eglqueue.push(['track', 'search']);
 		(function (s, x) {