|
|
@@ -127,11 +127,11 @@
|
|
|
</ul>
|
|
|
</div> -->
|
|
|
<!-- 임시 -->
|
|
|
- <div class="paging_wrap">
|
|
|
+ <!-- <div class="paging_wrap">
|
|
|
<ul class="pageNav" id="paging">
|
|
|
|
|
|
</ul>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
<!-- 임시 -->
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -224,7 +224,7 @@
|
|
|
<input type="hidden" name="planSq" th:value="${planInfo.planSq}" />
|
|
|
<input type="hidden" name="pageSize" value="10" />
|
|
|
</form>
|
|
|
-<script src="/ux/plugins/gaga/gaga.paging.js"></script>
|
|
|
+<script src="/ux/plugins/gaga/gaga.singlePaging.js"></script>
|
|
|
<script th:inline="javascript">
|
|
|
let review = [[${reviewInfo}]];
|
|
|
let coupon = [[${couponInfo}]];
|
|
|
@@ -239,9 +239,6 @@ let replyCount = [[${replyCount}]];
|
|
|
let replyAttachList = [[${replyAttachList}]];
|
|
|
let planCornerGoodsList = [[${planCornerGoodsList}]];
|
|
|
let planCornerList = [[${planCornerList}]];
|
|
|
-let _mall = [[${@environment.getProperty('domain.front')}]];
|
|
|
-let goodsView =[[${@environment.getProperty('upload.goods.view')}]]
|
|
|
-let imgUrl=[[${@environment.getProperty('upload.image.view')}]];
|
|
|
|
|
|
var ajaxReplyList = function () {
|
|
|
gagaPaging.init('searchForm', fnSearchCallback, 'paging', 10);
|
|
|
@@ -272,7 +269,7 @@ var fnSearchCallback = function (result) {
|
|
|
html += ' <div class="img_wrap clear">';
|
|
|
for (var i = 0; i < result.replyAttachList.length; i++) {
|
|
|
if(result.replyAttachList[i].planEntrySq == item.planEntrySq){
|
|
|
- html += ' <div class="pics"><img class="picsThumbs" src="'+ imgUrl +'/'+result.replyAttachList[i].sysFileNm +'" onclick="cfPlanReplyDetail(\''+item.planSq+'\',\''+item.planEntrySq+'\',\''+result.replyAttachList[i].planEntryAtSq+'\');"></div>';
|
|
|
+ html += ' <div class="pics"><img class="picsThumbs" src="'+ _uploadImageUrl +'/'+result.replyAttachList[i].sysFileNm +'" onclick="cfPlanReplyDetail(\''+item.planSq+'\',\''+item.planEntrySq+'\',\''+result.replyAttachList[i].planEntryAtSq+'\');"></div>';
|
|
|
}
|
|
|
}
|
|
|
html += ' </div>';
|
|
|
@@ -282,6 +279,11 @@ var fnSearchCallback = function (result) {
|
|
|
html += ' </li>';
|
|
|
});
|
|
|
html += '</ul>';
|
|
|
+ html += '<div class="paging_wrap">';
|
|
|
+ html += ' <ul class="pageNav" id="paging">';
|
|
|
+ html += ' </ul>';
|
|
|
+ html += '</div>';
|
|
|
+
|
|
|
}else{
|
|
|
html += '<div class="nodata"> ';
|
|
|
html += ' <div class="txt_box"> ';
|
|
|
@@ -413,37 +415,37 @@ if(planCornerList.length>0){
|
|
|
|
|
|
var html = '';
|
|
|
$.each(planCornerList, function(idx, item) {
|
|
|
- html += '<div class="inner" >';
|
|
|
- html += ' <div class="dp_listItems_wrap type'+(idx+1)+'"> ';
|
|
|
- html += ' <h2 class="dp_subtitle">'+item.cornerNm+'</h2>';
|
|
|
- html += ' <div class="list_content">';
|
|
|
- html += ' <div class="itemsGrp">';
|
|
|
+ html += '<div class="inner" >\n';
|
|
|
+ html += ' <div class="dp_listItems_wrap type'+(idx+1)+'">\n ';
|
|
|
+ html += ' <h2 class="dp_subtitle">'+item.cornerNm+'</h2>\n';
|
|
|
+ html += ' <div class="list_content">\n';
|
|
|
+ html += ' <div class="itemsGrp">\n';
|
|
|
$.each(planCornerGoodsList, function(idx2, item2) {
|
|
|
if (item2.cornerNm == item.cornerNm) {
|
|
|
- html += ' <div class="item_prod">';
|
|
|
- html += ' <div class="item_state">';
|
|
|
+ html += ' <div class="item_prod">\n';
|
|
|
+ html += ' <div class="item_state">\n';
|
|
|
html += ' <button type="button" class="itemLike';
|
|
|
if(item2.likeIt == 'likeit'){
|
|
|
html += ' likeit';
|
|
|
}
|
|
|
html += ' "';
|
|
|
- html += 'onClick="cfnPutWishList(this);" goodsCd=\''+item2.goodsCd+'\', ithrCd=\'\', contentsLoc=\'\', planDtlSq=\'\'>관심상품 추가</button>';
|
|
|
- html += ' <a href="javascript:void(0);" onclick="cfnGoToGoodsDetail(\'' + item2.goodsCd + '\')" class="itemLink">';
|
|
|
- html += ' <div class="itemPic">';
|
|
|
- html += ' <img class="vLHTC pd_img" src="'+ goodsView +'/'+item2.sysImgNm +'">';
|
|
|
- html += ' </div>';
|
|
|
- html += ' <p class="itemBrand">'+item2.brandGroupNm+'</p>';
|
|
|
- html += ' <div class="itemName">'+item2.goodsNm+'</div>';
|
|
|
- html += ' <p class="itemPrice">';
|
|
|
+ html += 'onClick="cfnPutWishList(this);" goodsCd=\''+item2.goodsCd+'\', ithrCd=\'\', contentsLoc=\'\', planDtlSq=\'\'>관심상품 추가</button>\n';
|
|
|
+ html += ' <a href="javascript:void(0);" onclick="cfnGoToGoodsDetail(\'' + item2.goodsCd + '\')" class="itemLink">\n';
|
|
|
+ html += ' <div class="itemPic">\n';
|
|
|
+ html += ' <img class="vLHTC pd_img" src="'+ _uploadGoodsUrl +'/'+item2.sysImgNm +'">\n';
|
|
|
+ html += ' </div>\n';
|
|
|
+ html += ' <p class="itemBrand">'+item2.brandGroupNm+'</p>\n';
|
|
|
+ html += ' <div class="itemName">'+item2.goodsNm+'</div>\n';
|
|
|
+ html += ' <p class="itemPrice">\n';
|
|
|
if (item2.currPrice != item2.listPrice) {
|
|
|
- html += ' <span class="itemPrice_original">'+item2.listPrice.addComma()+'</span>';
|
|
|
+ html += ' <span class="itemPrice_original">'+item2.listPrice.addComma()+'</span>\n';
|
|
|
}
|
|
|
html += item2.currPrice.addComma();
|
|
|
if (item2.dcRate != 0) {
|
|
|
- html += ' <span class="itemPercent">'+item2.dcRate.addComma()+'%</span>';
|
|
|
+ html += ' <span class="itemPercent">'+item2.dcRate.addComma()+'%</span>\n';
|
|
|
}
|
|
|
- html += ' </p>';
|
|
|
- html += ' <div class="itemcolorchip">';
|
|
|
+ html += ' </p>\n';
|
|
|
+ html += ' <div class="itemcolorchip">\n';
|
|
|
if(!gagajf.isNull(item2.colorChips)){
|
|
|
var colorArr = item2.colorChips.split(",");
|
|
|
var colorCd = '';
|
|
|
@@ -453,38 +455,38 @@ if(planCornerList.length>0){
|
|
|
colorCd = colorInfo[0];
|
|
|
rgbColor = colorInfo[1];
|
|
|
if(rgbColor=='#FFFFFF'){
|
|
|
- html += ' <span class="chip_color" style="background-color: '+rgbColor+';border:1px solid #aaa;" value="'+colorCd+'">'+colorCd+'</span>';
|
|
|
+ html += ' <span class="chip_color" style="background-color: '+rgbColor+';border:1px solid #aaa;" value="'+colorCd+'">'+colorCd+'</span>\n';
|
|
|
}else{
|
|
|
- html += ' <span class="chip_color" style="background-color: '+rgbColor+'" value="'+colorCd+'">'+colorCd+'</span>';
|
|
|
+ html += ' <span class="chip_color" style="background-color: '+rgbColor+'" value="'+colorCd+'">'+colorCd+'</span>\n';
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- html += ' </div>';
|
|
|
+ html += ' </div>\n';
|
|
|
if(!gagajf.isNull(item2.icon)){
|
|
|
var iconArr = item2.icon.split(",");
|
|
|
var iconGb = '';
|
|
|
var iconNm = '';
|
|
|
- html += ' <p class="itemBadge">';
|
|
|
+ html += ' <p class="itemBadge">\n';
|
|
|
for(let i=0; i<iconArr.length; i++){
|
|
|
var iconInfo = iconArr[i].split(":");
|
|
|
iconGb = iconInfo[0];
|
|
|
iconNm = iconInfo[1];
|
|
|
- html += ' <span class="badge13" value="'+iconGb+'">'+iconNm+' </span>';
|
|
|
+ html += ' <span class="badge13" value="'+iconGb+'">'+iconNm+' </span>\n';
|
|
|
}
|
|
|
- html += ' </p>';
|
|
|
+ html += ' </p>\n';
|
|
|
}
|
|
|
if(item2.goodsTnm != null){
|
|
|
- html += ' <div class="itemComment">'+item2.goodsTnm+'</div>';
|
|
|
+ html += ' <div class="itemComment">'+item2.goodsTnm+'</div>\n';
|
|
|
}
|
|
|
- html += ' </a>';
|
|
|
- html += ' </div>';
|
|
|
- html += ' </div>';
|
|
|
+ html += ' </a>\n';
|
|
|
+ html += ' </div>\n';
|
|
|
+ html += ' </div>\n';
|
|
|
}
|
|
|
});
|
|
|
- html += ' </div>';
|
|
|
- html += ' </div>';
|
|
|
- html += ' </div>';
|
|
|
- html += '</div>';
|
|
|
+ html += ' </div>\n';
|
|
|
+ html += ' </div>\n';
|
|
|
+ html += ' </div>\n';
|
|
|
+ html += '</div>\n';
|
|
|
|
|
|
});
|
|
|
|
|
|
@@ -524,7 +526,7 @@ if(goods1.length>0){
|
|
|
html += ' <div class="item_state">\n';
|
|
|
html += ' <a href="#none" class="itemLink">\n';
|
|
|
html += ' <div class="itemPic">\n';
|
|
|
- html += ' <img class="vLHTC pd_img" src="'+ goodsView +'/'+item.sysImgNm +'?RS=780" alt="">\n';
|
|
|
+ html += ' <img class="vLHTC pd_img" src="'+ _uploadGoodsUrl +'/'+item.sysImgNm +'?RS=780" alt="">\n';
|
|
|
html += ' </div>\n';
|
|
|
html += ' <p class="itemBrand">'+item.brandGroupNm+'</p>\n';
|
|
|
html += ' <div class="itemName">'+item.goodsNm+'</div>\n';
|
|
|
@@ -574,29 +576,29 @@ var fnGetCompleteCallback = function (result) {
|
|
|
if (result.dataList != null && result.dataList.length > 0) {
|
|
|
var html = '';
|
|
|
$.each(result.dataList, function(idx, item) {
|
|
|
- html += ' <div class="item_prod">';
|
|
|
- html += ' <div class="item_state">';
|
|
|
- html += ' <a onclick="cfnGoToGoodsDetail(\'' + item.goodsCd + '\')" class="itemLink">';
|
|
|
- html += ' <div class="itemPic">';
|
|
|
- html += ' <img class="vLHTC pd_img" src="'+ goodsView +'/'+item.sysImgNm +'">';
|
|
|
- html += ' </div>';
|
|
|
- html += ' <p class="itemBrand">'+item.brandGroupNm+'</p>';
|
|
|
- html += ' <div class="itemName">'+item.goodsNm+'</div>';
|
|
|
- html += ' <p class="itemPrice">';
|
|
|
+ html += ' <div class="item_prod">\n';
|
|
|
+ html += ' <div class="item_state">\n';
|
|
|
+ html += ' <a onclick="cfnGoToGoodsDetail(\'' + item.goodsCd + '\')" class="itemLink">\n';
|
|
|
+ html += ' <div class="itemPic">\n';
|
|
|
+ html += ' <img class="vLHTC pd_img" src="'+ _uploadGoodsUrl +'/'+item.sysImgNm +'">\n';
|
|
|
+ html += ' </div>\n';
|
|
|
+ html += ' <p class="itemBrand">'+item.brandGroupNm+'</p>\n';
|
|
|
+ html += ' <div class="itemName">'+item.goodsNm+'</div>\n';
|
|
|
+ html += ' <p class="itemPrice">\n';
|
|
|
if (item.currPrice != item.listPrice) {
|
|
|
- html += ' <span class="itemPrice_original">'+item.listPrice.addComma()+'</span>';
|
|
|
+ html += ' <span class="itemPrice_original">'+item.listPrice.addComma()+'</span>\n';
|
|
|
}
|
|
|
html += item.currPrice.addComma();
|
|
|
if (item.currPrice != item.listPrice) {
|
|
|
- html += ' <span class="itemPercent">'+Math.floor(item.dcRate)+'%</span>';
|
|
|
+ html += ' <span class="itemPercent">'+Math.floor(item.dcRate)+'%</span>\n';
|
|
|
}
|
|
|
- html += ' </p>';
|
|
|
+ html += ' </p>\n';
|
|
|
if(item.goodsTnm != null){
|
|
|
- html += ' <div class="itemComment">'+item.goodsTnm+'</div>';
|
|
|
+ html += ' <div class="itemComment">'+item.goodsTnm+'</div>\n';
|
|
|
}
|
|
|
- html += ' </a>';
|
|
|
- html += ' </div>';
|
|
|
- html += ' </div>';
|
|
|
+ html += ' </a>\n';
|
|
|
+ html += ' </div>\n';
|
|
|
+ html += ' </div>\n';
|
|
|
});
|
|
|
$('#group_'+result.dataList[0].planContSq).append(html);
|
|
|
if (result.paging1.pageable2.totalPage > result.paging1.pageable2.pageNo) {
|
|
|
@@ -628,53 +630,53 @@ if(goods4.length>0){
|
|
|
|
|
|
for (var i = 0; i < template.length; i++) {
|
|
|
if(template[i].tmplType == 'G082_52' && array[0] == template[i].planContSq && typeof array[0] != 'undefined'){
|
|
|
- html += '<div class="dp_listItems_cont type2">';
|
|
|
+ html += '<div class="dp_listItems_cont type2">\n';
|
|
|
if (template[i].linkUrl != null && template[i].linkUrl != '') { /* 링크 변경 예정 */
|
|
|
if (template[i].linkOpenGb == "M") { //본창
|
|
|
- html += ' <h2 class="dp_subtitle"><a href="'+template[i].linkUrl+'" target="_self">'+template[i].title+' </a></h2>';
|
|
|
+ html += ' <h2 class="dp_subtitle"><a href="'+template[i].linkUrl+'" target="_self">'+template[i].title+' </a></h2>\n';
|
|
|
}else{
|
|
|
- html += ' <h2 class="dp_subtitle"><a href="'+template[i].linkUrl+'" target="_blank">'+template[i].title+' </a></h2>';
|
|
|
+ html += ' <h2 class="dp_subtitle"><a href="'+template[i].linkUrl+'" target="_blank">'+template[i].title+' </a></h2>\n';
|
|
|
}
|
|
|
}else{
|
|
|
- html += ' <h2 class="dp_subtitle"><a href="javascript:void(0)">'+template[i].title+' </a></h2>';
|
|
|
+ html += ' <h2 class="dp_subtitle"><a href="javascript:void(0)">'+template[i].title+' </a></h2>\n';
|
|
|
}
|
|
|
|
|
|
- html += ' <div class="swiper-container item02">';
|
|
|
- html += ' <div class="swiper-wrapper">';
|
|
|
+ html += ' <div class="swiper-container item02">\n';
|
|
|
+ html += ' <div class="swiper-wrapper">\n';
|
|
|
$.each(goods4, function(idx, item) {
|
|
|
- html += ' <div class="swiper-slide">';
|
|
|
- html += ' <div class="item_prod">';
|
|
|
- html += ' <div class="item_state">';
|
|
|
- html += ' <a onclick="cfnGoToGoodsDetail(\'' + item.goodsCd + '\')" class="itemLink">';
|
|
|
- html += ' <div class="itemPic">';
|
|
|
- html += ' <img class="vLHTC pd_img" src="'+ goodsView +'/'+item.sysImgNm +'">';
|
|
|
- html += ' </div>';
|
|
|
- html += ' <p class="itemBrand">'+item.brandGroupNm+'</p>';
|
|
|
- html += ' <div class="itemName">'+item.goodsNm+'</div>';
|
|
|
- html += ' <p class="itemPrice">';
|
|
|
+ html += ' <div class="swiper-slide">\n';
|
|
|
+ html += ' <div class="item_prod">\n';
|
|
|
+ html += ' <div class="item_state">\n';
|
|
|
+ html += ' <a onclick="cfnGoToGoodsDetail(\'' + item.goodsCd + '\')" class="itemLink">\n';
|
|
|
+ html += ' <div class="itemPic">\n';
|
|
|
+ html += ' <img class="vLHTC pd_img" src="'+ _uploadGoodsUrl +'/'+item.sysImgNm +'">\n';
|
|
|
+ html += ' </div>\n';
|
|
|
+ html += ' <p class="itemBrand">'+item.brandGroupNm+'</p>\n';
|
|
|
+ html += ' <div class="itemName">'+item.goodsNm+'</div>\n';
|
|
|
+ html += ' <p class="itemPrice">\n';
|
|
|
if (item.currPrice != item.listPrice) {
|
|
|
- html += ' <span class="itemPrice_original">'+item.listPrice.addComma()+'</span>';
|
|
|
+ html += ' <span class="itemPrice_original">'+item.listPrice.addComma()+'</span>\n';
|
|
|
}
|
|
|
|
|
|
html += item.currPrice.addComma();
|
|
|
if (item.currPrice != item.listPrice) {
|
|
|
- html += ' <span class="itemPercent">'+Math.floor(item.dcRate)+'%</span>';
|
|
|
+ html += ' <span class="itemPercent">'+Math.floor(item.dcRate)+'%</span>\n';
|
|
|
}
|
|
|
- html += ' </p>';
|
|
|
+ html += ' </p>\n';
|
|
|
if(item.goodsTnm != null){
|
|
|
- html += ' <div class="itemComment">'+item.goodsTnm+'</div>';
|
|
|
+ html += ' <div class="itemComment">'+item.goodsTnm+'</div>\n';
|
|
|
}
|
|
|
|
|
|
- html += ' </a>';
|
|
|
- html += ' </div>';
|
|
|
- html += ' </div>';
|
|
|
- html += ' </div>';
|
|
|
+ html += ' </a>\n';
|
|
|
+ html += ' </div>\n';
|
|
|
+ html += ' </div>\n';
|
|
|
+ html += ' </div>\n';
|
|
|
})
|
|
|
|
|
|
- html += ' </div>';
|
|
|
- html += ' <div class="swiper-pagination"></div>';
|
|
|
- html += ' </div>';
|
|
|
- html += '</div>';
|
|
|
+ html += ' </div>\n';
|
|
|
+ html += ' <div class="swiper-pagination"></div>\n';
|
|
|
+ html += ' </div>\n';
|
|
|
+ html += '</div>\n';
|
|
|
$("#G082_52" +array[0]).append(html);
|
|
|
}
|
|
|
if($("#G082_52" +template[i].planContSq).length){
|
|
|
@@ -706,12 +708,12 @@ if(review.length>0){
|
|
|
html += ' <div class="pic">\n';
|
|
|
if(item.reviewSysImg!= null){
|
|
|
if (item.fileGb == 'M') {
|
|
|
- html += ' <span class="thumb mov" style="background-image:url('+ imgUrl+item.reviewSysImg +');"></span>\n';
|
|
|
+ html += ' <span class="thumb mov" style="background-image:url('+ _uploadImageUrl+item.reviewSysImg +');"></span>\n';
|
|
|
}else{
|
|
|
- html += ' <span class="thumb" style="background-image:url('+ imgUrl +item.reviewSysImg +');"></span>\n';
|
|
|
+ html += ' <span class="thumb" style="background-image:url('+ _uploadImageUrl +item.reviewSysImg +');"></span>\n';
|
|
|
}
|
|
|
}else{
|
|
|
- html += ' <span class="thumb" style="background-image:url('+ goodsView+'/'+item.sysImgNm +');"></span>\n';
|
|
|
+ html += ' <span class="thumb" style="background-image:url('+ _uploadGoodsUrl+'/'+item.sysImgNm +');"></span>\n';
|
|
|
}
|
|
|
html += ' </div>\n';
|
|
|
html += ' <div class="info">\n';
|
|
|
@@ -741,7 +743,7 @@ if(review.length>0){
|
|
|
html += ' <div class="item_state">\n';
|
|
|
html += ' <a href="javascript:void(0)" onclick="cfnGoToGoodsDetail(\'' + item.goodsCd + '\')" class="itemLink">\n';
|
|
|
html += ' <div class="itemPic">\n';
|
|
|
- html += ' <img alt="" class="vLHTC pd_img" src="'+ goodsView +'/'+item.sysImgNm +'">\n';
|
|
|
+ html += ' <img alt="" class="vLHTC pd_img" src="'+ _uploadGoodsUrl +'/'+item.sysImgNm +'">\n';
|
|
|
html += ' </div>\n';
|
|
|
html += ' <div class="itemName">'+item.goodsNm+'</div>\n';
|
|
|
html += ' <p class="itemPrice">\n';
|
|
|
@@ -768,25 +770,25 @@ if(review.length>0){
|
|
|
if(image.length>0){
|
|
|
var html = '';
|
|
|
|
|
|
- html += '<div class="promotion_visual type2">';
|
|
|
- html += ' <div class="big_banner_slide">';
|
|
|
- html += ' <div class="swiper-container">';
|
|
|
- html += ' <div class="swiper-wrapper">';
|
|
|
+ html += '<div class="promotion_visual type2">\n';
|
|
|
+ html += ' <div class="big_banner_slide">\n';
|
|
|
+ html += ' <div class="swiper-container">\n';
|
|
|
+ html += ' <div class="swiper-wrapper">\n';
|
|
|
$.each(image, function(idx, item) {
|
|
|
- html += ' <div class="swiper-slide">';
|
|
|
+ html += ' <div class="swiper-slide">\n';
|
|
|
if (item.linkOpenGb == 'M') {
|
|
|
- html += ' <a href="'+item.linkUrl+'" target="_self"><img src="'+ imgUrl + item.itemVal +'?RS=1206" ></a>';
|
|
|
+ html += ' <a href="'+item.linkUrl+'" target="_self"><img src="'+ _uploadImageUrl + item.itemVal +'?RS=1206" ></a>\n';
|
|
|
}else{
|
|
|
- html += ' <a href="'+item.linkUrl+'" target="_blank"><img src="'+ imgUrl + item.itemVal +'?RS=1206" ></a>';
|
|
|
+ html += ' <a href="'+item.linkUrl+'" target="_blank"><img src="'+ _uploadImageUrl + item.itemVal +'?RS=1206" ></a>\n';
|
|
|
}
|
|
|
- html += ' </div>';
|
|
|
+ html += ' </div>\n';
|
|
|
});
|
|
|
|
|
|
- html += ' </div>';
|
|
|
- html += ' <div class="swiper-pagination"></div>';
|
|
|
- html += ' </div>';
|
|
|
- html += ' </div>';
|
|
|
- html += '</div>';
|
|
|
+ html += ' </div>\n';
|
|
|
+ html += ' <div class="swiper-pagination"></div>\n';
|
|
|
+ html += ' </div>\n';
|
|
|
+ html += ' </div>\n';
|
|
|
+ html += '</div>\n';
|
|
|
|
|
|
$("#G082_30").append(html);
|
|
|
}
|
|
|
@@ -794,52 +796,52 @@ if(image.length>0){
|
|
|
if(coupon.length>0){
|
|
|
var html = '';
|
|
|
|
|
|
- html += '<div class="dp_coupon">';
|
|
|
- html += ' <h2 class="dp_subtitle">'+coupon[0].title+'</h2>';
|
|
|
- html += ' <div class="coupon_list">';
|
|
|
- html += ' <ul class="clear">';
|
|
|
+ html += '<div class="dp_coupon">\n';
|
|
|
+ html += ' <h2 class="dp_subtitle">'+coupon[0].title+'</h2>\n';
|
|
|
+ html += ' <div class="coupon_list">\n';
|
|
|
+ html += ' <ul class="clear">\n';
|
|
|
$.each(coupon, function(idx, item) {
|
|
|
if (item.couponStat == '쿠폰받기') {
|
|
|
- html += ' <li> ';
|
|
|
+ html += ' <li>\n';
|
|
|
}else{
|
|
|
- html += ' <li class="off"> ';
|
|
|
+ html += ' <li class="off">\n';
|
|
|
}
|
|
|
|
|
|
- html += ' <div class="cp_top">';
|
|
|
- html += ' <div class="cp_detail">';
|
|
|
- html += ' <p class="tit">'+item.cpnNm+'</p>';
|
|
|
- html += ' <strong class="sale_t won_t"><span>'+item.dcVal.addComma()+'</span>'+item.dcWay+'</strong>';
|
|
|
- html += ' <p class="cp_cont">'+item.useCondition+'</p>';
|
|
|
- html += ' <span class="cp_cnt">'+item.issueCondition+'</span>';
|
|
|
- html += ' </div>';
|
|
|
- html += ' <span class="cp_shape"></span>';
|
|
|
- html += ' </div>';
|
|
|
- html += ' <div class="cp_date" id="dp_coupon1">';
|
|
|
+ html += ' <div class="cp_top">\n';
|
|
|
+ html += ' <div class="cp_detail">\n';
|
|
|
+ html += ' <p class="tit">'+item.cpnNm+'</p>\n';
|
|
|
+ html += ' <strong class="sale_t won_t"><span>'+item.dcVal.addComma()+'</span>'+item.dcWay+'</strong>\n';
|
|
|
+ html += ' <p class="cp_cont">'+item.useCondition+'</p>\n';
|
|
|
+ html += ' <span class="cp_cnt">'+item.issueCondition+'</span>\n';
|
|
|
+ html += ' </div>\n';
|
|
|
+ html += ' <span class="cp_shape"></span>\n';
|
|
|
+ html += ' </div>\n';
|
|
|
+ html += ' <div class="cp_date" id="dp_coupon1">\n';
|
|
|
if (item.couponStat == '쿠폰받기') {
|
|
|
- html += ' <button type="button" id="coupon_'+item.cpnId+'" onclick="fnPlanCouponDown('+item.cpnId+')"><span>쿠폰 받기</span></button>';
|
|
|
+ html += ' <button type="button" id="coupon_'+item.cpnId+'" onclick="fnPlanCouponDown('+item.cpnId+')"><span>쿠폰 받기</span></button>\n';
|
|
|
}else{
|
|
|
- html += ' <button type="button" id="coupon_'+item.cpnId+'" onclick="fnPlanCouponDown('+item.cpnId+')"><span>받기 완료</span></button>';
|
|
|
+ html += ' <button type="button" id="coupon_'+item.cpnId+'" onclick="fnPlanCouponDown('+item.cpnId+')"><span>받기 완료</span></button>\n';
|
|
|
}
|
|
|
- html += ' </div>';
|
|
|
- html += ' <div class="cp_info">';
|
|
|
- html += ' <button type="button" id="modalBasic" class="btn_couponInfo_pop" onclick="usePlanInfoCoupon('+item.cpnId+')"><span>사용안내</span></button>';
|
|
|
- html += ' </div>';
|
|
|
- html += ' </li>';
|
|
|
+ html += ' </div>\n';
|
|
|
+ html += ' <div class="cp_info">\n';
|
|
|
+ html += ' <button type="button" id="modalBasic" class="btn_couponInfo_pop" onclick="usePlanInfoCoupon('+item.cpnId+')"><span>사용안내</span></button>\n';
|
|
|
+ html += ' </div>\n';
|
|
|
+ html += ' </li>\n';
|
|
|
});
|
|
|
- html += ' </ul>';
|
|
|
- html += ' </div>';
|
|
|
- html += ' <div class="announce_txt">';
|
|
|
- html += ' <div class="note_txt">';
|
|
|
- html += ' <img src="/images/mo/ico_content_find.png" alt="유의사항">';
|
|
|
- html += ' <p>유의사항</p>';
|
|
|
- html += ' </div>';
|
|
|
- html += ' <div class="announce_list">';
|
|
|
- html += ' <ul>';
|
|
|
+ html += ' </ul>\n';
|
|
|
+ html += ' </div>\n';
|
|
|
+ html += ' <div class="announce_txt">\n';
|
|
|
+ html += ' <div class="note_txt">\n';
|
|
|
+ html += ' <img src="/images/mo/ico_content_find.png" alt="유의사항">\n';
|
|
|
+ html += ' <p>유의사항</p>\n';
|
|
|
+ html += ' </div>\n';
|
|
|
+ html += ' <div class="announce_list">\n';
|
|
|
+ html += ' <ul>\n';
|
|
|
html += coupon[0].note;
|
|
|
- html += ' </ul>';
|
|
|
- html += ' </div>';
|
|
|
- html += ' </div>';
|
|
|
- html += '</div>';
|
|
|
+ html += ' </ul>\n';
|
|
|
+ html += ' </div>\n';
|
|
|
+ html += ' </div>\n';
|
|
|
+ html += '</div>\n';
|
|
|
|
|
|
$("#G082_20").append(html);
|
|
|
}
|