|
|
@@ -123,7 +123,13 @@
|
|
|
<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>
|
|
|
<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') + '/' + goodsData.sysImgNm}" onerror="noneImg(this)">
|
|
|
+
|
|
|
+ <th:block th:if="${goodsData.sysImgNm2 != null and goodsData.sysImgNm2 != ''}">
|
|
|
+ <img alt="BLUE-a" class=" vLHTC pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm}" th:data-img="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm2}" onerror="noneImg(this)">
|
|
|
+ </th:block>
|
|
|
+ <th:block th:if="${goodsData.sysImgNm2 == null or goodsData.sysImgNm2 == ''}">
|
|
|
+ <img alt="BLUE-a" class=" vLHTC pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm}" onerror="noneImg(this)">
|
|
|
+ </th:block>
|
|
|
</div>
|
|
|
<p class="itemBrand" th:text="${goodsData.brandGroupNm}">BRAND NAME</p>
|
|
|
<div class="itemComment" th:unless="${goodsData.goodsTnm == null or goodsData.goodsTnm == ''}" th:text="${goodsData.goodsTnm}">#가을느낌 물씬!</div>
|
|
|
@@ -182,10 +188,21 @@
|
|
|
</th:block>
|
|
|
<!-- 2021.08.30 검색엔진데이타 https: 붙여서 넘어옴 처리 -->
|
|
|
<th:block th:if="${#strings.indexOf(bestItemData.sysImgNm, 'https:')} == -1">
|
|
|
- <img alt="BLACK-a" class="vLHTC pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + bestItemData.sysImgNm.replace('//image.istyle24.com/Upload/ProductImage/','')}" onerror="noneImg(this)">
|
|
|
+ <th:block th:if="${bestItemData.sysImgNm2 != null and bestItemData.sysImgNm2 != ''}">
|
|
|
+ <img alt="BLACK-a" class="vLHTC pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + bestItemData.sysImgNm.replace('//image.istyle24.com/Upload/ProductImage/','')}" th:data-img="${@environment.getProperty('upload.goods.view') + '/' + bestItemData.sysImgNm2.replace('//image.istyle24.com/Upload/ProductImage/','')}" onerror="noneImg(this)">
|
|
|
+ </th:block>
|
|
|
+ <th:block th:if="${bestItemData.sysImgNm2 == null or bestItemData.sysImgNm2 == ''}">
|
|
|
+ <img alt="BLACK-a" class="vLHTC pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + bestItemData.sysImgNm.replace('//image.istyle24.com/Upload/ProductImage/','')}" onerror="noneImg(this)">
|
|
|
+ </th:block>
|
|
|
</th:block>
|
|
|
+
|
|
|
<th:block th:if="${#strings.indexOf(bestItemData.sysImgNm, 'https:')} == 0">
|
|
|
- <img alt="BLACK-a" class="vLHTC pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + bestItemData.sysImgNm.replace('https://image.istyle24.com/Upload/ProductImage/','')}" onerror="noneImg(this)">
|
|
|
+ <th:block th:if="${bestItemData.sysImgNm2 != null and bestItemData.sysImgNm2 != ''}">
|
|
|
+ <img alt="BLACK-a" class="vLHTC pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + bestItemData.sysImgNm.replace('https://image.istyle24.com/Upload/ProductImage/','')}" th:data-img="${@environment.getProperty('upload.goods.view') + '/' + bestItemData.sysImgNm2.replace('https://image.istyle24.com/Upload/ProductImage/','')}" onerror="noneImg(this)">
|
|
|
+ </th:block>
|
|
|
+ <th:block th:if="${bestItemData.sysImgNm2 == null or bestItemData.sysImgNm2 == ''}">
|
|
|
+ <img alt="BLACK-a" class="vLHTC pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + bestItemData.sysImgNm.replace('https://image.istyle24.com/Upload/ProductImage/','')}" onerror="noneImg(this)">
|
|
|
+ </th:block>
|
|
|
</th:block>
|
|
|
<!-- //2021.08.30 검색엔진데이타 https: 붙여서 넘어옴 처리 -->
|
|
|
</div>
|
|
|
@@ -288,7 +305,12 @@
|
|
|
<button type="button" class="itemLike" th:classappend="${goodsData.likeIt == 'likeit'}? 'likeit' : ''" onclick="cfnPutWishList(this);" th:attr="goodsCd=${goodsData.goodsCd}, goodsNm=${goodsData.goodsNm}, ithrCd='', contentsLoc='SMM006', planDtlSq=''">관심상품 추가</button>
|
|
|
<a href="javascript:void(0);" class="itemLink" th:onclick="cfnGoToGoodsDetail([[${goodsData.goodsCd}]], '', '', 'SMM006');">
|
|
|
<div class="itemPic">
|
|
|
- <img alt="" class="pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm}" onerror="noneImg(this)">
|
|
|
+ <th:block th:if="${goodsData.sysImgNm2 != null and goodsData.sysImgNm2 != ''}">
|
|
|
+ <img alt="" class="pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm}" th:data-img="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm2}" onerror="noneImg(this)">
|
|
|
+ </th:block>
|
|
|
+ <th:block th:if="${goodsData.sysImgNm2 == null or goodsData.sysImgNm2 == ''}">
|
|
|
+ <img alt="" class="pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm}" onerror="noneImg(this)">
|
|
|
+ </th:block>
|
|
|
</div>
|
|
|
<p class="itemBrand" th:text="${goodsData.brandGroupNm}">BRAND NAME</p>
|
|
|
<div class="itemComment" th:unless="${goodsData.goodsTnm == null or goodsData.goodsTnm == ''}" th:text="${goodsData.goodsTnm}">#데일리웨어로 매일입고싶은</div>
|
|
|
@@ -371,7 +393,13 @@
|
|
|
<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>
|
|
|
<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') + '/' + goodsData.sysImgNm}" onerror="noneImg(this)">
|
|
|
+
|
|
|
+ <th:block th:if="${goodsData.sysImgNm2 != null and goodsData.sysImgNm2 != ''}">
|
|
|
+ <img alt="BLACK-a" class=" vLHTC pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm}" th:data-img="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm2}" onerror="noneImg(this)">
|
|
|
+ </th:block>
|
|
|
+ <th:block th:if="${goodsData.sysImgNm2 == null or goodsData.sysImgNm2 == ''}">
|
|
|
+ <img alt="BLACK-a" class=" vLHTC pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm}" onerror="noneImg(this)">
|
|
|
+ </th:block>
|
|
|
</div>
|
|
|
<div class="itemComment" th:unless="${goodsData.goodsTnm == null or goodsData.goodsTnm == ''}" th:text="${goodsData.goodsTnm}">#데일리웨어로 매일입고싶은</div>
|
|
|
<div class="itemName" th:text="${goodsData.goodsFullNm}">남성 로고 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건 자카드 방풍 패딩 스웨터 가디건</div>
|
|
|
@@ -463,7 +491,13 @@
|
|
|
<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>
|
|
|
<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="" class=" vLHTC pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm}" onerror="noneImg(this)">
|
|
|
+
|
|
|
+ <th:block th:if="${goodsData.sysImgNm2 != null and goodsData.sysImgNm2 != ''}">
|
|
|
+ <img alt="" class=" vLHTC pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm}" th:data-img="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm2}" onerror="noneImg(this)">
|
|
|
+ </th:block>
|
|
|
+ <th:block th:if="${goodsData.sysImgNm2 == null or goodsData.sysImgNm2 == ''}">
|
|
|
+ <img alt="" class=" vLHTC pd_img" th:src="${@environment.getProperty('upload.goods.view') + '/' + goodsData.sysImgNm}" onerror="noneImg(this)">
|
|
|
+ </th:block>
|
|
|
</div>
|
|
|
<p class="itemBrand" th:text="${goodsData.brandGroupNm}">BRAND NAME</p>
|
|
|
<div class="itemComment" th:unless="${goodsData.goodsTnm == null or goodsData.goodsTnm == ''}" th:text="${goodsData.goodsTnm}">#주문 폭주 상품</div>
|
|
|
@@ -1705,6 +1739,41 @@ $(document).ready(function() {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+
|
|
|
+ var nowFocus = $('.main .itemPic');
|
|
|
+ var nowMov = $('.itemPic').children('.pd_mov');
|
|
|
+ var nowImg = $('.itemPic').children('.pd_img');
|
|
|
+ var ogrSrc;
|
|
|
+ var overSrc;
|
|
|
+ var srcName = nowImg.attr('src');
|
|
|
+ overSrc = srcName.substring(0, srcName.lastIndexOf('.'));
|
|
|
+
|
|
|
+ var srcImg;
|
|
|
+ var srcdat;
|
|
|
+
|
|
|
+ $(nowFocus).on('mouseenter', function() {
|
|
|
+ $(this).children('.pd_mov').siblings(".itemOpt").addClass('on');
|
|
|
+ $(this).children('.pd_mov').css("opacity","0");
|
|
|
+ // return false;
|
|
|
+ });
|
|
|
+ $(nowFocus).on('mouseleave', function() {
|
|
|
+ $(this).children('.pd_mov').siblings(".itemOpt").removeClass('on');
|
|
|
+ $(this).children('.pd_mov').css("opacity","1");
|
|
|
+ // return false;
|
|
|
+ });
|
|
|
+ $(nowFocus).on('mouseenter', function() {
|
|
|
+ $(this).children('.pd_img').siblings(".itemOpt").addClass('on');
|
|
|
+ srcImg = $(this).children('.pd_img').attr('src');
|
|
|
+ srcdat = $(this).children('.pd_img').attr('data-img');
|
|
|
+ $(this).children('.pd_img').attr('src',srcdat);
|
|
|
+ // return false;
|
|
|
+ });
|
|
|
+
|
|
|
+ $(nowFocus).on('mouseleave', function() {
|
|
|
+ $(this).children('.pd_img').siblings(".itemOpt").removeClass('on');
|
|
|
+ $(this).children('.pd_img').attr('src', srcImg);
|
|
|
+ // return false;
|
|
|
+ });
|
|
|
});
|
|
|
/*]]>*/
|
|
|
</script>
|