<!DOCTYPE html>
<html lang="ko" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorator="mob/common/layout/MypageLayoutMob">
<!--
 *******************************************************************************
 * @source  : MypageDeliveryInfoFormMob.html
 * @desc    : 마이페이지 > 배송조회 Page
 *============================================================================
 * STYLE24
 * Copyright(C) 2021 TSIT, All rights reserved.
 *============================================================================
 * VER  DATE         AUTHOR      DESCRIPTION
 * ===  ===========  ==========  =============================================
 * 1.0  2021.05.11   card007     최초 작성
 *******************************************************************************
 -->
<body>

<th:block layout:fragment="content">
<main role="" id="mypageDeliveryInfoForm" class="container my">
	<section class="content my_goodsy">
		<div class="inner wide bg_beige">
			<div class="order_number">
				<dl class="clear">
					<dt>주문번호</dt>
					<dd  th:text="${ordNo}"></dd>
				</dl>
				<a href="javascript:void(0);" class="delete" onclick="fnDeleteOrder()">주문 내역 삭제</a>
			</div>
		</div>
		<div class="inner">
			<th:block th:if="${orderList}" th:each="order, status : ${orderList}">
				<div class="part_goods">
					<div class="goods_top">
						<th:block th:unless="${order.giftPackYn == 'Y'}">
							<div class="goods_date">주문일<span class="date" th:text="${order.ordDt}"></span></div>
						</th:block>
						<th:block th:if="${order.giftPackYn == 'Y'}">
							<div class="goods_date">선물일<span class="date" th:text="${order.ordDt}"></span></div>
						</th:block>
					</div>
					
					<th:block th:if="${order.ordDtlList}" th:each="ordDtl, status : ${order.ordDtlList}" th:with="imageUrl=${@environment.getProperty('upload.goods.view')}">
						<div class="goods_section">
							<div class="goods_status">
								<!-- 선물주문 -->
								<th:block th:if="${order.giftPackYn == 'Y'}">
									<p class="dlvr_staus" th:if="${ordDtl.giftAddrInpYn == 'N' and ordDtl.giftLimitDay >= 0}">주소 입력 대기중</p>
									<p class="dlvr_staus" th:if="${ordDtl.giftAddrInpYn == 'Y' and ordDtl.ordDtlStat != 'G013_98' and ordDtl.ordDtlStat != 'G013_99'}">선물 완료</p>
									<p class="dlvr_staus" th:if="${ordDtl.ordDtlStat == 'G013_98' or ordDtl.ordDtlStat == 'G013_99'}">선물 취소</p>
								</th:block>
								<!-- //선물주문 -->
								<!-- 일반주문 -->
								<th:block th:unless="${order.giftPackYn == 'Y'}">
									<p class="dlvr_staus" th:if="${ordDtl.ordDtlStat == 'G013_10'}">주문접수</p>
									<p class="dlvr_staus" th:if="${ordDtl.ordDtlStat == 'G013_35'}">상품준비중</p>
									<p class="dlvr_staus" th:unless="${ordDtl.ordDtlStat == 'G013_10' or ordDtl.ordDtlStat == 'G013_35'}" th:text="${ordDtl.ordDtlStatNm}"></p>
								</th:block>
								<!-- //일반주문 -->
							</div>
							<div class="goods_detail">
								<input type="hidden" name="ordDtlNoArr" th:value="${ordDtl.ordDtlNo}"/>
								<input type="hidden" name="cnclRtnReqQtyArr" th:value="${ordDtl.ordQty - ordDtl.cnclRtnQty}"/>

								<a href="javascript:void(0);" th:attr="goodsCd=${ordDtl.goodsCd}, optCd1=${ordDtl.goodsType == 'G056_N' ? ordDtl.optCd1 : ''}, ithrCd='IN20_03'" onclick="fnGoToGoodsDetail(this)">
									<div class="thumb_box">
										<img th:src="${imageUrl + '/' + ordDtl.sysImgNm + '?RS=90'}" width="100%" alt="">
									</div>
									<div class="info_box">
										<div class="od_name">
											<div class="brand">
												<span th:text="${ordDtl.brandNm}"></span>
												<div class="badge_wrap">
													<em class="order_badge order_bullet_badge" th:if="${ordDtl.shotDelvYn == 'Y'}">총알배송</em>
													<em class="order_badge" th:if="${ordDtl.shotDelvYn == 'N' and ordDtl.selfGoodsYn == 'Y'}">STYLE24 일반배송</em>
													<em class="order_badge" th:if="${ordDtl.selfGoodsYn == 'N'}">업체직배송</em>
												</div>
											</div>
											<div class="name" th:text="${ordDtl.goodsNm}"></div>
										</div>
										<div class="od_opt">
											<div class="option">
												<!-- 세트상품 -->
												<th:block th:if="${ordDtl.goodsType == 'G056_S'}">
													<th:block th:each="option, status : ${ordDtl.colorNmArr}">
														<em th:text="${option}"></em>
														<em th:text="${ordDtl.optCd2Arr[status.index]}"></em>
													</th:block>
												</th:block>
												<!-- //세트상품 -->
												<!-- 일반상품 -->
												<th:block th:unless="${ordDtl.goodsType == 'G056_S'}">
													<th:block th:each="option, status : ${ordDtl.colorNmArr}">
														<em th:text="${ordDtl.colorNm}"></em>
														<em th:text="${ordDtl.optCd2}"></em>
													</th:block>
												</th:block>
												<!-- //일반상품 -->
											</div>
										</div>
										<div class="od_calc">
											<p class="point"><span th:text="${#numbers.formatInteger(ordDtl.savePntAmt, 1, 'COMMA')}"></span>P 적립예정</p>
											<p class="sale_price" th:if="${(ordDtl.ordAmt - ordDtl.cnclRtnAmt) > (ordDtl.realOrdAmt + ordDtl.pntDcAmt + ordDtl.gfcdUseAmt)}">
												<del>
													<em th:text="${#numbers.formatInteger(ordDtl.ordAmt - ordDtl.cnclRtnAmt, 1, 'COMMA')}"></em>원
												</del>
											</p>
											<p class="price">
												<span class="selling_price">
													<em th:text="${#numbers.formatInteger(ordDtl.realOrdAmt + ordDtl.pntDcAmt + ordDtl.gfcdUseAmt, 1, 'COMMA')}"></em>원
												</span>
												<span class="count">
													<em th:text="${ordDtl.ordQty - ordDtl.cnclRtnQty}"></em>개
												</span>
											</p>
										</div>
									</div>
								</a>
							</div>
							
							<!-- 주문상태별 버튼기능 정의 -->
							<!-- 일반주문 -->
							<th:block th:unless="${ordDtl.giftPackYn} == 'Y'">
								<!-- 입금대기 (1:1문의, 쇼핑백 담기) -->
								<th:block th:if="${ordDtl.ordDtlStat == 'G013_10'}">
									<div class="goods_btn_wrap btn_group_flex">
										<div><button type="button" class="btn btn_default btn_cncl_complete" onclick="cfnGoToPage(_PAGE_ONETOONE_QNA);"><span>1:1 문의</span></button></div>
										<div><button type="button" class="btn btn_default btn_cart_save" th:ordNo="${ordDtl.ordNo}" th:ordDtlNo="${ordDtl.ordDtlNo}" onclick="fnCreateCart(this);"><span>쇼핑백 담기</span></button></div>
									</div>
								</th:block>
								<!-- //입금대기 (1:1문의, 쇼핑백 담기) -->

								<!-- 결제완료, 상품준비중, 출고처지정 (주문취소) -->
								<th:block th:if="${ordDtl.ordDtlStat} == 'G013_20' or ${ordDtl.ordDtlStat} == 'G013_30' or ${ordDtl.ordDtlStat} == 'G013_35'">
									<th:block th:if="${ordDtl.ordExchGb == 'O'}">
										<!-- 2021.09.01 card007 AS-IS Data 취소처리 못하게 처리 -->
										<!-- 2021.09.13 card007 AS-IS Data 취소처리 -->
