|
|
@@ -363,206 +363,206 @@
|
|
|
|
|
|
if (param.orderList != null && param.orderList.length > 0) {
|
|
|
$.each(param.orderList, function (idx, order) {
|
|
|
- tag += '<div class="part_goods">\n';
|
|
|
- tag += ' <div class="goods_head">\n';
|
|
|
+ tag += ' <div class="part_goods">\n';
|
|
|
+ tag += ' <div class="goods_head">\n';
|
|
|
if (order.giftPackYn == 'Y') {
|
|
|
- tag += ' <p>선물일 <span>' + order.ordDt + '</span></p>\n';
|
|
|
+ tag += ' <p>선물일 <span>' + order.ordDt + '</span></p>\n';
|
|
|
} else {
|
|
|
- tag += ' <p>주문일 <span>' + order.ordDt + '</span></p>\n';
|
|
|
+ tag += ' <p>주문일 <span>' + order.ordDt + '</span></p>\n';
|
|
|
}
|
|
|
- tag += ' <a href="javascript:void(0)" class="btn_detail_view" ordNo="' + order.ordNo + '" onclick="fnGoToOrderDetail(this)">주문상세보기</a>\n';
|
|
|
- tag += ' </div>\n';
|
|
|
- tag += ' <div class="goods_cont">\n';
|
|
|
+ tag += ' <a href="javascript:void(0)" class="btn_detail_view" ordNo="' + order.ordNo + '" onclick="fnGoToOrderDetail(this)">주문상세보기</a>\n';
|
|
|
+ tag += ' </div>\n';
|
|
|
+ tag += ' <div class="goods_cont">\n';
|
|
|
$.each(order.ordDtlList, function (index, ordDtl) {
|
|
|
- tag += ' <div class="goods_info">\n';
|
|
|
- tag += ' <div class="order_desc">\n';
|
|
|
- tag += ' <div class="goods_box">\n';
|
|
|
- tag += ' <div class="gd_item">\n';
|
|
|
- tag += ' <a href="javascript:void(0)" goodsCd="' + ordDtl.goodsCd + '" onclick="fnGoToGoodsDetail(this)">\n';
|
|
|
- tag += ' <span class="thumb">\n';
|
|
|
- tag += ' <img src="' + imageUrl + '/' + ordDtl.sysImgNm + '" width="100%" alt="">\n';
|
|
|
- tag += ' </span>\n';
|
|
|
- tag += ' <p>\n';
|
|
|
- tag += ' <span class="brand">' + ordDtl.brandNm + '</span>\n';
|
|
|
+ tag += ' <div class="goods_info">\n';
|
|
|
+ tag += ' <div class="order_desc">\n';
|
|
|
+ tag += ' <div class="goods_box">\n';
|
|
|
+ tag += ' <div class="gd_item">\n';
|
|
|
+ tag += ' <a href="javascript:void(0)" goodsCd="' + ordDtl.goodsCd + '" onclick="fnGoToGoodsDetail(this)">\n';
|
|
|
+ tag += ' <span class="thumb">\n';
|
|
|
+ tag += ' <img src="' + imageUrl + '/' + ordDtl.sysImgNm + '" width="100%" alt="">\n';
|
|
|
+ tag += ' </span>\n';
|
|
|
+ tag += ' <p>\n';
|
|
|
+ tag += ' <span class="brand">' + ordDtl.brandNm + '</span>\n';
|
|
|
// 배송 아이콘 처리
|
|
|
if (ordDtl.shotDelvYn == 'Y') {
|
|
|
- tag += ' <span class="tag primary">총알배송</span>\n';
|
|
|
+ tag += ' <span class="tag primary">총알배송</span>\n';
|
|
|
} else if (ordDtl.selfGoodsYn == 'Y') {
|
|
|
- tag += ' <span class="tag">STYLE24 일반배송</span>\n';
|
|
|
+ tag += ' <span class="tag">STYLE24 일반배송</span>\n';
|
|
|
} else {
|
|
|
- tag += ' <span class="tag">업체직배송</span>\n';
|
|
|
+ tag += ' <span class="tag">업체직배송</span>\n';
|
|
|
}
|
|
|
- tag += ' </p>\n';
|
|
|
- tag += ' <p>\n';
|
|
|
- tag += ' <span class="name">' + ordDtl.goodsNm + '</span>\n';
|
|
|
- tag += ' </p>\n';
|
|
|
- tag += ' </a>\n';
|
|
|
- tag += ' </div>\n';
|
|
|
- tag += ' <div class="gd_opt">\n';
|
|
|
- tag += ' <div class="option_wrap">\n';
|
|
|
- tag += ' <span class="title sr-only">주문 옵션</span>\n';
|
|
|
+ tag += ' </p>\n';
|
|
|
+ tag += ' <p>\n';
|
|
|
+ tag += ' <span class="name">' + ordDtl.goodsNm + '</span>\n';
|
|
|
+ tag += ' </p>\n';
|
|
|
+ tag += ' </a>\n';
|
|
|
+ tag += ' </div>\n';
|
|
|
+ tag += ' <div class="gd_opt">\n';
|
|
|
+ tag += ' <div class="option_wrap">\n';
|
|
|
+ tag += ' <span class="title sr-only">주문 옵션</span>\n';
|
|
|
// 세트아이템 옵션 처리
|
|
|
if (ordDtl.goodsType == 'G056_S') {
|
|
|
$.each(ordDtl.colorNmArr, function (index2, option) {
|
|
|
- tag += ' <span class="option">' + ordDtl.itemNmArr[index2] + ' / ' + option + ' / ' + ordDtl.optCd2Arr[index2] + '</span>\n';
|
|
|
+ tag += ' <span class="option">' + ordDtl.itemNmArr[index2] + ' / ' + option + ' / ' + ordDtl.optCd2Arr[index2] + '</span>\n';
|
|
|
});
|
|
|
} else {
|
|
|
- tag += ' <span class="option">' + ordDtl.colorNm + ' / ' + ordDtl.optCd2 + '</span>\n';
|
|
|
+ tag += ' <span class="option">' + ordDtl.colorNm + ' / ' + ordDtl.optCd2 + '</span>\n';
|
|
|
}
|
|
|
- tag += ' </div>\n';
|
|
|
- tag += ' </div>\n';
|
|
|
- tag += ' <div class="gd_calc">\n';
|
|
|
- tag += ' <p>\n';
|
|
|
- tag += ' <span class="count"><em>' + (ordDtl.ordQty - ordDtl.cnclRtnQty) + '</em>개</span>\n';
|
|
|
- tag += ' </p>\n';
|
|
|
- tag += ' <p>\n';
|
|
|
+ tag += ' </div>\n';
|
|
|
+ tag += ' </div>\n';
|
|
|
+ tag += ' <div class="gd_calc">\n';
|
|
|
+ tag += ' <p>\n';
|
|
|
+ tag += ' <span class="count"><em>' + (ordDtl.ordQty - ordDtl.cnclRtnQty) + '</em>개</span>\n';
|
|
|
+ tag += ' </p>\n';
|
|
|
+ tag += ' <p>\n';
|
|
|
if ((ordDtl.ordAmt - ordDtl.cnclRtnAmt - ordDtl.cpn1DcAmt) > (ordDtl.realOrdAmt + ordDtl.pntDcAmt + ordDtl.gfcdUseAmt)) {
|
|
|
- tag += ' <span class="price_org"><em>' + (ordDtl.ordAmt - ordDtl.cnclRtnAmt - ordDtl.cpn1DcAmt).addComma() + '</em>원</span>\n';
|
|
|
+ tag += ' <span class="price_org"><em>' + (ordDtl.ordAmt - ordDtl.cnclRtnAmt - ordDtl.cpn1DcAmt).addComma() + '</em>원</span>\n';
|
|
|
}
|
|
|
- tag += ' <span class="price_sale"><em>' + (ordDtl.realOrdAmt + ordDtl.pntDcAmt + ordDtl.gfcdUseAmt).addComma() + '</em>원</span>\n';
|
|
|
- tag += ' </p>\n';
|
|
|
- tag += ' </div>\n';
|
|
|
- tag += ' </div>\n';
|
|
|
- tag += ' <div class="status_box">\n';
|
|
|
+ tag += ' <span class="price_sale"><em>' + (ordDtl.realOrdAmt + ordDtl.pntDcAmt + ordDtl.gfcdUseAmt).addComma() + '</em>원</span>\n';
|
|
|
+ tag += ' </p>\n';
|
|
|
+ tag += ' </div>\n';
|
|
|
+ tag += ' </div>\n';
|
|
|
+ tag += ' <div class="status_box">\n';
|
|
|
// 상태값 처리
|
|
|
if (ordDtl.giftPackYn == 'Y') {
|
|
|
if (gagajf.isNull(ordDtl.recipBaseAddr) && ordDtl.giftLimitDay >= 0) {
|
|
|
- tag += ' <p>주소 입력 대기중</p>\n';
|
|
|
+ tag += ' <p>주소 입력 대기중</p>\n';
|
|
|
} else if (!gagajf.isNull(ordDtl.recipBaseAddr)) {
|
|
|
- tag += ' <p>선물 완료</p>\n';
|
|
|
+ tag += ' <p>선물 완료</p>\n';
|
|
|
} else if (ordDtl.ordDtlStat == 'G013_98' || ordDtl.ordDtlStat == 'G013_99' || ordDtl.giftLimitDay < 0) {
|
|
|
- tag += ' <p>선물 취소</p>\n';
|
|
|
+ tag += ' <p>선물 취소</p>\n';
|
|
|
}
|
|
|
} else {
|
|
|
- tag += ' <p>' + ordDtl.ordDtlStatNm + '</p>\n';
|
|
|
+ tag += ' <p>' + ordDtl.ordDtlStatNm + '</p>\n';
|
|
|
}
|
|
|
- tag += ' </div>\n';
|
|
|
- tag += ' <div class="button_box">\n';
|
|
|
+ tag += ' </div>\n';
|
|
|
+ tag += ' <div class="button_box">\n';
|
|
|
// 버튼 처리
|
|
|
if (ordDtl.giftPackYn == 'Y') {
|
|
|
// SMS 재발송 버튼
|
|
|
if (gagajf.isNull(ordDtl.recipBaseAddr) && ordDtl.giftLimitDay >= 0) {
|
|
|
- tag += ' <p><button type="button" class="btn btn_default btn_sm" ordNo="' + ordDtl.ordNo + '" onclick="fnReSendSms(this);"><span>SMS 재발송</span></button></p>\n';
|
|
|
+ tag += ' <p><button type="button" class="btn btn_default btn_sm" ordNo="' + ordDtl.ordNo + '" onclick="fnReSendSms(this);"><span>SMS 재발송</span></button></p>\n';
|
|
|
}
|
|
|
|
|
|
// 주문취소 버튼(입금대기, 결제완료, 상품준비중, 출고처지정, 배송준비중)
|
|
|
if (ordDtl.ordDtlStat == 'G013_10' || ordDtl.ordDtlStat == 'G013_20' || ordDtl.ordDtlStat == 'G013_30' || ordDtl.ordDtlStat == 'G013_35' || ordDtl.ordDtlStat == 'G013_40') {
|
|
|
- tag += ' <p><button type="button" class="btn btn_default btn_sm" ordNo="' + ordDtl.ordNo + '" ordDtlNo="' + ordDtl.ordDtlNo + '" ordCanChgQty="' + ordDtl.ordCanChgQty + '" onclick="fnCreateChange(this, \'cancel\');"><span>주문 취소</span></button></p>\n';
|
|
|
+ tag += ' <p><button type="button" class="btn btn_default btn_sm" ordNo="' + ordDtl.ordNo + '" ordDtlNo="' + ordDtl.ordDtlNo + '" ordCanChgQty="' + ordDtl.ordCanChgQty + '" onclick="fnCreateChange(this, \'cancel\');"><span>주문 취소</span></button></p>\n';
|
|
|
}
|
|
|
|
|
|
// 리뷰 쓰기 버튼
|
|
|
if (!gagajf.isNull(ordDtl.recipBaseAddr) && ordDtl.ordDtlStat != 'G013_98' && ordDtl.ordDtlStat != 'G013_99' && ordDtl.reviewableYn == 'Y' && ordDtl.reviewSq == null) {
|
|
|
- tag += ' <p><button type="button" class="btn btn_primary_line btn_sm" ordNo="' + ordDtl.ordNo + '" ordDtlNo="' + ordDtl.ordDtlNo + '" goodsCd="' + ordDtl.goodsCd + '" onclick="fnCreateReview(this);"><span>리뷰 쓰기</span></button></p>\n';
|
|
|
+ tag += ' <p><button type="button" class="btn btn_primary_line btn_sm" ordNo="' + ordDtl.ordNo + '" ordDtlNo="' + ordDtl.ordDtlNo + '" goodsCd="' + ordDtl.goodsCd + '" onclick="fnCreateReview(this);"><span>리뷰 쓰기</span></button></p>\n';
|
|
|
}
|
|
|
|
|
|
// 쇼핑백담기 버튼(구매확정)
|
|
|
if (!gagajf.isNull(ordDtl.recipBaseAddr) && ordDtl.ordDtlStat != 'G013_98' && ordDtl.ordDtlStat != 'G013_99') {
|
|
|
- tag += ' <p><button type="button" class="btn btn_default btn_sm" ordNo="' + ordDtl.ordNo + '" ordDtlNo="' + ordDtl.ordDtlNo + '" onclick="fnCreateCart(this);"><span>쇼핑백 담기</span></button></p>\n';
|
|
|
+ tag += ' <p><button type="button" class="btn btn_default btn_sm" ordNo="' + ordDtl.ordNo + '" ordDtlNo="' + ordDtl.ordDtlNo + '" onclick="fnCreateCart(this);"><span>쇼핑백 담기</span></button></p>\n';
|
|
|
}
|
|
|
} else {
|
|
|
// 주문취소 버튼(입금대기, 결제완료, 상품준비중, 출고처지정, 배송준비중)
|
|
|
if (ordDtl.ordDtlStat == 'G013_10' || ordDtl.ordDtlStat == 'G013_20' || ordDtl.ordDtlStat == 'G013_30' || ordDtl.ordDtlStat == 'G013_35' || ordDtl.ordDtlStat == 'G013_40') {
|
|
|
- tag += ' <p><button type="button" class="btn btn_default btn_sm" ordNo="' + ordDtl.ordNo + '" ordDtlNo="' + ordDtl.ordDtlNo + '" ordCanChgQty="' + ordDtl.ordCanChgQty + '" onclick="fnCreateChange(this, \'cancel\');"><span>주문 취소</span></button></p>\n';
|
|
|
+ tag += ' <p><button type="button" class="btn btn_default btn_sm" ordNo="' + ordDtl.ordNo + '" ordDtlNo="' + ordDtl.ordDtlNo + '" ordCanChgQty="' + ordDtl.ordCanChgQty + '" onclick="fnCreateChange(this, \'cancel\');"><span>주문 취소</span></button></p>\n';
|
|
|
}
|
|
|
|
|
|
// 교환신청 버튼(배송중, 출고완료, 배송완료)
|
|
|
if (ordDtl.ordDtlStat == 'G013_50' || ordDtl.ordDtlStat == 'G013_55' || ordDtl.ordDtlStat == 'G013_60') {
|
|
|
// 교환/반품 가능한 상품
|
|
|
if (ordDtl.changeableYn == 'Y' && ordDtl.returnableYn == 'Y') {
|
|
|
- tag += ' <p><button type="button" class="btn btn_default btn_sm" ordNo="' + ordDtl.ordNo + '" ordDtlNo="' + ordDtl.ordDtlNo + '" supplyCompCd="' + ordDtl.supplyCompCd + '" ordCanChgQty="' + ordDtl.ordCanChgQty + '" onclick="fnCreateChange(this, \'exchange\');"><span>교환 신청</span></button></p>\n';
|
|
|
- tag += ' <p><button type="button" class="btn btn_default btn_sm" ordNo="' + ordDtl.ordNo + '" ordDtlNo="' + ordDtl.ordDtlNo + '" supplyCompCd="' + ordDtl.supplyCompCd + '" ordCanChgQty="' + ordDtl.ordCanChgQty + '" onclick="fnCreateChange(this, \'return\');"><span>반품 신청</span></button></p>\n';
|
|
|
+ tag += ' <p><button type="button" class="btn btn_default btn_sm" ordNo="' + ordDtl.ordNo + '" ordDtlNo="' + ordDtl.ordDtlNo + '" supplyCompCd="' + ordDtl.supplyCompCd + '" ordCanChgQty="' + ordDtl.ordCanChgQty + '" onclick="fnCreateChange(this, \'exchange\');"><span>교환 신청</span></button></p>\n';
|
|
|
+ tag += ' <p><button type="button" class="btn btn_default btn_sm" ordNo="' + ordDtl.ordNo + '" ordDtlNo="' + ordDtl.ordDtlNo + '" supplyCompCd="' + ordDtl.supplyCompCd + '" ordCanChgQty="' + ordDtl.ordCanChgQty + '" onclick="fnCreateChange(this, \'return\');"><span>반품 신청</span></button></p>\n';
|
|
|
}
|
|
|
// 교환 신청 불가 상품
|
|
|
else if (ordDtl.changeableYn == 'N' && ordDtl.returnableYn == 'Y') {
|
|
|
- tag += ' <p><button type="button" class="btn btn_default btn_sm" onclick="cfnGoToPage(_PAGE_ONETOONE_QNA);"><span>1:1 문의</span></button></p>\n';
|
|
|
- tag += ' <p><button type="button" class="btn btn_default btn_sm" ordNo="' + ordDtl.ordNo + '" ordDtlNo="' + ordDtl.ordDtlNo + '" supplyCompCd="' + ordDtl.supplyCompCd + '" ordCanChgQty="' + ordDtl.ordCanChgQty + '" onclick="fnCreateChange(this, \'return\');"><span>반품 신청</span></button></p>\n';
|
|
|
+ tag += ' <p><button type="button" class="btn btn_default btn_sm" onclick="cfnGoToPage(_PAGE_ONETOONE_QNA);"><span>1:1 문의</span></button></p>\n';
|
|
|
+ tag += ' <p><button type="button" class="btn btn_default btn_sm" ordNo="' + ordDtl.ordNo + '" ordDtlNo="' + ordDtl.ordDtlNo + '" supplyCompCd="' + ordDtl.supplyCompCd + '" ordCanChgQty="' + ordDtl.ordCanChgQty + '" onclick="fnCreateChange(this, \'return\');"><span>반품 신청</span></button></p>\n';
|
|
|
}
|
|
|
// 반품 신청 불가 상품
|
|
|
else if (ordDtl.changeableYn == 'Y' && ordDtl.returnableYn == 'N') {
|
|
|
- tag += ' <p><button type="button" class="btn btn_default btn_sm" ordNo="' + ordDtl.ordNo + '" ordDtlNo="' + ordDtl.ordDtlNo + '" supplyCompCd="' + ordDtl.supplyCompCd + '" ordCanChgQty="' + ordDtl.ordCanChgQty + '" onclick="fnCreateChange(this, \'exchange\');"><span>교환 신청</span></button></p>\n';
|
|
|
- tag += ' <p><button type="button" class="btn btn_default btn_sm" onclick="cfnGoToPage(_PAGE_ONETOONE_QNA_REG);"><span>1:1 문의</span></button></p>\n';
|
|
|
+ tag += ' <p><button type="button" class="btn btn_default btn_sm" ordNo="' + ordDtl.ordNo + '" ordDtlNo="' + ordDtl.ordDtlNo + '" supplyCompCd="' + ordDtl.supplyCompCd + '" ordCanChgQty="' + ordDtl.ordCanChgQty + '" onclick="fnCreateChange(this, \'exchange\');"><span>교환 신청</span></button></p>\n';
|
|
|
+ tag += ' <p><button type="button" class="btn btn_default btn_sm" onclick="cfnGoToPage(_PAGE_ONETOONE_QNA_REG);"><span>1:1 문의</span></button></p>\n';
|
|
|
}
|
|
|
// 교환/반품 신청 불가 상품
|
|
|
else {
|
|
|
- tag += ' <p><button type="button" class="btn btn_default btn_sm" onclick="cfnGoToPage(_PAGE_ONETOONE_QNA_REG);"><span>1:1 문의</span></button></p>\n';
|
|
|
+ tag += ' <p><button type="button" class="btn btn_default btn_sm" onclick="cfnGoToPage(_PAGE_ONETOONE_QNA_REG);"><span>1:1 문의</span></button></p>\n';
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 배송조회 버튼(배송중)
|
|
|
if (ordDtl.ordDtlStat == 'G013_50' || ordDtl.ordDtlStat == 'G013_55') {
|
|
|
- tag += ' <p><button type="button" class="btn btn_default btn_sm" ordNo="' + ordDtl.ordNo + '" ordDtlNo="' + ordDtl.ordDtlNo + '" onclick="fnGoToDelivery(this);"><span>배송 조회</span></button></p>\n';
|
|
|
+ tag += ' <p><button type="button" class="btn btn_default btn_sm" ordNo="' + ordDtl.ordNo + '" ordDtlNo="' + ordDtl.ordDtlNo + '" onclick="fnGoToDelivery(this);"><span>배송 조회</span></button></p>\n';
|
|
|
}
|
|
|
|
|
|
// 구매확정 버튼(배송완료)
|
|
|
if (ordDtl.ordDtlStat == 'G013_60') {
|
|
|
- tag += ' <p><button type="button" class="btn btn_primary_line btn_sm" ordNo="' + ordDtl.ordNo + '" ordDtlNo="' + ordDtl.ordDtlNo + '" onclick="fnDecideOrder(this);"><span>구매 확정</span></button></p>\n';
|
|
|
+ tag += ' <p><button type="button" class="btn btn_primary_line btn_sm" ordNo="' + ordDtl.ordNo + '" ordDtlNo="' + ordDtl.ordDtlNo + '" onclick="fnDecideOrder(this);"><span>구매 확정</span></button></p>\n';
|
|
|
}
|
|
|
|
|
|
// 리뷰작성 버튼(배송중, 배송완료, 구매확정)
|
|
|
if ((ordDtl.ordDtlStat == 'G013_50' || ordDtl.ordDtlStat == 'G013_55' || ordDtl.ordDtlStat == 'G013_60' || ordDtl.ordDtlStat == 'G013_70') && ordDtl.reviewableYn == 'Y' && ordDtl.reviewSq == null) {
|
|
|
- tag += ' <p><button type="button" class="btn btn_primary_line btn_sm" ordNo="' + ordDtl.ordNo + '" ordDtlNo="' + ordDtl.ordDtlNo + '" goodsCd="' + ordDtl.goodsCd + '" onclick="fnCreateReview(this);"><span>리뷰 쓰기</span></button></p>\n';
|
|
|
+ tag += ' <p><button type="button" class="btn btn_primary_line btn_sm" ordNo="' + ordDtl.ordNo + '" ordDtlNo="' + ordDtl.ordDtlNo + '" goodsCd="' + ordDtl.goodsCd + '" onclick="fnCreateReview(this);"><span>리뷰 쓰기</span></button></p>\n';
|
|
|
}
|
|
|
|
|
|
// 쇼핑백담기 버튼(구매확정)
|
|
|
if (ordDtl.ordDtlStat == 'G013_70') {
|
|
|
- tag += ' <p><button type="button" class="btn btn_default btn_sm" ordNo="' + ordDtl.ordNo + '" ordDtlNo="' + ordDtl.ordDtlNo + '" onclick="fnCreateCart(this);"><span>쇼핑백 담기</span></button></p>\n';
|
|
|
+ tag += ' <p><button type="button" class="btn btn_default btn_sm" ordNo="' + ordDtl.ordNo + '" ordDtlNo="' + ordDtl.ordDtlNo + '" onclick="fnCreateCart(this);"><span>쇼핑백 담기</span></button></p>\n';
|
|
|
}
|
|
|
|
|
|
// 1:1문의 버튼(구매확정)
|
|
|
if (ordDtl.ordDtlStat == 'G013_70' && (ordDtl.reviewableYn == 'N' || ordDtl.reviewSq > 0)) {
|
|
|
- tag += ' <p><button type="button" class="btn btn_default btn_sm" onclick="cfnGoToPage(_PAGE_ONETOONE_QNA_REG);"><span>1:1 문의</span></button></p>\n';
|
|
|
+ tag += ' <p><button type="button" class="btn btn_default btn_sm" onclick="cfnGoToPage(_PAGE_ONETOONE_QNA_REG);"><span>1:1 문의</span></button></p>\n';
|
|
|
}
|
|
|
}
|
|
|
- tag += ' </div>\n';
|
|
|
- tag += ' </div>\n';
|
|
|
+ tag += ' </div>\n';
|
|
|
+ tag += ' </div>\n';
|
|
|
// 하단 상태값 배너 처리
|
|
|
if (ordDtl.giftPackYn == 'Y') {
|
|
|
// 주소 입력 대기중
|
|
|
if (gagajf.isNull(ordDtl.recipBaseAddr) && ordDtl.giftLimitDay >= 0) {
|
|
|
- tag += ' <div class="order_text"><p>' + ordDtl.recipNm + '님이 주소를 입력하기 전입니다. (입력기한 ' + ordDtl.giftLimitDt + ')</p></div>\n';
|
|
|
+ tag += ' <div class="order_text"><p>' + ordDtl.recipNm + '님이 주소를 입력하기 전입니다. (입력기한 ' + ordDtl.giftLimitDt + ')</p></div>\n';
|
|
|
}
|
|
|
|
|
|
// 선물 완료
|
|
|
if (!gagajf.isNull(ordDtl.recipBaseAddr) && ordDtl.ordDtlStat != 'G013_98' && ordDtl.ordDtlStat != 'G013_99') {
|
|
|
- tag += ' <div class="order_text"><p>' + ordDtl.recipNm + '님께 선물이 발송되었습니다.</p></div>\n';
|
|
|
+ tag += ' <div class="order_text"><p>' + ordDtl.recipNm + '님께 선물이 발송되었습니다.</p></div>\n';
|
|
|
}
|
|
|
|
|
|
// 선물 취소
|
|
|
if (ordDtl.ordDtlStat == 'G013_98' && ordDtl.ordDtlStat == 'G013_99') {
|
|
|
- tag += ' <div class="order_text"><p>주소 입력 기한이 경과되어 선물이 취소 되었습니다.</p></div>\n';
|
|
|
+ tag += ' <div class="order_text"><p>주소 입력 기한이 경과되어 선물이 취소 되었습니다.</p></div>\n';
|
|
|
}
|
|
|
} else {
|
|
|
// 주문 접수
|
|
|
if (ordDtl.ordDtlStat == 'G013_10') {
|
|
|
- tag += ' <div class="order_text">';
|
|
|
- tag += ' <p>주문이 완료되어 결제를 기다리고 있습니다.</p>';
|
|
|
+ tag += ' <div class="order_text">';
|
|
|
+ tag += ' <p>주문이 완료되어 결제를 기다리고 있습니다.</p>';
|
|
|
// 예약상품
|
|
|
if (!gagajf.isNull(ordDtl.delvResDt)) {
|
|
|
- tag += ' <p>예약판매 상품으로' + ordDtl.delvResDt + ' 출고 예정입니다.</p>';
|
|
|
+ tag += ' <p>예약판매 상품으로' + ordDtl.delvResDt + ' 출고 예정입니다.</p>';
|
|
|
}
|
|
|
- tag += ' </div>\n';
|
|
|
+ tag += ' </div>\n';
|
|
|
}
|
|
|
|
|
|
// 상품준비중
|
|
|
if (ordDtl.ordDtlStat == 'G013_30') {
|
|
|
- tag += ' <div class="order_text">';
|
|
|
- tag += ' <p>배송할 상품을 준비 중입니다.</p>';
|
|
|
+ tag += ' <div class="order_text">';
|
|
|
+ tag += ' <p>배송할 상품을 준비 중입니다.</p>';
|
|
|
// 예약상품
|
|
|
if (!gagajf.isNull(ordDtl.delvResDt)) {
|
|
|
- tag += ' <p>예약판매 상품으로' + ordDtl.delvResDt + ' 출고 예정입니다.</p>';
|
|
|
+ tag += ' <p>예약판매 상품으로' + ordDtl.delvResDt + ' 출고 예정입니다.</p>';
|
|
|
}
|
|
|
- tag += ' </div>\n';
|
|
|
+ tag += ' </div>\n';
|
|
|
}
|
|
|
|
|
|
// 배송준비중
|
|
|
if (ordDtl.ordDtlStat == 'G013_40') {
|
|
|
- tag += ' <div class="order_text">';
|
|
|
- tag += ' <p>상품 준비가 완료되어 곧 배송될 예정입니다.</p>';
|
|
|
+ tag += ' <div class="order_text">';
|
|
|
+ tag += ' <p>상품 준비가 완료되어 곧 배송될 예정입니다.</p>';
|
|
|
// 예약상품
|
|
|
if (!gagajf.isNull(ordDtl.delvResDt)) {
|
|
|
- tag += ' <p>예약판매 상품으로' + ordDtl.delvResDt + ' 출고 예정입니다.</p>';
|
|
|
+ tag += ' <p>예약판매 상품으로' + ordDtl.delvResDt + ' 출고 예정입니다.</p>';
|
|
|
}
|
|
|
- tag += ' </div>\n';
|
|
|
+ tag += ' </div>\n';
|
|
|
}
|
|
|
|
|
|
// 배송중, 배송완료
|
|
|
@@ -570,62 +570,62 @@
|
|
|
// 교환/반품 신청 불가 상품 처리
|
|
|
if (ordDtl.changeableYn == 'N' || ordDtl.returnableYn == 'N') {
|
|
|
// 교환신청 불가 상품
|
|
|
- tag += ' <div class="order_text">\n';
|
|
|
+ tag += ' <div class="order_text">\n';
|
|
|
if (ordDtl.changeableYn == 'N' && ordDtl.returnableYn == 'Y') {
|
|
|
- tag += ' <p>해당 상품은 교환이 불가능한 상품입니다. 문의사항은 1:1문의를 이용해주세요.</p>\n';
|
|
|
+ tag += ' <p>해당 상품은 교환이 불가능한 상품입니다. 문의사항은 1:1문의를 이용해주세요.</p>\n';
|
|
|
}
|
|
|
// 반품신청 불가 상품
|
|
|
else if (ordDtl.changeableYn == 'Y' && ordDtl.returnableYn == 'N') {
|
|
|
- tag += ' <p>해당 상품은 반품이 불가능한 상품입니다. 문의사항은 1:1문의를 이용해주세요.</p>\n';
|
|
|
+ tag += ' <p>해당 상품은 반품이 불가능한 상품입니다. 문의사항은 1:1문의를 이용해주세요.</p>\n';
|
|
|
}
|
|
|
// 교환/반품신청 불가 상품
|
|
|
else if (ordDtl.changeableYn == 'N' && ordDtl.returnableYn == 'N') {
|
|
|
- tag += ' <p>해당 상품은 교환/반품이 불가능한 상품입니다. 문의사항은 1:1문의를 이용해주세요.</p>\n';
|
|
|
+ tag += ' <p>해당 상품은 교환/반품이 불가능한 상품입니다. 문의사항은 1:1문의를 이용해주세요.</p>\n';
|
|
|
}
|
|
|
|
|
|
// 배송완료
|
|
|
if (ordDtl.ordDtlStat == 'G013_60') {
|
|
|
- tag += ' <p>15일 후 자동으로 구매확정됩니다.</p>\n';
|
|
|
+ tag += ' <p>15일 후 자동으로 구매확정됩니다.</p>\n';
|
|
|
}
|
|
|
|
|
|
- tag += ' </div>';
|
|
|
+ tag += ' </div>';
|
|
|
} else if (ordDtl.ordDtlStat == 'G013_60') {
|
|
|
- tag += ' <div class="order_text"><p>15일 후 자동으로 구매확정됩니다.</p></div>\n';
|
|
|
+ tag += ' <div class="order_text"><p>15일 후 자동으로 구매확정됩니다.</p></div>\n';
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 구매확정
|
|
|
if (ordDtl.ordDtlStat == 'G013_70' && ordDtl.reviewableYn == 'Y' && ordDtl.reviewSq == null) {
|
|
|
- tag += ' <div class="order_text"><p>리뷰를 작성하면 다른 구매자에게 도움이 될 수 있습니다.</p></div>\n';
|
|
|
+ tag += ' <div class="order_text"><p>리뷰를 작성하면 다른 구매자에게 도움이 될 수 있습니다.</p></div>\n';
|
|
|
}
|
|
|
}
|
|
|
- tag += ' </div>';
|
|
|
+ tag += ' </div>';
|
|
|
});
|
|
|
- tag += ' </div>';
|
|
|
+ tag += ' </div>';
|
|
|
//사은품 처리
|
|
|
if (order.freeGiftList != null && order.freeGiftList.length > 0) {
|
|
|
- tag += ' <div class="goods_foot">';
|
|
|
- tag += ' <div class="order_gift">';
|
|
|
- tag += ' <span class="title">사은품</span>';
|
|
|
- tag += ' <ul>';
|
|
|
+ tag += ' <div class="goods_foot">';
|
|
|
+ tag += ' <div class="order_gift">';
|
|
|
+ tag += ' <span class="title">사은품</span>';
|
|
|
+ tag += ' <ul>';
|
|
|
$.each(order.freeGiftList, function(index, freeGift) {
|
|
|
- tag += ' <li>' + freeGift.goodsNm + ' ' + '<span>(-' + freeGift.usePoint.addComma() + 'P)</span></li>';
|
|
|
+ tag += ' <li>' + freeGift.goodsNm + ' ' + '<span>(-' + freeGift.usePoint.addComma() + 'P)</span></li>';
|
|
|
});
|
|
|
- tag += ' </ul>';
|
|
|
- tag += ' </div>';
|
|
|
- tag += ' </div>';
|
|
|
+ tag += ' </ul>';
|
|
|
+ tag += ' </div>';
|
|
|
+ tag += ' </div>';
|
|
|
}
|
|
|
- tag += '</div>';
|
|
|
+ tag += ' </div>';
|
|
|
});
|
|
|
} else {
|
|
|
// 데이터 없음 표시
|
|
|
- tag += '<div class="nodata">';
|
|
|
- tag += ' <div class="txt_box">';
|
|
|
- tag += ' <p>';
|
|
|
- tag += ' 주문내역이 없습니다.<br>';
|
|
|
- tag += ' </p>';
|
|
|
- tag += ' </div>';
|
|
|
- tag += '</div>';
|
|
|
+ tag += ' <div class="nodata">';
|
|
|
+ tag += ' <div class="txt_box">';
|
|
|
+ tag += ' <p>';
|
|
|
+ tag += ' 주문내역이 없습니다.<br>';
|
|
|
+ tag += ' </p>';
|
|
|
+ tag += ' </div>';
|
|
|
+ tag += ' </div>';
|
|
|
}
|
|
|
|
|
|
return tag;
|