|
|
@@ -34,6 +34,7 @@
|
|
|
<input type="hidden" name="bestYn" th:value="${review.bestYn}" />
|
|
|
<input type="hidden" name="photoYn" th:value="${review.photoYn}" />
|
|
|
<input type="hidden" name="reviewSq" th:value="${review.reviewSq}" />
|
|
|
+<input type="hidden" name="attachSq" th:value="${review.attachSq}" />
|
|
|
</form>
|
|
|
<a href="javascript:void(0);" rel="modal:close" onclick="cfCloseLayer('layer_review_best')" class="close-modal">Close</a>
|
|
|
<script th:inline="javascript">
|
|
|
@@ -55,6 +56,7 @@
|
|
|
// 목록
|
|
|
if (result.reviewList != null && result.reviewList.length > 0) {
|
|
|
let fileGbClass = '';
|
|
|
+ let rdx = $('#reviewDetailForm input[name=attachSq]').val();
|
|
|
$.each(result.reviewList, function(idx, review) {
|
|
|
let tag = '';
|
|
|
tag +='<div class="pop_cont">\n';
|
|
|
@@ -185,19 +187,21 @@
|
|
|
tag +=' <div class="thumblist">\n';
|
|
|
tag +=' <ul>\n';
|
|
|
let activeClass = '';
|
|
|
+
|
|
|
$.each(review.reviewAttachList, function(aIdx, reviewAttach){
|
|
|
activeClass = '';
|
|
|
- if (aIdx == 0){
|
|
|
+ if (aIdx == rdx){
|
|
|
activeClass = 'active';
|
|
|
}
|
|
|
fileGbClass = '';
|
|
|
if (reviewAttach.fileGb == "M") fileGbClass = "mov";
|
|
|
tag +=' <li>\n';
|
|
|
tag +=' <div class="pic '+activeClass+'"> \n'; <!-- 활성화시 active 클래스 추가 -->
|
|
|
- tag +=' <span class="thumb" class="'+fileGbClass+'" style="background-image:url('+ _imgUrl + reviewAttach.sysFileNm +');\" >\n';<!-- 동영상의 썸네일일 경우 mov 클래스 추가 -->
|
|
|
+
|
|
|
if (reviewAttach.fileGb == "M") {
|
|
|
- tag +=' <iframe width="100%" height="100%" src="'+_kollusMediaUrl +'/'+reviewAttach.kmcKey +'?player_version=html5" frameborder="0" allowfullscreen webkitallowfullscreen mozallowfullscreen></iframe>\n';
|
|
|
+ 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';
|
|
|
}else{
|
|
|
+ tag +=' <span class="thumb" style="background-image:url('+ _imgUrl + reviewAttach.sysFileNm +');\" >\n';
|
|
|
tag +=' <img src="'+ _imgUrl + reviewAttach.sysFileNm +'" alt="">\n';
|
|
|
}
|
|
|
tag +=' </span>\n';
|
|
|
@@ -238,7 +242,8 @@
|
|
|
$this.find('.thumblist ul').attr('style', 'width:' + thumbListWidth + 'px;');
|
|
|
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
+ $('.pd_photoreviewdetail_pop .thumblist ul li').eq(rdx).trigger("click");
|
|
|
});
|
|
|
}
|
|
|
|