<!--										<th:block th:if="${#numbers.formatInteger(#strings.replace(ordDtl.ordDt, '.', ''), 1)} >= 20210901">-->
										<div class="goods_btn_wrap btn_group_flex">
											<div><button type="button" class="btn btn_default btn_cncl_complete" th:attr="ordNo=${ordDtl.ordNo}, ordDtlNo=${ordDtl.ordDtlNo}, delvFeeCd=${ordDtl.delvFeeCd}, ordCanChgQty=${ordDtl.ordCanChgQty}" onclick="fnCreateChange(this, 'cancel');"><span>주문 취소</span></button></div>
										</div>
<!--										</th:block>-->
									</th:block>
									<th:block th:unless="${ordDtl.ordExchGb == 'O'}">
										<div class="goods_btn_wrap btn_group_flex">
											<div><button type="button" class="btn btn_default btn_cncl_complete" onclick="cfnGoToPage(_PAGE_ONETOONE_QNA);"><span>1:1 문의</span></button></div>
											<div><button type="button" class="btn btn_default btn_cart_save" th:ordNo="${ordDtl.ordNo}" th:ordDtlNo="${ordDtl.ordDtlNo}" onclick="fnCreateCart(this);"><span>쇼핑백 담기</span></button></div>
										</div>
									</th:block>
								</th:block>
								<!-- //결제완료, 상품준비중, 출고처지정 (주문취소) -->
								
								<!-- 배송준비중-->
								<th:block th:if="${ordDtl.ordDtlStat} == 'G013_40'">
								</th:block>
								<!-- //배송준비중-->
								
								<!-- 배송중 (교환가능, 반품가능) -->
								<th:block th:if="${ordDtl.ordDtlStat} == 'G013_50' or ${ordDtl.ordDtlStat} == 'G013_55'">
									<div class="goods_btn_wrap btn_group_flex btn_count">
										<!-- 교환불가 -->
										<th:block th:if="${ordDtl.changeableYn} == 'N' and ${ordDtl.returnableYn} == 'Y'">
											<div>
												<button type="button" class="btn btn_default btn_qna_write" onclick="cfnGoToPage(_PAGE_ONETOONE_QNA);">
													<span>1:1 문의</span>
												</button>
											</div>
										</th:block>
										<!-- //교환불가 -->
										<!-- 교환가능 -->
										<th:block th:if="${ordDtl.changeableYn} == 'Y'">
											<div>
												<button type="button" class="btn btn_default btn_exch_req" th:ordNo="${ordDtl.ordNo}" th:ordDtlNo="${ordDtl.ordDtlNo}" th:ordCanChgQty="${ordDtl.ordCanChgQty}" th:delvFeeCd="${ordDtl.delvFeeCd}" onclick="fnCreateChange(this, 'exchange');">
													<span>교환 신청</span>
												</button>
											</div>
										</th:block>
										<!-- //교환가능 -->
										<!-- 반품가능 -->
										<th:block th:if="${ordDtl.returnableYn} == 'Y'">
											<div>
												<button type="button" class="btn btn_default btn_rtn_req" th:ordNo="${ordDtl.ordNo}" th:ordDtlNo="${ordDtl.ordDtlNo}" th:ordCanChgQty="${ordDtl.ordCanChgQty}" th:delvFeeCd="${ordDtl.delvFeeCd}" onclick="fnCreateChange(this, 'return');">
													<span>반품 신청</span>
												</button>
											</div>
										</th:block>
										<!-- 반품가능 -->
										<!-- 반품불가 -->
										<th:block th:if="${ordDtl.changeableYn} == 'Y' and ${ordDtl.returnableYn} == 'N'">
											<div>
												<button type="button" class="btn btn_default btn_qna_write" onclick="cfnGoToPage(_PAGE_ONETOONE_QNA);">
													<span>1:1 문의</span>
												</button>
											</div>
										</th:block>
										<!-- //반품불가 -->

										<!-- 교환불가, 반품불가 -->
										<th:block th:if="${ordDtl.returnableYn} == 'N' and ${ordDtl.changeableYn} == 'N'">
											<div>
												<button type="button" class="btn btn_default btn_qna_write" onclick="cfnGoToPage(_PAGE_ONETOONE_QNA);">
													<span>1:1 문의</span>
												</button>
											</div>
										</th:block>
										<!-- //교환불가, 반품불가 -->

