|
|
@@ -302,7 +302,12 @@
|
|
|
<a href="javascript:void(0);" th:onclick="cfGoodsReviewDetail([[${goodsInfo.goodsCd}]], 'Y', '', [[${bestReview.reviewSq}]])" >
|
|
|
<div class="pic" th:if="${bestReview.reviewAttachList != null and !bestReview.reviewAttachList.empty}">
|
|
|
<th:block th:each="reviewAttach, attachStatus : ${bestReview.reviewAttachList}" th:if="${attachStatus.first}">
|
|
|
- <span class="thumb" th:classAppend="${(reviewAttach.fileGb == 'M') ? 'mov' :''}" th:style="${'background-image:url('+imgUrl+ reviewAttach.sysFileNm+');'}"></span><!-- 동영상의 썸네일일 경우 mov 클래스 추가 -->
|
|
|
+ <th:block th:if="${reviewAttach.fileGb == 'M'}">
|
|
|
+ <span class="thumb mov" th:style="${'background-image:url('+kollusMediaUrl+'/poster/'+reviewAttach.kmcKey+');'}"></span><!-- 동영상의 썸네일일 경우 mov 클래스 추가 -->
|
|
|
+ </th:block>
|
|
|
+ <th:block th:unless="${reviewAttach.fileGb == 'M'}">
|
|
|
+ <span class="thumb" th:style="${'background-image:url('+imgUrl+ reviewAttach.sysFileNm+');'}"></span>
|
|
|
+ </th:block>
|
|
|
</th:block>
|
|
|
</div>
|
|
|
<div class="star_score" th:with="starScore=${#numbers.formatDecimal((bestReview.iscore*100/5), 0,0)}">
|
|
|
@@ -330,7 +335,12 @@
|
|
|
<th:block th:each="reviewAttach, attachStatus : ${photoReview.reviewAttachList}" th:if="${attachStatus.first}">
|
|
|
<a href="javascript:void(0);" th:onclick="cfGoodsReviewDetail([[${goodsInfo.goodsCd}]], '', 'Y', [[${photoReview.reviewSq}]])">
|
|
|
<div class="pic">
|
|
|
- <span class="thumb" th:classAppend="${(reviewAttach.fileGb == 'M') ? 'mov' :''}" th:style="${'background-image:url('+imgUrl+ reviewAttach.sysFileNm+');'}"></span><!-- 동영상의 썸네일일 경우 mov 클래스 추가 -->
|
|
|
+ <th:block th:if="${reviewAttach.fileGb == 'M'}">
|
|
|
+ <span class="thumb mov" th:style="${'background-image:url('+kollusMediaUrl+'/poster/'+reviewAttach.kmcKey+');'}"></span><!-- 동영상의 썸네일일 경우 mov 클래스 추가 -->
|
|
|
+ </th:block>
|
|
|
+ <th:block th:unless="${reviewAttach.fileGb == 'M'}">
|
|
|
+ <span class="thumb" th:style="${'background-image:url('+imgUrl+ reviewAttach.sysFileNm+');'}"></span>
|
|
|
+ </th:block>
|
|
|
</div>
|
|
|
</a>
|
|
|
</th:block>
|
|
|
@@ -549,15 +559,15 @@
|
|
|
if (item.reviewAttachList != null && item.reviewAttachList.length > 0){
|
|
|
var fileGbClass = '';
|
|
|
$.each(item.reviewAttachList, function(aIdx, reviewAttach){
|
|
|
- fileGbClass = '';
|
|
|
- if (reviewAttach.fileGb == "M") fileGbClass = "mov";
|
|
|
+// fileGbClass = '';
|
|
|
+// if (reviewAttach.fileGb == "M") fileGbClass = "mov";
|
|
|
tag += ' <li>\n';
|
|
|
tag += ' <a href="javascript:void();" onclick="cfGoodsReviewDetail(\''+item.goodsCd+'\',\'\', \'Y\',\''+item.reviewSq+'\','+aIdx+');">\n';
|
|
|
tag += ' <div class="pic">\n';
|
|
|
if (reviewAttach.fileGb == "M") {
|
|
|
- tag +=' <span class="thumb '+fileGbClass+'"><iframe width="100%" height="100%" src="'+_kollusMediaUrl +'/'+reviewAttach.kmcKey +'?player_version=html5" frameborder="0" allowfullscreen webkitallowfullscreen mozallowfullscreen></iframe></span>\n';
|
|
|
+ tag +=' <span class="thumb mov" style="background-image:url('+_kollusMediaUrl +'/poster/'+reviewAttach.kmcKey +');\" ></span>\n';
|
|
|
}else{
|
|
|
- tag +=' <span class="thumb" style="background-image:url('+ _imgUrl + reviewAttach.sysFileNm +');\" >\n';
|
|
|
+ tag +=' <span class="thumb" style="background-image:url('+ _imgUrl + reviewAttach.sysFileNm +');\" ></span>\n';
|
|
|
}
|
|
|
tag += ' </div>\n';
|
|
|
tag += ' </a>\n';
|