|
|
@@ -191,9 +191,9 @@
|
|
|
<div class="swiper-wrapper">
|
|
|
<th:block th:each="PlanData, PlanStat : ${planList}">
|
|
|
<div class="swiper-slide">
|
|
|
- <a th:onclick="planDetailSearch([[${PlanData.planSq}]])">
|
|
|
+ <a th:onclick="cfnGoToPlanDetail([[${PlanData.planSq}]])">
|
|
|
<div class="thumb">
|
|
|
- <img th:src="${@environment.getProperty('domain.image')+PlanData.mainPimg}" alt="${PlanData.planNm}">
|
|
|
+ <img th:src="${@environment.getProperty('domain.image')+PlanData.mainImg}" alt="${PlanData.planNm}">
|
|
|
</div>
|
|
|
<div class="txt">
|
|
|
<span class="brand" th:if="${PlanData.cnt > 1}" th:text="${PlanData.brand}+' 외'"></span>
|
|
|
@@ -239,34 +239,34 @@ if(review != null || review != ''){
|
|
|
html += ' <div class="review_list">';
|
|
|
|
|
|
|
|
|
- for (var i = 0; i < review.length; i++) {
|
|
|
+ $.each(review, function(idx, item) {
|
|
|
html += ' <div>';
|
|
|
html += ' <div class="best_review">';
|
|
|
- html += ' <a href="javascript:void();" onclick="fnPlanReviewDetail(\''+review[i].reviewSq+'\');">';
|
|
|
+ html += ' <a href="javascript:void();" onclick="fnPlanReviewDetail(\''+item.reviewSq+'\');">';
|
|
|
html += ' <div class="lap">';
|
|
|
html += ' <div class="pic">';
|
|
|
- if (review[i].fileGb == 'M') {
|
|
|
- html += ' <span class="thumb mov" style="background-image: url('+ imgUrl +'/'+review[i].reviewSysImg +');"></span>';
|
|
|
+ if (item.fileGb == 'M') {
|
|
|
+ html += ' <span class="thumb mov" style="background-image: url('+ imgUrl +'/'+item.reviewSysImg +');"></span>';
|
|
|
}else{
|
|
|
- html += ' <span class="thumb" style="background-image: url('+ imgUrl +'/'+review[i].reviewSysImg +');"></span>';
|
|
|
+ html += ' <span class="thumb" style="background-image: url('+ imgUrl +'/'+item.reviewSysImg +');"></span>';
|
|
|
}
|
|
|
html += ' </div>';
|
|
|
html += ' <div class="info">';
|
|
|
html += ' <div>';
|
|
|
html += ' <div class="star_score">';
|
|
|
html += ' <span class="star"> <em class="progbar"';
|
|
|
- html += ' style="width:'+(review[i].score*20)+'%;"></em> <!-- 평점 style로 표기 -->';
|
|
|
+ html += ' style="width:'+(item.score*20)+'%;"></em> <!-- 평점 style로 표기 -->';
|
|
|
html += ' </span>';
|
|
|
- if(review[i].bestYn == 'Y'){
|
|
|
+ if(item.bestYn == 'Y'){
|
|
|
html += '<em class="ico ico_besttag"></em>';
|
|
|
}
|
|
|
html += ' </div>';
|
|
|
html += ' <div class="txt_best_review">';
|
|
|
- html += ' <p>'+review[i].reviewContent+'</p>';
|
|
|
+ html += ' <p>'+item.reviewContent+'</p>';
|
|
|
html += ' </div>';
|
|
|
html += ' <div class="writer">';
|
|
|
- html += ' <span class="wr_id">'+review[i].maskingCustId+'</span><span';
|
|
|
- html += ' class="wr_date">'+review[i].regDt+'</span>';
|
|
|
+ html += ' <span class="wr_id">'+item.maskingCustId+'</span><span';
|
|
|
+ html += ' class="wr_date">'+item.regDt+'</span>';
|
|
|
html += ' </div>';
|
|
|
html += ' </div>';
|
|
|
html += ' </div>';
|
|
|
@@ -278,17 +278,16 @@ if(review != null || review != ''){
|
|
|
html += ' <div class="item_state">';
|
|
|
html += ' <a href="#none" class="itemLink">';
|
|
|
html += ' <div class="itemPic">';
|
|
|
- html += ' <img alt="" class="vLHTC pd_img" src="'+ _imgUrl +'/'+review[i].sysImgNm +'">';
|
|
|
+ html += ' <img alt="" class="vLHTC pd_img" src="'+ _imgUrl +'/'+item.sysImgNm +'">';
|
|
|
html += ' </div>';
|
|
|
- html += ' <div class="itemName">'+review[i].goodsNm+'</div>';
|
|
|
- html += ' <p class="itemPrice">'+comma(review[i].currPrice)+'원</p>';
|
|
|
+ html += ' <div class="itemName">'+item.goodsNm+'</div>';
|
|
|
+ html += ' <p class="itemPrice">'+comma(item.currPrice)+'원</p>';
|
|
|
html += ' </a>';
|
|
|
html += ' </div>';
|
|
|
html += ' </div>';
|
|
|
html += ' </div>';
|
|
|
html += ' </div>';
|
|
|
- }
|
|
|
-
|
|
|
+ });
|
|
|
html += ' </div>';
|
|
|
html += ' </div>';
|
|
|
html += ' </div>';
|
|
|
@@ -307,29 +306,27 @@ if(coupon != null || coupon != ''){
|
|
|
html += ' </div>';
|
|
|
html += ' <div class="coupon_list inner">';
|
|
|
html += ' <ul class="clear">';
|
|
|
- for (var i = 0; i < coupon.length; i++) {
|
|
|
+ $.each(coupon, function(idx, item) {
|
|
|
html += ' <li>';
|
|
|
html += ' <div class="coupon">';
|
|
|
html += ' <div>';
|
|
|
- html += ' <p class="cp_name">'+coupon[i].cpnNm+'</p>';
|
|
|
+ html += ' <p class="cp_name">'+item.cpnNm+'</p>';
|
|
|
html += ' <p class="cp_cont">';
|
|
|
- if (coupon[i].dcWay == '할인율') {
|
|
|
- html += ' <span> <span><em>'+coupon[i].dcPval+'%</em></span>';
|
|
|
+ if (item.dcWay == '할인율') {
|
|
|
+ html += ' <span> <span><em>'+item.dcPval+'%</em></span>';
|
|
|
}else{
|
|
|
- html += ' <span><em>'+comma(coupon[i].dcPval)+'</em>원</span>';
|
|
|
+ html += ' <span><em>'+comma(item.dcPval)+'</em>원</span>';
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
html += ' </p>';
|
|
|
- html += ' <p class="cp_condition">'+comma(coupon[i].buyLimitAmt)+'원 이상 구매 시 최대 ' +comma(coupon[i].maxDcAmt) +'원 할인';
|
|
|
- if (coupon[i].custPubLimitQty != 0) {
|
|
|
- html += ' <span>1인 최대 '+coupon[i].custPubLimitQty+'장</span>';
|
|
|
+ html += ' <p class="cp_condition">'+comma(item.buyLimitAmt)+'원 이상 구매 시 최대 ' +comma(item.maxDcAmt)+'원 할인';
|
|
|
+ if (item.custPubLimitQty != 0) {
|
|
|
+ html += ' <span>1인 최대 '+item.custPubLimitQty+'장</span>';
|
|
|
}
|
|
|
|
|
|
html += ' </p>';
|
|
|
html += ' </div>';
|
|
|
- if (coupon[i].couponStat == '쿠폰받기') {
|
|
|
- html += ' <button type="button" id="coupon_" class="btn btn_dark btn_block btn_coupon_down" onclick="fnPlanCouponDown('+coupon[i].cpnId+')">'; /* btn_coupon_done */
|
|
|
+ if (item.couponStat == '쿠폰받기') {
|
|
|
+ html += ' <button type="button" id="coupon_" class="btn btn_dark btn_block btn_coupon_down" onclick="fnPlanCouponDown('+item.cpnId+')">'; /* btn_coupon_done */
|
|
|
html += ' <span>쿠폰받기</span>'; /* 받기완료 */
|
|
|
html += ' </button>';
|
|
|
}else{
|
|
|
@@ -339,11 +336,11 @@ if(coupon != null || coupon != ''){
|
|
|
html += ' </button>';
|
|
|
}
|
|
|
html += ' </div>';
|
|
|
- html += ' <button type="button" class="btn_underline" id="btn_cpinfo_pop" onclick="useInfoCoupon('+coupon[i].cpnId+')">';
|
|
|
+ html += ' <button type="button" class="btn_underline" id="btn_cpinfo_pop" onclick="useInfoCoupon('+item.cpnId+')">';
|
|
|
html += ' <span>사용안내</span>';
|
|
|
html += ' </button>';
|
|
|
html += ' </li>';
|
|
|
- }
|
|
|
+ });
|
|
|
html += ' </ul>';
|
|
|
html += ' </div>';
|
|
|
html += ' <div class="announce_txt inner">';
|
|
|
@@ -416,34 +413,34 @@ if(goods1 != null || goods1 != ''){
|
|
|
html += ' <div class="dp_listItems_cont">';
|
|
|
html += ' <ul>';
|
|
|
|
|
|
- for (var j = 0; j < goods1.length; j++) {
|
|
|
- if (goods1[j].planContSq == template[i].planContSq) {
|
|
|
+ $.each(goods1, function(idx, item) {
|
|
|
+ if (item.planContSq == template[i].planContSq) {
|
|
|
html += ' <li>';
|
|
|
html += ' <div class="dp_listItems">';
|
|
|
html += ' <div class="dp_listItems_img">';
|
|
|
- html += ' <img src="'+ goodsView +'/'+goods1[j].sysImgNm +'" alt="">';
|
|
|
+ html += ' <img src="'+ goodsView +'/'+item.sysImgNm +'" alt="">';
|
|
|
html += ' </div>';
|
|
|
html += ' <div class="dp_listItems_info">';
|
|
|
- html += ' <div class="dp_listItems_brand">'+goods1[j].brandKnm+'</div>';
|
|
|
- html += ' <div class="dp_listItems_name">'+goods1[j].goodsNm+'</div>';
|
|
|
+ html += ' <div class="dp_listItems_brand">'+item.brandKnm+'</div>';
|
|
|
+ html += ' <div class="dp_listItems_name">'+item.goodsNm+'</div>';
|
|
|
html += ' <div class="dp_listItems_price">';
|
|
|
- html += ' <span class="price">'+comma(goods1[j].currPrice)+'</span>';
|
|
|
- if (goods1[j].currPrice != goods1[j].listPrice) {
|
|
|
- html += ' <del>'+comma(goods1[j].listPrice)+'</del>';
|
|
|
- html += ' <span class="percent">'+Math.floor(goods1[j].dcRate)+'%</span>';
|
|
|
+ html += ' <span class="price">'+comma(item.currPrice)+'</span>';
|
|
|
+ if (item.currPrice != item.listPrice) {
|
|
|
+ html += ' <del>'+comma(item.listPrice)+'</del>';
|
|
|
+ html += ' <span class="percent">'+Math.floor(item.dcRate)+'%</span>';
|
|
|
}
|
|
|
|
|
|
html += ' </div>';
|
|
|
//html += ' <div class="itemComment">#주문 폭주 상품</div>';
|
|
|
html += ' <div class="ui_row">';
|
|
|
- html += ' <button type="button" class="btn btn_default" onclick="location.href=\''+_mall+'/goods/detail/form?goodsCd='+goods1[j].goodsCd+'\'"><span>자세히 보기</span></button>';
|
|
|
+ html += ' <button type="button" class="btn btn_default" onclick="cfnGoToGoodsDetail(\'' + item.goodsCd + '\'"><span>자세히 보기</span></button>';
|
|
|
html += ' </div>';
|
|
|
html += ' </div>';
|
|
|
html += ' </div>';
|
|
|
html += ' </li>';
|
|
|
|
|
|
}
|
|
|
- }
|
|
|
+ });
|
|
|
html += ' </ul>';
|
|
|
html += ' </div>';
|
|
|
html += '</div>';
|
|
|
@@ -483,21 +480,21 @@ if(goods2 != null || goods2 != ''){
|
|
|
html+=' <div class="swiper-container dp_lookbook_case2">';
|
|
|
html+=' <div class="swiper-wrapper ">';
|
|
|
|
|
|
- for (var j = 0; j < goods2.length; j++) {
|
|
|
- if (goods2[j].planContSq == template[i].planContSq) {
|
|
|
+ $.each(goods2, function(idx, item) {
|
|
|
+ if (item.planContSq == template[i].planContSq) {
|
|
|
html+=' <div class="swiper-slide">';
|
|
|
html+=' <div class="item_prod">';
|
|
|
html+=' <div class="item_state">';
|
|
|
- html+=' <a href="'+_mall+'/goods/detail/form?goodsCd='+goods2[j].goodsCd+'" class="itemLink">';
|
|
|
+ html+=' <a onclick="cfnGoToGoodsDetail(\'' + item.goodsCd + '\'" class="itemLink">';
|
|
|
html+=' <div class="itemPic">';
|
|
|
- html+=' <img alt="BLUE-a" class=" vLHTC pd_img" src="'+ goodsView +'/'+goods2[j].sysImgNm +'">';
|
|
|
+ html+=' <img alt="BLUE-a" class=" vLHTC pd_img" src="'+ goodsView +'/'+item.sysImgNm +'">';
|
|
|
html+=' </div>';
|
|
|
- html+=' <p class="itemBrand">'+goods2[j].brandKnm+'</p>';
|
|
|
- html+=' <div class="itemName">'+goods2[j].goodsNm+'</div>';
|
|
|
- html+=' <p class="itemPrice">'+comma(goods2[j].currPrice);
|
|
|
- if (goods2[j].currPrice != goods2[j].listPrice) {
|
|
|
- html+=' <span class="itemPrice_original">'+comma(goods2[j].listPrice)+'</span>';
|
|
|
- html+=' <span class=" itemPercent">'+Math.floor(goods2[j].dcRate)+'%</span>';
|
|
|
+ html+=' <p class="itemBrand">'+item.brandKnm+'</p>';
|
|
|
+ html+=' <div class="itemName">'+item.goodsNm+'</div>';
|
|
|
+ html+=' <p class="itemPrice">'+comma(item.currPrice);
|
|
|
+ if (item.currPrice != item.listPrice) {
|
|
|
+ html+=' <span class="itemPrice_original">'+comma(item.listPrice)+'</span>';
|
|
|
+ html+=' <span class=" itemPercent">'+Math.floor(item.dcRate)+'%</span>';
|
|
|
}
|
|
|
|
|
|
html+=' </p>';
|
|
|
@@ -507,7 +504,7 @@ if(goods2 != null || goods2 != ''){
|
|
|
html+=' </div>';
|
|
|
html+=' </div> ';
|
|
|
}
|
|
|
- }
|
|
|
+ });
|
|
|
|
|
|
html+=' </div>';
|
|
|
html+=' </div>';
|