<!--										<div><button type="button" class="btn btn_default btn_delv_sch" th:attr="ordNo=${ordDtl.ordNo}, ordDtlNo=${ordDtl.ordDtlNo}, shipCompCd=${ordDtl.shipCompCd}, invoiceNo=${ordDtl.invoiceNo}" onclick="fnGoToDelivery(this);"><span>배송 조회</span></button></div>-->
									</div>
								</th:block>
								<!-- //배송중 (교환가능, 반품가능) -->
								
								<!-- 배송완료 (교환가능, 반품가능) -->
								<th:block th:if="${ordDtl.ordDtlStat} == 'G013_60'">
									<div class="goods_btn_wrap btn_group_flex">
										<!-- 교환불가 -->
										<th:block th:if="${ordDtl.changeableYn} == 'N' and ${ordDtl.returnableYn} == 'Y'">
											<div>
												<button type="button" class="btn btn_default btn_qna_write" onclick="cfnGoToPage(_PAGE_ONETOONE_QNA);">
													<span>1:1 문의</span>
												</button>
											</div>
										</th:block>
										<!-- //교환불가 -->
										<!-- 교환가능 -->
										<th:block th:if="${ordDtl.changeableYn} == 'Y'">
											<div>
												<button type="button" class="btn btn_default btn_exch_req" th:ordNo="${ordDtl.ordNo}" th:ordDtlNo="${ordDtl.ordDtlNo}" th:ordCanChgQty="${ordDtl.ordCanChgQty}" th:delvFeeCd="${ordDtl.delvFeeCd}" onclick="fnCreateChange(this, 'exchange');">
													<span>교환 신청</span>
												</button>
											</div>
										</th:block>
										<!-- //교환가능 -->
										<!-- 반품가능 -->
										<th:block th:if="${ordDtl.returnableYn} == 'Y'">
											<div>
												<button type="button" class="btn btn_default btn_rtn_req" th:ordNo="${ordDtl.ordNo}" th:ordDtlNo="${ordDtl.ordDtlNo}" th:ordCanChgQty="${ordDtl.ordCanChgQty}" th:delvFeeCd="${ordDtl.delvFeeCd}" onclick="fnCreateChange(this, 'return');">
													<span>반품 신청</span>
												</button>
											</div>
										</th:block>
										<!-- //반품가능 -->
										<!-- 반품불가 -->
										<th:block th:if="${ordDtl.changeableYn} == 'Y' and ${ordDtl.returnableYn} == 'N'">
											<div>
												<button type="button" class="btn btn_default btn_qna_write" onclick="cfnGoToPage(_PAGE_ONETOONE_QNA);">
													<span>1:1 문의</span>
												</button>
											</div>
										</th:block>
										<!-- //반품불가 -->
										<!-- 교환불가, 반품불가 -->
										<th:block th:if="${ordDtl.returnableYn} == 'N' and ${ordDtl.changeableYn} == 'N'">
											<div>
												<button type="button" class="btn btn_default btn_qna_write" onclick="cfnGoToPage(_PAGE_ONETOONE_QNA);">
													<span>1:1 문의</span>
												</button>
											</div>
										</th:block>
										<!-- //교환불가, 반품불가 -->

										<!-- 구매확정 -->
										<th:block th:if="${ordDtl.ordReqChgQty == 0}">
											<div>
												<button type="button" th:id="btn_purchase_confirm" class="btn btn_primary" th:ordNo="${ordDtl.ordNo}" th:ordDtlNo="${ordDtl.ordDtlNo}" onclick="fnDecideOrder(this);">
													<span>구매 확정</span>
												</button>
											</div>
										</th:block>
										<!-- //구매확정 -->
									</div>
								</th:block>
								<!-- //배송완료 (교환가능, 반품가능) -->
								
								<!-- 구매확정 -->
								<th:block th:if="${ordDtl.ordDtlStat} == 'G013_70'">
									<div class="goods_btn_wrap btn_group_flex">
										<!-- 리뷰사용불가능, 리뷰등록후일때 -->
										<th:block th:unless="${ordDtl.reviewableYn} == 'Y' and ${ordDtl.reviewSq} == null">
											<div><button type="button" class="btn btn_default btn_qna_write" onclick="cfnGoToPage(_PAGE_ONETOONE_QNA);"><span>1:1 문의</span></button></div>
										</th:block>
										<!-- //리뷰사용불가능, 리뷰등록후일때 -->

										<div><button type="button" class="btn btn_default btn_cart_save" th:attr="ordNo=${ordDtl.ordNo}, ordDtlNo=${ordDtl.ordDtlNo}" onclick="fnCreateCart(this);"><span>쇼핑백 담기</span></button></div>

										<!-- 리뷰사용가능, 리뷰등록전일때 -->
										<th:block th:if="${ordDtl.reviewableYn} == 'Y' and ${ordDtl.reviewSq} == null">
											<div><button type="button" class="btn btn_primary btn_review_write" th:attr="ordNo=${ordDtl.ordNo}, ordDtlNo=${ordDtl.ordDtlNo}, goodsCd=${ordDtl.goodsCd}" onclick="fnCreateReview(this);"><span>리뷰 쓰기</span></button></div>
										</th:block>
										<!-- //리뷰사용가능, 리뷰등록전일때 -->
									</div>
								</th:block>
								<!-- //구매확정 -->
							</th:block>
							<!-- //일반주문 -->
							<!-- 선물주문 -->
							<th:block th:if="${ordDtl.giftPackYn} == 'Y'">
								<!-- 배송지등록전 -->
								<th:block th:if="${ordDtl.giftAddrInpYn == 'N'} and ${ordDtl.giftLimitDay} >= 0">
									<div><button type="button" class="btn btn_primary btn_sms_send" th:attr="ordNo=${ordDtl.ordNo}" onclick="fnReSendSms(this);"><span>SMS 재발송</span></button></div>
								</th:block>
								<!-- //배송지등록전 -->
								
								<!-- 배송지등록후 (입금대기, 결제완료, 상품준비중, 출고처지정, 배송준비중) -->
								<th:block th:if="${ordDtl.ordDtlStat} == 'G013_10' or ${ordDtl.ordDtlStat} == 'G013_20' or ${ordDtl.ordDtlStat} == 'G013_30' or ${ordDtl.ordDtlStat} == 'G013_35'">
									<div><button type="button" class="btn btn_default btn_cncl_complete" th:attr="ordNo=${ordDtl.ordNo}, ordDtlNo=${ordDtl.ordDtlNo}, delvFeeCd=${ordDtl.delvFeeCd}, ordCanChgQty=${ordDtl.ordCanChgQty}" onclick="fnCreateChange(this, 'cancel');"><span>주문 취소</span></button></div>
								</th:block>
								<!-- //배송지등록후 (입금대기, 결제완료, 상품준비중, 출고처지정, 배송준비중) -->
								
								<!-- 배송지등록완료, 결제전취소, 결제후취소 아닐경우 -->
								<th:block th:if="${ordDtl.ordDtlStat} == 'G013_50' or ${ordDtl.ordDtlStat} == 'G013_55' or ${ordDtl.ordDtlStat} == 'G013_60' or ${ordDtl.ordDtlStat} == 'G013_70'">
									<th:block th:if="${ordDtl.giftAddrInpYn == 'Y'} and ${ordDtl.ordDtlStat} != 'G013_98' and ${ordDtl.ordDtlStat} != 'G013_99'">
										<div><button type="button" class="btn btn_default btn_cart_save" th:attr="ordNo=${ordDtl.ordNo}, ordDtlNo=${ordDtl.ordDtlNo}" onclick="fnCreateCart(this);"><span>쇼핑백 담기</span></button></div>
										<!-- 리뷰사용가능, 리뷰등록전일때 -->
										<th:block th:if="${ordDtl.reviewableYn} == 'Y' and ${ordDtl.reviewSq} == null and ${ordDtl.ordDtlStat} == 'G013_70'">
											<div><button type="button" class="btn btn_primary btn_review_write" th:attr="ordNo=${ordDtl.ordNo}, ordDtlNo=${ordDtl.ordDtlNo}, goodsCd=${ordDtl.goodsCd}" onclick="fnCreateReview(this);"><span>리뷰 쓰기</span></button></div>
										</th:block>
										<!-- //리뷰사용가능, 리뷰등록전일때 -->
									</th:block>
								</th:block>
								<!-- //배송지등록완료, 결제전취소, 결제후취소 아닐경우 -->
							</th:block>
							<!-- //선물주문 -->
							<!-- //주문상태별 버튼기능 정의 -->
							
							<!-- 주문상태별 문구정보 정의 -->
							<th:block th:unless="${ordDtl.giftPackYn} == 'Y'">
								<div class="goods_alert">
									<!-- 배송중, 배송완료 상태 교환, 반품 가능 상태 체크 -->
									<th:block th:if="${ordDtl.ordDtlStat} == 'G013_50' or ${ordDtl.ordDtlStat} == 'G013_55' or ${ordDtl.ordDtlStat} == 'G013_60'">
										<!-- 교환불가능, 반품불가능 -->
										<th:block th:if="${ordDtl.changeableYn} == 'N' and ${ordDtl.returnableYn} == 'N'">
											<p class="cf_txt cf_desc">해당 상품은 교환/반품이 불가능한 상품입니다.<br>문의사항은 1:1 문의를 이용해 주세요.</p>
										</th:block>
										<!-- //교환불가능, 반품불가능 -->
										
										<!-- 교환불가능 -->
										<th:block th:if="${ordDtl.changeableYn} == 'N' and ${ordDtl.returnableYn} == 'Y'">
											<p class="cf_txt cf_desc">해당 상품은 교환이 불가능한 상품입니다.<br>문의사항은 1:1 문의를 이용해 주세요.</p>
										</th:block>
										<!-- //교환불가능 -->
										
										<!-- 반품불가능 -->
										<th:block th:if="${ordDtl.changeableYn} == 'Y' and ${ordDtl.returnableYn} == 'N'">
											<p class="cf_txt cf_desc">해당 상품은 교환이 불가능한 상품입니다.<br>문의사항은 1:1 문의를 이용해 주세요.</p>
										</th:block>
										<!-- //반품불가능 -->
									</th:block>
									<!-- //배송중, 배송완료 상태 -->
								</div>
								
								<!-- 주문접수 -->
								<th:block th:if="${ordDtl.ordDtlStat} == 'G013_10'">
									<div class="goods_txt">
										<p class="cf_txt cf_desc">주문 완료 / 결제를 기다리고 있습니다.</p>
										<th:block th:if="${ordDtl.delvResDt} != null">
											<p class="cf_txt cf_desc" th:text="|예약판매 상품으로 ${ordDtl.delvResDt} 출고 예정입니다.|"></p>
										</th:block>
									</div>
								</th:block>
								<!-- //주문접수 -->
								
								<!-- 결제완료, 예약배송상품 -->
								<th:block th:if="${ordDtl.ordDtlStat} == 'G013_10'">
									<th:block th:if="${ordDtl.delvResDt} != null">
										<div class="goods_txt">
											<p class="cf_txt cf_desc" th:text="|예약판매 상품으로 ${ordDtl.delvResDt} 출고 예정입니다.|"></p>
										</div>
									</th:block>
								</th:block>
								<!-- //결제완료, 예약배송상품 -->
								
								<!-- 상품준비중 -->
								<th:block th:if="${ordDtl.ordDtlStat} == 'G013_30' or ${ordDtl.ordDtlStat} == 'G013_35'">
									<div class="goods_txt">
										<p class="cf_txt cf_desc">배송할 상품을 준비 중입니다.</p>
										<th:block th:if="${ordDtl.delvResDt} != null">
											<p class="cf_txt cf_desc" th:text="|예약판매 상품으로 ${ordDtl.delvResDt} 출고 예정입니다.|"></p>
										</th:block>
									</div>
								</th:block>
								<!-- //상품준비중 -->
								
								<!-- 배송준비중 -->
								<th:block th:if="${ordDtl.ordDtlStat} == 'G013_40'">
									<div class="goods_txt">
										<p class="cf_txt cf_desc">상품 준비가 완료되어 곧 배송될 예정입니다.</p>
										<th:block th:if="${ordDtl.delvResDt} != null">
											<p class="cf_txt cf_desc" th:text="|예약판매 상품으로 ${ordDtl.delvResDt} 출고 예정입니다.|"></p>
										</th:block>
									</div>
								</th:block>
								<!-- //배송준비중 -->
								
								<!-- 배송완료 -->
								<th:block th:if="${ordDtl.ordDtlStat} == 'G013_60'">
									<div class="goods_txt">
										<p class="cf_txt cf_desc" th:if="${ordDtl.ordReqChgQty == 0}" th:text="|${ordDtl.autoDecideLeftDay}일 후 자동으로 구매확정됩니다.|"></p>
										<p class="cf_txt cf_desc" th:unless="${ordDtl.ordReqChgQty == 0}" th:text="|반품/교환이 진행 중입니다.|"></p>
									</div>
								</th:block>
								<!-- //배송완료 -->
								
								<!-- 구매확정 -->
								<th:block th:if="${ordDtl.ordDtlStat} == 'G013_70'">
									<!-- 리뷰사용가능, 리뷰등록전일때 -->
									<th:block th:if="${ordDtl.reviewableYn} == 'Y' and ${ordDtl.reviewSq} == null">
										<div class="goods_txt">
											<p class="cf_txt cf_desc">리뷰를 작성하면 다른 구매자에게 도움이 될 수 있습니다</p>
										</div>
									</th:block>
									<!-- //리뷰사용가능, 리뷰등록전일때 -->
								</th:block>
								<!-- //구매확정 -->
							</th:block>
							
							<!-- 선물배송일때 -->
							<th:block th:if="${ordDtl.giftPackYn} == 'Y'">
								<!-- 배송지등록전 -->
								<th:block th:if="${ordDtl.giftAddrInpYn == 'N'} and ${ordDtl.giftLimitDay} >= 0">
									<div class="goods_txt">
										<p class="cf_txt cf_desc"><span th:text="|‘${ordDtl.recipNm}’|"></span>님 주소를 입력하기 전입니다.</p>
										<p class="period">입력기한 <span th:text="${ordDtl.giftLimitDt}"></span></p>
									</div>
								</th:block>
								<!-- //배송지등록전 -->
								
								<!-- 배송지등록완료, 결제전취소, 결제후취소 아닐경우 -->
								<th:block th:if="${ordDtl.ordDtlStat} == 'G013_50' or ${ordDtl.ordDtlStat} == 'G013_55' or ${ordDtl.ordDtlStat} == 'G013_60' or ${ordDtl.ordDtlStat} == 'G013_70'">
									<th:block th:if="${ordDtl.giftAddrInpYn == 'Y'} and ${ordDtl.ordDtlStat} != 'G013_98' and ${ordDtl.ordDtlStat} != 'G013_99'">
										<div class="goods_txt">
											<p class="cf_txt cf_desc"><span th:text="|‘${ordDtl.recipNm}’|"></span>님께 선물이 발송되었습니다.</p>
										</div>
									</th:block>
								</th:block>
								<!-- //배송지등록완료, 결제전취소, 결제후취소 아닐경우 -->
								
								<!-- 선물 취소 -->
								<th:block th:if="${ordDtl.ordDtlStat} == 'G013_98' and ${ordDtl.ordDtlStat} == 'G013_99'">
									<div class="goods_txt">
										<p class="cf_txt cf_desc">주소 입력 기한이 경과되어 선물이 취소 되었습니다.</p>
									</div>
								</th:block>
								<!-- //선물 취소 -->
							</th:block>
							<!-- //선물배송일때 -->
							<!-- //주문상태별 문구정보 정의 -->
							
							<!-- 사은품 영역 -->
							<th:block th:if="${#lists.size(order.ordDtlList) == status.count}">
								<th:block th:if="${order.freeGiftList != null and #lists.size(order.freeGiftList) > 0}">
									<div class="goods_gift">
										<div class="gift_wrap">
											<div class="title">사은품</div>
											<div class="li_gift">
												<ul>
													<th:block th:each="freeGift , j : ${order.freeGiftList}">
														<li>
															<span class="gift_name" th:text="${freeGift.goodsNm}"></span> 
															<th:block th:if="${freeGift.usePoint} > 0">
																<span class="deduct_p" th:text="|(-${#numbers.formatInteger(freeGift.usePoint, 1, 'COMMA')}P)|"></span>
															</th:block>
														</li>
													</th:block>
												</ul>
											</div>
										</div>
									</div>
								</th:block>
							</th:block>
							<!-- //사은품 영역 -->
						</div>
					</th:block>
				</div>
				<input type="hidden" name="accountNo" 	th:value="${order.oneData.accountNo}"/>
				<input type="hidden" name="accountNm" 	th:value="${order.oneData.accountNm}"/>
				<input type="hidden" name="bankCd" 		th:value="${order.oneData.bankCd}"/>
				<input type="hidden" name="delvMemo" 	th:value="${deliveryAddrInfo.delvMemo}"/>
			</th:block>
		</div>
		
		<div class="inner">
			<div class="tbl_wrap">
				<div class="tbl_tit">
					<h3>배송 정보</h3>
				</div>
				<div class="tbl type1">
					<table>
						<colgroup>
							<col width="107">
							<col width="*">
						</colgroup>
						<tbody><tr>
							<th>보내는 사람</th>
							<td>
								<div>
									<span th:text="${deliveryAddrInfo.recipNm}"></span> / <span th:text="${deliveryAddrInfo.recipPhnno}"></span>
								</div>
							</td>
						</tr>
						<tr>
							<th>제품정보</th>
							<td>
								<div>
									<span th:utext="|${oneData.brandNm}<br/>${oneData.goodsNm}|"></span>
								</div>
							</td>
						</tr>
						<tr>
							<th>송장번호</th>
							<td>
								<div>
									<span th:text="${oneData.invoiceNo}"></span>
								</div>
							</td>
						</tr>
						<tr>
							<th>배송주소</th>
							<td>
								<div>
									<span th:utext="|${deliveryAddrInfo.recipBaseAddr}<br/>${deliveryAddrInfo.recipDtlAddr}|"></span>
								</div>
							</td>
						</tr>
					</tbody></table>
				</div>
			</div>
			<div class="goods_tbl">
				<div class="tblWrap">
					<table class="table">
						<colgroup>
							<col style="width: 34%;">
							<col style="width: 33%;">
							<col style="width: 33%;">
						</colgroup>
						<thead>
							<tr>
								<th scope="col">시간</th>
								<th scope="col">장소</th>
								<th scope="col">유형</th>
							</tr>
						</thead>
						<tbody>
							<tr th:if="${sweetTrackerInfoList}" th:each="sweetTrackerInfo, status : ${sweetTrackerInfoList}">
								<td th:utext="|${#strings.substring(sweetTrackerInfo.timeTrans, 0, 10)}<br/>${#strings.substring(sweetTrackerInfo.timeTrans, 11, 19)}|"></td>
								<td th:text="${sweetTrackerInfo.delvWhere}"></td>
								<td th:text="${sweetTrackerInfo.details}"></td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</section>
</main>

<script src="/ux/plugins/gaga/gaga.paging.js"></script>
<script th:inline="javascript">
	let ordNo = [[${ordNo}]];
	var isLogin = [[${isLogin}]];

	$(document).ready(function() {
		// 타이틀명
		$('#htopTitle').text('배송조회');
		
		// 버튼 클래스 설정
		$.each($('.btn_count'), function(idx, item) {
			if ($(item).children().length > 3 && !$(item).hasClass('col2')) {
				$(item).addClass('col2');
			}
		});
	});
</script>

</th:block>

</body>
</html>
