|
|
@@ -142,50 +142,50 @@
|
|
|
if (result.dataList1 != null && result.dataList1.length > 0) {
|
|
|
$.each(result.dataList1, function(idx, item) {
|
|
|
let html = '';
|
|
|
- html += '<div class="part_goods"> ';
|
|
|
- html += ' <div class="goods_cont"> ';
|
|
|
- html += ' <div class="goods_info"> ';
|
|
|
- html += ' <div class="order_desc"> ';
|
|
|
- html += ' <div class="goods_box"> ';
|
|
|
- html += ' <div class="gd_item"> ';
|
|
|
- html += ' <a href="javascript:void(0)" onclick="cfnGoToGoodsDetail(\'' + item.goodsCd + '\')"> ';
|
|
|
- html += ' <span class="thumb"> ';
|
|
|
- html += ' <img src="' + _uploadGoodsUrl + '/' + item.sysImgNm + '?RS=550" width="100%" alt=""> ';
|
|
|
- html += ' </span> ';
|
|
|
- html += ' <p> ';
|
|
|
- html += ' <span class="buy_date"><em>'+item.ordDt+'</em> 구매</span> ';
|
|
|
- html += ' </p> ';
|
|
|
- html += ' <p> ';
|
|
|
- html += ' <span class="brand">'+item.brandNm+'</span> ';
|
|
|
- html += ' </p> ';
|
|
|
- html += ' <p> ';
|
|
|
- html += ' <span class="name">'+item.goodsNm+'</span> ';
|
|
|
- html += ' </p> ';
|
|
|
- html += ' </a> ';
|
|
|
- html += ' </div> ';
|
|
|
- html += ' <div class="gd_opt"> ';
|
|
|
- html += ' <div class="option_wrap"> ';
|
|
|
- html += ' <span class="title sr-only">주문 옵션</span> ';
|
|
|
+ html += '<div class="part_goods">\n ';
|
|
|
+ html += ' <div class="goods_cont">\n ';
|
|
|
+ html += ' <div class="goods_info">\n ';
|
|
|
+ html += ' <div class="order_desc">\n ';
|
|
|
+ html += ' <div class="goods_box">\n ';
|
|
|
+ html += ' <div class="gd_item">\n ';
|
|
|
+ html += ' <a href="javascript:void(0)" onclick="cfnGoToGoodsDetail(\'' + item.goodsCd + '\')">\n ';
|
|
|
+ html += ' <span class="thumb">\n ';
|
|
|
+ html += ' <img src="' + _uploadGoodsUrl + '/' + item.sysImgNm + '?RS=550" width="100%" alt="">\n ';
|
|
|
+ html += ' </span>\n ';
|
|
|
+ html += ' <p>\n ';
|
|
|
+ html += ' <span class="buy_date"><em>'+item.ordDt+'</em> 구매</span>\n ';
|
|
|
+ html += ' </p>\n ';
|
|
|
+ html += ' <p>\n ';
|
|
|
+ html += ' <span class="brand">'+item.brandNm+'</span>\n ';
|
|
|
+ html += ' </p>\n ';
|
|
|
+ html += ' <p>\n ';
|
|
|
+ html += ' <span class="name">'+item.goodsNm+'</span>\n ';
|
|
|
+ html += ' </p>\n ';
|
|
|
+ html += ' </a>\n ';
|
|
|
+ html += ' </div>\n ';
|
|
|
+ html += ' <div class="gd_opt">\n ';
|
|
|
+ html += ' <div class="option_wrap">\n ';
|
|
|
+ html += ' <span class="title sr-only">주문 옵션</span>\n ';
|
|
|
if (item.goodsType =='G056_S') {
|
|
|
$.each(item.colorNmArr, function (index2, option) {
|
|
|
html += ' <span class="option">' + item.itemNmArr[index2] + ' / ' + option + '</span>\n';
|
|
|
})
|
|
|
}else{
|
|
|
- html += ' <span class="option">'+item.colorNm+'</span> ';
|
|
|
+ html += ' <span class="option">'+item.colorNm+'</span>\n ';
|
|
|
}
|
|
|
- html += ' </div> ';
|
|
|
- html += ' </div> ';
|
|
|
- html += ' </div> ';
|
|
|
- html += ' <div class="status_box"> ';
|
|
|
- html += ' <p>'+item.remainDt+'일 남음</p> ';
|
|
|
- html += ' </div> ';
|
|
|
- html += ' <div class="button_box"> ';
|
|
|
- html += ' <p><button type="button" class="btn btn_primary_line btn_sm" onclick="fnReviewCreate('+item.ordNo+','+item.ordDtlNo+',\'' + item.goodsCd + '\')"><span>리뷰쓰기</span></button></p> ';
|
|
|
- html += ' </div> ';
|
|
|
- html += ' </div> ';
|
|
|
- html += ' </div> ';
|
|
|
- html += ' </div> ';
|
|
|
- html += '</div> ';
|
|
|
+ html += ' </div>\n ';
|
|
|
+ html += ' </div>\n ';
|
|
|
+ html += ' </div>\n ';
|
|
|
+ html += ' <div class="status_box">\n ';
|
|
|
+ html += ' <p>'+item.remainDt+'일 남음</p>\n ';
|
|
|
+ html += ' </div>\n ';
|
|
|
+ html += ' <div class="button_box">\n ';
|
|
|
+ html += ' <p><button type="button" class="btn btn_primary_line btn_sm" onclick="fnReviewCreate('+item.ordNo+','+item.ordDtlNo+',\'' + item.goodsCd + '\')"><span>리뷰쓰기</span></button></p>\n ';
|
|
|
+ html += ' </div>\n ';
|
|
|
+ html += ' </div>\n ';
|
|
|
+ html += ' </div>\n ';
|
|
|
+ html += ' </div>\n ';
|
|
|
+ html += '</div>\n ';
|
|
|
$('#reviewList').append(html);
|
|
|
})
|
|
|
}else{
|
|
|
@@ -205,155 +205,155 @@
|
|
|
if (result.dataList2 != null && result.dataList2.length > 0) {
|
|
|
$.each(result.dataList2, function(idx, item) {
|
|
|
let html = '';
|
|
|
- html+='<div class="part_goods">';
|
|
|
- html+=' <div class="goods_cont">';
|
|
|
- html+=' <div class="goods_info">';
|
|
|
- html+=' <div class="order_desc">';
|
|
|
- html+=' <div class="goods_box">';
|
|
|
- html+=' <div class="gd_item"> ';
|
|
|
- html+=' <a href="javascript:void(0)" onclick="cfnGoToGoodsDetail(\'' + item.goodsCd + '\')" >';
|
|
|
- html+=' <span class="thumb">';
|
|
|
- html+=' <img src="' + _uploadGoodsUrl + '/' + item.sysImgNm + '?RS=550" width="100%" alt="">';
|
|
|
- html+=' </span>';
|
|
|
- html+=' <p>';
|
|
|
- html+=' <span class="buy_date"><em>'+item.ordDt+'</em> 구매</span>';
|
|
|
- html+=' </p>';
|
|
|
- html+=' <p>';
|
|
|
- html+=' <span class="brand">'+item.brandNm+'</span>';
|
|
|
- html+=' </p>';
|
|
|
- html+=' <p>';
|
|
|
- html+=' <span class="name">'+item.goodsNm+'</span> ';
|
|
|
- html+=' </p>';
|
|
|
- html+=' </a>';
|
|
|
- html+=' </div>';
|
|
|
- html+=' <div class="gd_opt">';
|
|
|
- html+=' <div class="option_wrap">';
|
|
|
- html+=' <span class="title sr-only">주문 옵션</span>';
|
|
|
+ html+='<div class="part_goods">\n';
|
|
|
+ html+=' <div class="goods_cont">\n';
|
|
|
+ html+=' <div class="goods_info">\n';
|
|
|
+ html+=' <div class="order_desc">\n';
|
|
|
+ html+=' <div class="goods_box">\n';
|
|
|
+ html+=' <div class="gd_item">\n ';
|
|
|
+ html+=' <a href="javascript:void(0)" onclick="cfnGoToGoodsDetail(\'' + item.goodsCd + '\')" >\n';
|
|
|
+ html+=' <span class="thumb">\n';
|
|
|
+ html+=' <img src="' + _uploadGoodsUrl + '/' + item.sysImgNm + '?RS=550" width="100%" alt="">\n';
|
|
|
+ html+=' </span>\n';
|
|
|
+ html+=' <p>\n';
|
|
|
+ html+=' <span class="buy_date"><em>'+item.ordDt+'</em> 구매</span>\n';
|
|
|
+ html+=' </p>\n';
|
|
|
+ html+=' <p>\n';
|
|
|
+ html+=' <span class="brand">'+item.brandNm+'</span>\n';
|
|
|
+ html+=' </p>\n';
|
|
|
+ html+=' <p>\n';
|
|
|
+ html+=' <span class="name">'+item.goodsNm+'</span>\n ';
|
|
|
+ html+=' </p>\n';
|
|
|
+ html+=' </a>\n';
|
|
|
+ html+=' </div>\n';
|
|
|
+ html+=' <div class="gd_opt">\n';
|
|
|
+ html+=' <div class="option_wrap">\n';
|
|
|
+ html+=' <span class="title sr-only">주문 옵션</span>\n';
|
|
|
if (item.goodsType =='G056_S') {
|
|
|
$.each(item.colorNmArr, function (index2, option) {
|
|
|
html += ' <span class="option">' + item.itemNmArr[index2] + ' / ' + option +'</span>\n';
|
|
|
})
|
|
|
}else{
|
|
|
- html += ' <span class="option">'+item.colorNm+'</span> ';
|
|
|
+ html += ' <span class="option">'+item.colorNm+'</span>\n ';
|
|
|
}
|
|
|
- html+=' </div>';
|
|
|
- html+=' </div>';
|
|
|
- html+=' </div>';
|
|
|
- html+=' <div class="button_box">';
|
|
|
+ html+=' </div>\n';
|
|
|
+ html+=' </div>\n';
|
|
|
+ html+=' </div>\n';
|
|
|
+ html+=' <div class="button_box">\n';
|
|
|
if (item.admRpl == null || item.admRpl == '') {
|
|
|
- html+=' <p><button type="button" class="btn btn_default btn_sm" onclick="fnReviewUpdate('+item.ordNo+','+item.ordDtlNo+',\''+item.goodsCd+'\','+item.reviewSq+')"><span>리뷰 수정</span></button></p>';
|
|
|
+ html+=' <p><button type="button" class="btn btn_default btn_sm" onclick="fnReviewUpdate('+item.ordNo+','+item.ordDtlNo+',\''+item.goodsCd+'\','+item.reviewSq+')"><span>리뷰 수정</span></button></p>\n';
|
|
|
}
|
|
|
- html+=' <p><button type="button" class="btn btn_default btn_sm" onclick="fnDeleteReview('+item.reviewSq+')"><span>리뷰 삭제</span></button></p>';
|
|
|
- html+=' </div>';
|
|
|
- html+=' </div>';
|
|
|
- html+=' <div class="order_review">';
|
|
|
- html+=' <div class="review">';
|
|
|
- html+=' <div class="info_box">';
|
|
|
- html+=' <div class="star_score">';
|
|
|
- html+=' <span class="star">';
|
|
|
- html+=' <em class="progbar" style="width:'+(item.score*20)+'%;"></em>';
|
|
|
- html+=' </span>';
|
|
|
- html+=' </div>';
|
|
|
- html+=' <div class="writer">';
|
|
|
- html+=' <span class="wr_date">'+item.regDt+'</span>';
|
|
|
- html+=' </div>';
|
|
|
- html+=' </div>';
|
|
|
- html+=' <div class="response_box">';
|
|
|
- html+=' <div>';
|
|
|
- html+=' <dl>';
|
|
|
- html+=' <div>';
|
|
|
- html+=' <dt>구매옵션</dt>';
|
|
|
- html+=' <dd>'+item.colorNm+'</dd>';
|
|
|
- html+=' </div>';
|
|
|
- html+=' </dl>';
|
|
|
- html+=' </div>';
|
|
|
- html+=' <div>';
|
|
|
- html+=' <dl>';
|
|
|
- html+=' <div>';
|
|
|
- html+=' <dt>키/몸무게</dt>';
|
|
|
- html+=' <dd>'+item.height+'cm/'+item.weight+'kg</dd>';
|
|
|
- html+=' </div>';
|
|
|
+ html+=' <p><button type="button" class="btn btn_default btn_sm" onclick="fnDeleteReview('+item.reviewSq+')"><span>리뷰 삭제</span></button></p>\n';
|
|
|
+ html+=' </div>\n';
|
|
|
+ html+=' </div>\n';
|
|
|
+ html+=' <div class="order_review">\n';
|
|
|
+ html+=' <div class="review">\n';
|
|
|
+ html+=' <div class="info_box">\n';
|
|
|
+ html+=' <div class="star_score">\n';
|
|
|
+ html+=' <span class="star">\n';
|
|
|
+ html+=' <em class="progbar" style="width:'+(item.score*20)+'%;"></em>\n';
|
|
|
+ html+=' </span>\n';
|
|
|
+ html+=' </div>\n';
|
|
|
+ html+=' <div class="writer">\n';
|
|
|
+ html+=' <span class="wr_date">'+item.regDt+'</span>\n';
|
|
|
+ html+=' </div>\n';
|
|
|
+ html+=' </div>\n';
|
|
|
+ html+=' <div class="response_box">\n';
|
|
|
+ html+=' <div>\n';
|
|
|
+ html+=' <dl>\n';
|
|
|
+ html+=' <div>\n';
|
|
|
+ html+=' <dt>구매옵션</dt>\n';
|
|
|
+ html+=' <dd>'+item.colorNm+'</dd>\n';
|
|
|
+ html+=' </div>\n';
|
|
|
+ html+=' </dl>\n';
|
|
|
+ html+=' </div>\n';
|
|
|
+ html+=' <div>\n';
|
|
|
+ html+=' <dl>\n';
|
|
|
+ html+=' <div>\n';
|
|
|
+ html+=' <dt>키/몸무게</dt>\n';
|
|
|
+ html+=' <dd>'+item.height+'cm/'+item.weight+'kg</dd>\n';
|
|
|
+ html+=' </div>\n';
|
|
|
if (item.sizeGb == 'T' || item.sizeGb == 'B' || item.sizeGb == 'S') {
|
|
|
- html+=' <div>';
|
|
|
- html+=' <dt>사이즈</dt>';
|
|
|
- html+=' <dd>'+item.scoreSize+'</dd>';
|
|
|
- html+=' </div>';
|
|
|
- html+=' <div>';
|
|
|
- html+=' <dt>컬러</dt>';
|
|
|
- html+=' <dd>'+item.scoreColor+'</dd>';
|
|
|
- html+=' </div>';
|
|
|
+ html+=' <div>\n';
|
|
|
+ html+=' <dt>사이즈</dt>\n';
|
|
|
+ html+=' <dd>'+item.scoreSize+'</dd>\n';
|
|
|
+ html+=' </div>\n';
|
|
|
+ html+=' <div>\n';
|
|
|
+ html+=' <dt>컬러</dt>\n';
|
|
|
+ html+=' <dd>'+item.scoreColor+'</dd>\n';
|
|
|
+ html+=' </div>\n';
|
|
|
}
|
|
|
if (item.sizeGb == 'T' || item.sizeGb == 'B') {
|
|
|
- html+=' <div>';
|
|
|
- html+=' <dt>핏</dt>';
|
|
|
- html+=' <dd>'+item.scoreFit+'</dd>';
|
|
|
- html+=' </div>';
|
|
|
- html+=' <div>';
|
|
|
- html+=' <dt>두께감</dt>';
|
|
|
- html+=' <dd>'+item.scoreThick+'</dd>';
|
|
|
- html+=' </div>';
|
|
|
+ html+=' <div>\n';
|
|
|
+ html+=' <dt>핏</dt>\n';
|
|
|
+ html+=' <dd>'+item.scoreFit+'</dd>\n';
|
|
|
+ html+=' </div\n>';
|
|
|
+ html+=' <div>\n';
|
|
|
+ html+=' <dt>두께감</dt>\n';
|
|
|
+ html+=' <dd>'+item.scoreThick+'</dd>\n';
|
|
|
+ html+=' </div>\n';
|
|
|
}
|
|
|
if (item.sizeGb == 'S') {
|
|
|
- html+=' <div>';
|
|
|
- html+=' <dt>무게감</dt>';
|
|
|
- html+=' <dd>'+item.scoreWeight+'</dd>';
|
|
|
- html+=' </div>';
|
|
|
- html+=' <div>';
|
|
|
- html+=' <dt>볼넓이</dt>';
|
|
|
- html+=' <dd>'+item.scoreBall+'</dd>';
|
|
|
- html+=' </div>';
|
|
|
+ html+=' <div>\n';
|
|
|
+ html+=' <dt>무게감</dt>\n';
|
|
|
+ html+=' <dd>'+item.scoreWeight+'</dd>\n';
|
|
|
+ html+=' </div>\n';
|
|
|
+ html+=' <div>\n';
|
|
|
+ html+=' <dt>볼넓이</dt>\n';
|
|
|
+ html+=' <dd>'+item.scoreBall+'</dd>\n';
|
|
|
+ html+=' </div>\n';
|
|
|
}
|
|
|
- html+=' </dl>';
|
|
|
- html+=' </div>';
|
|
|
- html+=' </div>';
|
|
|
+ html+=' </dl>\n';
|
|
|
+ html+=' </div>\n';
|
|
|
+ html+=' </div>\n';
|
|
|
if (attachList != null && attachList.length >0) {
|
|
|
- html+=' <div class="photo_box">';
|
|
|
- html+=' <div class="photo_list">';
|
|
|
+ html+=' <div class="photo_box">\n';
|
|
|
+ html+=' <div class="photo_list">\n';
|
|
|
html+=' <ul>';
|
|
|
/* for (var i = 0; i < attachList.length; i++) { */
|
|
|
$.each(attachList, function(aIdx, attachList){
|
|
|
if (attachList.reviewSq == item.reviewSq) {
|
|
|
- html+=' <li>';
|
|
|
- html+=' <a>';
|
|
|
- html+=' <div class="pic">';
|
|
|
+ html+=' <li>\n';
|
|
|
+ html+=' <a>\n';
|
|
|
+ html+=' <div class="pic">\n';
|
|
|
if (attachList.fileGb == 'M') {
|
|
|
- html+=' <span onclick="cfMypageReviewDetail(\''+item.goodsCd+'\', \'Y\',\''+item.reviewSq+'\',\''+attachList.rvAtcSq+'\');" class="thumb mov" style="background-image:url(' + _kollusMediaUrl + '/poster/' + attachList.kmcKey + '?player_version=html5);"></span>';
|
|
|
+ html+=' <span onclick="cfMypageReviewDetail(\''+item.goodsCd+'\', \'Y\',\''+item.reviewSq+'\',\''+attachList.rvAtcSq+'\');" class="thumb mov" style="background-image:url(' + _kollusMediaUrl + '/poster/' + attachList.kmcKey + '?player_version=html5);"></span>\n';
|
|
|
}else{
|
|
|
- html+=' <span onclick="cfMypageReviewDetail(\''+item.goodsCd+'\', \'Y\',\''+item.reviewSq+'\',\''+attachList.rvAtcSq+'\');" class="thumb" style="background-image:url(' + _uploadImageUrl + '/' + attachList.sysFileNm + ');"></span>';
|
|
|
+ html+=' <span onclick="cfMypageReviewDetail(\''+item.goodsCd+'\', \'Y\',\''+item.reviewSq+'\',\''+attachList.rvAtcSq+'\');" class="thumb" style="background-image:url(' + _uploadImageUrl + '/' + attachList.sysFileNm + ');"></span>\n';
|
|
|
}
|
|
|
- html+=' </div>';
|
|
|
- html+=' </a>';
|
|
|
- html+=' </li>';
|
|
|
+ html+=' </div>\n';
|
|
|
+ html+=' </a>\n';
|
|
|
+ html+=' </li>\n';
|
|
|
}
|
|
|
})
|
|
|
- html+=' </ul>';
|
|
|
- html+=' </div>';
|
|
|
- html+=' </div>';
|
|
|
+ html+=' </ul>\n';
|
|
|
+ html+=' </div>\n';
|
|
|
+ html+=' </div>\n';
|
|
|
|
|
|
}
|
|
|
- html+=' <div class="txt_review_box" id="admin_'+item.reviewSq+'">';
|
|
|
- html+=' <p>'+item.reviewContent.escapeHtml()+'</p>';
|
|
|
- html+=' </div>';
|
|
|
+ html+=' <div class="txt_review_box" id="admin_'+item.reviewSq+'">\n';
|
|
|
+ html+=' <p>'+item.reviewContent.escapeHtml()+'</p>\n';
|
|
|
+ html+=' </div>\n';
|
|
|
|
|
|
if (item.admRpl != null && item.admRpl != '') {
|
|
|
- html+=' <div class="reply_box" >';
|
|
|
- html+=' <div class="reply">';
|
|
|
- html+=' <div class="reply_writer">';
|
|
|
- html+=' <span class="wr_name">관리자</span>';
|
|
|
- html+=' <span class="wr_date">'+item.admRplDt+'</span>';
|
|
|
- html+=' </div>';
|
|
|
- html+=' <div class="reply_txt">';
|
|
|
- html+=' <p>'+item.admRpl.escapeHtml()+'</p>';
|
|
|
- html+=' </div>';
|
|
|
- html+=' </div>';
|
|
|
- html+=' </div>';
|
|
|
+ html+=' <div class="reply_box" >\n';
|
|
|
+ html+=' <div class="reply">\n';
|
|
|
+ html+=' <div class="reply_writer">\n';
|
|
|
+ html+=' <span class="wr_name">관리자</span>\n';
|
|
|
+ html+=' <span class="wr_date">'+item.admRplDt+'</span>\n';
|
|
|
+ html+=' </div>\n';
|
|
|
+ html+=' <div class="reply_txt">\n';
|
|
|
+ html+=' <p>'+item.admRpl.escapeHtml()+'</p>\n';
|
|
|
+ html+=' </div>\n';
|
|
|
+ html+=' </div>\n';
|
|
|
+ html+=' </div>\n';
|
|
|
}
|
|
|
|
|
|
- html+=' </div>';
|
|
|
- html+=' </div>';
|
|
|
- html+=' </div>';
|
|
|
- html+=' </div>';
|
|
|
- html+='</div> ';
|
|
|
+ html+=' </div>\n';
|
|
|
+ html+=' </div>\n';
|
|
|
+ html+=' </div>\n';
|
|
|
+ html+=' </div>\n';
|
|
|
+ html+='</div>\n ';
|
|
|
|
|
|
|
|
|
$('#reviewList').append(html);
|