<!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/SubLayoutMob">
<!--
 *******************************************************************************
 * @source  : OrderCompleteMob.html
 * @desc    : 주문완료 Page
 *============================================================================
 * STYLE24
 * Copyright(C) 2020 TSIT, All rights reserved.
 *============================================================================
 * VER  DATE         AUTHOR      DESCRIPTION
 * ===  ===========  ==========  =============================================
 * 1.0  2021.04.12   jsh77b     최초 작성
 *******************************************************************************
 -->
<body>
<th:block layout:fragment="content">
<script type="text/javascript" src="//wcs.naver.net/wcslog.js"></script>
<main role="" id="" class="container od">
	<section class="content completed">
		<div class="inner wide">
			<div class="info_complete">
				<img th:src="${@environment.getProperty('domain.uximage')} + '/images/mo/ico_complete_check.png'" alt="주문이 완료 되었습니다.">
				<p class="txt_box">주문이 완료되었습니다.</p>
				<dl class="report_box">
					<div>
						<dt>주문번호</dt>
						<dd><span th:text="${orderInfo.ordNo}"></span></dd>
					</div>
				</dl>
			</div>
		</div>
		<!-- 무통장입금 결제시 -->
		<th:block th:if="${orderInfo.payMeans} == 'G014_20'">
			<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="${orderInfo.cardNm}"></span>/<span th:text="${orderInfo.vaNm}"></span>
										</div>
									</td>
								</tr>
								<tr>
									<th>계좌번호</th>
									<td>
										<div>
											<span th:text="${orderInfo.vaNo}"></span>
										</div>
									</td>
								</tr>
								<tr>
									<th>입금기한</th>
									<td>
										<div>
											<span th:text="|${orderInfo.vaDeadline} 23:59:59|"></span><!-- <span>12:00:00</span> --> 까지
										</div>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</th:block>
		<div class="inner wide">
			<!-- 폴딩리스트 -->
			<div class="ui_row">
				<div class="foldGroup">
					<ul>
						<li class="fold_mbinfo">
							<div class="fold_head">
								<a href="javascript:void(0)">
									<div>
										<div class="fold_tit">
											<span>주문고객</span>
										</div>
										<div class="data">
											<span th:text="${orderInfo.ordNm}"></span>
											<span th:text="${orderInfo.ordPhnno}"></span>
										</div>
									</div>
								</a>
							</div>
							<div class="fold_cont">
								<div class="customer_info">
									<dl>
										<div>
											<dt><span class="sr-only">주문자명</span></dt>
											<dd th:text="${orderInfo.ordNm}"></dd>
										</div>
										<div>
											<dt><span class="sr-only">이메일</span></dt>
											<dd th:text="${orderInfo.ordEmail}"></dd>
										</div>
										<div>
											<dt><span class="sr-only">휴대폰 번호</span></dt>
											<dd th:text="${orderInfo.ordPhnno}"></dd>
										</div>
									</dl>
								</div>
							</div>
						</li>
					</ul>
				</div>
			</div>
			<!-- 폴딩리스트 -->
		</div>
		<th:block th:if="${orderInfo.giftPackYn} == 'N'">
			<div class="inner wide">
				<!-- 폴딩리스트 -->
				<div class="ui_row">
					<div class="foldGroup shipfold">
						<ul>
							<li class="fold_delivery">
								<div class="fold_head">
									<a href="javascript:void(0)">
										<div>
											<div class="fold_tit">
												<span>배송지 정보</span>
											</div>
											<div class="data">
												<span class="recipAddr" th:text="${orderInfo.recipBaseAddr} + '    ' + ${orderInfo.recipDtlAddr}"></span>
											</div>
										</div>
									</a>
								</div>
								<div class="fold_cont">
									<!-- //배송지 정보 변경불가 -->
									<div class="ship_info">
										<button type="button" id="btn_adrsChange_pop" class="btn_popup"><span>배송지 변경</span></button>
										<dl>
											<div class="company">
												<dt><span class="sr-only">배송지명</span></dt>
												<dd id="recipNm" th:text="${orderInfo.recipNm}"></dd>
											</div>
											<div class="phone">
												<dt><span class="sr-only">휴대폰 번호</span></dt>
												<dd id="recipPhnno" th:text="${orderInfo.recipPhnno}"></dd>
											</div>
											<div class="addr">
												<dt><span class="sr-only">배송주소</span></dt>
												<dd id="recipAddr" th:text="${orderInfo.recipBaseAddr} + '    ' + ${orderInfo.recipDtlAddr}"></dd>
											</div>
											<div class="ship_request">
												<dt>배송요청 사항</dt>
												<dd id="delvMemo" th:text="${orderInfo.delvMemo}"></dd>
											</div>
										</dl>
									</div>
									<!-- //배송지 정보 변경불가 -->
								</div>
							</li>
						</ul>
					</div>
				</div>
				<!-- 폴딩리스트 -->
			</div>
		</th:block>
		<th:block th:if="${orderInfo.giftPackYn} == 'Y'">
			<div class="inner">
				<!-- 폴딩리스트 -->
				<div class="gift_wrap">
					<h3>선물 받으실 분</h3>
					<div class="gift_con">
						<div class="gift_info">
							<span th:text="${orderInfo.recipNm}"></span> / <span th:text="${orderInfo.recipPhnno}"></span>
						</div>
						<div class="message">
							<p class="gift_tit">선물 메세지</p>
							<div class="content">
								<p th:text="${orderInfo.giftMsg}" id="giftMsg"></p>
							</div> 
						</div>
					</div>
				</div>
			</div>
		</th:block>
		<div class="inner">
			<div class="tbl_wrap pay_wrap">
				<div class="tbl_tit"> 
					<h3>결제 정보</h3>
					<strong class="pay"><span th:text="${#numbers.formatInteger(realOrdSumAmt, 1, 'COMMA')}"></span>원</strong>
				</div>
				<div class="tbl type1">
					<table>
						<colgroup>
							<col width="227">
							<col width="*">
						</colgroup>   
						<tr>
							<td>
								<dl>
									<!-- 210330 : 태그 분할 -->
									<div>
										<dt>상품금액</dt>
										<dd>
											<div><span th:text="${#numbers.formatInteger(listSumAmt, 1, 'COMMA')}"></span>원</div>
										</dd>
									</div>
									<div>
										<dt>배송비</dt>
										<dd>
											<div><span th:text="${#numbers.formatInteger(realDelvSumAmt, 1, 'COMMA')}"></span>원</div>
										</dd>
									</div>
									<!-- //210330 : 태그 분할 -->
									<div>
										<dt>상품할인</dt>
										<th:block th:if="${goodsDcSumAmt}>0">
											<dd><div><span th:text="|- ${#numbers.formatInteger(goodsDcSumAmt, 1, 'COMMA')}|"></span>원</div></dd>
										</th:block>
										<th:block th:if="${goodsDcSumAmt}<1">
											<dd><div><span>0</span>원<div></dd>
										</th:block>
									</div>
									<div>
										<dt>즉시할인</dt>
										<th:block th:if="${cpn1DcSumAmt}>0">
											<dd><div><span th:text="|- ${#numbers.formatInteger(cpn1DcSumAmt, 1, 'COMMA')}|"></span>원</div></dd>
										</th:block>
										<th:block th:if="${cpn1DcSumAmt}<1">
											<dd><div><span>0</span>원<div></dd>
										</th:block>
									</div>
									<!-- 회원인경우노출 -->
									<th:block th:if="${isLogin}">
										<div>
											<dt>다다익선 할인</dt>
											<th:block th:if="${tmtbSumAmt}>0">
												<dd><div><span th:text="|- ${#numbers.formatInteger(tmtbSumAmt, 1, 'COMMA')}|"></span>원</div></dd>
											</th:block>
											<th:block th:if="${tmtbSumAmt}<1">
												<dd><div><span >0</span>원</div></dd>
											</th:block>
										</div>
										<div>
											<dt>쿠폰할인</dt>
											<th:block th:if="${cpnDcSumAmt}>0">
												<dd><div><span th:text="|- ${#numbers.formatInteger(cpnDcSumAmt, 1, 'COMMA')}|"></span>원</div></dd>
											</th:block>
											<th:block th:if="${cpnDcSumAmt}<1">
												<dd><div><em>0</em>원</div></dd>
											</th:block>
										</div>
										<div>
											<dt>선 포인트 사용</dt>
											<th:block th:if="${prePntDcSumAmt}>0">
												<dd><div><em th:text="|- ${#numbers.formatInteger(prePntDcSumAmt, 1, 'COMMA')}|"></em>P</div></dd>
											</th:block>
											<th:block th:if="${prePntDcSumAmt}<1">
												<dd><div><span>0</span>P</div></dd>
											</th:block>
										</div>
										<div>
											<dt>포인트 사용</dt>
											<th:block th:if="${pntDcSumAmt}>0">
												<dd><div><span th:text="|- ${#numbers.formatInteger(pntDcSumAmt, 1, 'COMMA')}|"></span>P</div></dd>
											</th:block>
											<th:block th:if="${pntDcSumAmt}<1">
												<dd><div><span>0</span>P</div></dd>
											</th:block>
										</div>
										<div>
											<dt>상품권 사용</dt>
											<th:block th:if="${gfcdUseSumAmt}>0">
												<dd><div><span th:text="|- ${#numbers.formatInteger(gfcdUseSumAmt, 1, 'COMMA')}|"></span>원</div></dd>
											</th:block>
											<th:block th:if="${gfcdUseSumAmt}<1">
												<dd><div><span>0</span>원</div></dd>
											</th:block>
										</div>
									</th:block>
									<div>
										<dt>마일리지 사용</dt>
										<th:block th:if="${mileageDcAmt}>0">
											<dd><div><span th:text="|- ${#numbers.formatInteger(mileageDcAmt, 1, 'COMMA')}|"></span>원</div></dd>
										</th:block>
										<th:block th:if="${mileageDcAmt}<1">
											<dd><div><span>0</span>원</div></dd>
										</th:block>
									</div>
									<div>
										<dt>제휴 할인</dt>
										<th:block th:if="${allianceDcAmt}>0">
											<dd><div><span th:text="|- ${#numbers.formatInteger(allianceDcAmt, 1, 'COMMA')}|"></span>원</div></dd>
										</th:block>
										<th:block th:if="${allianceDcAmt}<1">
											<dd><div><span>0</span>원</div></dd>
										</th:block>
									</div>
									<div>
										<dt>적립예정 포인트</dt>
										<dd>
											<div>
												<span th:text="${#numbers.formatInteger(savePntSumAmt, 1, 'COMMA')}"></span>P
											</div>
										</dd>
									</div>
									<div>
										<dt>결제방법</dt>
										<dd th:if="${orderInfo.pgGb == 'NAVER'}"><div><span>네이버 페이</span></div></dd>
										<dd th:if="${orderInfo.pgGb == 'KAKAO'}"><div><span>카카오 페이</span></div></dd>
										<dd th:if="${orderInfo.pgGb == 'PAYCO'}"><div><span>PAYCO</span></div></dd>
										<dd th:if="${orderInfo.pgGb == 'KCP' and orderInfo.payMeans == 'G014_10'}">
											<div>
												<span>
													실시간계좌이체
													<th:blcok th:if="${orderInfo.cashAuthNo} != null and ${orderInfo.cashAuthNo} != ''">
													<br>(현금영수증 신청)
													</th:blcok>
												</span>
											</div>
										</dd>
										<dd th:if="${orderInfo.pgGb == 'KCP' and orderInfo.payMeans == 'G014_20'}">
											<div>
												<span>
													무통장입금
													<th:blcok th:if="${orderInfo.cashAuthNo} != null and ${orderInfo.cashAuthNo} != ''">
													<br>(현금영수증 신청)
													</th:blcok>
												</span>
											</div>
										</dd>
										<dd><div><span th:if="${orderInfo.pgGb == 'KCP' and orderInfo.payMeans == 'G014_30'}" th:text="|${orderInfo.cardNm}/${orderInfo.cardMips}|"></span></div></dd>
										<dd th:if="${orderInfo.pgGb == 'KCP' and orderInfo.payMeans == 'G014_60'}"><div><span>휴대폰결제</span></div></dd>
													
										<!-- kcp 신용카드 
										<th:block th:if="${orderInfo.payMeans} == 'G014_30'">
											<th:block th:if="${orderInfo.cardType} == 'Y'">
												<dd><div><span th:text="|체크카드(${orderInfo.cardNm})/${orderInfo.cardMips}|"></span></div></dd>
											</th:block>
											<th:block th:if="${orderInfo.cardType} == 'N'">
												<dd><div><span th:text="|체크카드(${orderInfo.cardNm})/${orderInfo.cardMips}|"></span></div></dd>
											</th:block>
										</th:block>
										<th:block th:if="${orderInfo.payMeans} != 'G014_30'">
											<dd><div><span th:text="${orderInfo.payType}"></span></div></dd>
										</th:block>
										-->
									</div>
								</dl>
							</td>
						</tr>
					</table>
				</div>
			</div>
			<div class="btn_group btn_group_flex">
				<th:block th:if="${isLogin} == true">
					<div><button type="button" class="btn btn_gost" th:ordno="${orderInfo.ordNo}" onclick="fnGoToOrderDetail(this)"><span>주문 상세보기</span></button></div>
				</th:block>
				<th:block th:if="${isLogin} == false">
					<div><button type="button" class="btn btn_gost" th:ordno="${orderInfo.ordNo}" onclick="cfnGoToPage(_PAGE_NON_CUSTOMER_ORDER_CONFIRM);"><span>주문 상세보기</span></button></div>
				</th:block>
				<div><button type="button" class="btn btn_dark" onclick="location.href='/'"><span>쇼핑 계속하기</span></button></div>
			</div>
		</div>
	</section>
</main>


<script th:inline="javascript">
// 배송관련정보 변수선언
var ordNo			= [[${orderInfo.ordNo}]]		// 배송목록
var isLogin			= [[${isLogin}]];				// 로그인여부
var delvAddrSq		= [[${delvAddrSq}]];			// 배송지번호
var giftMsg			= [[${orderInfo.giftMsg}]];		// 선물메세지

// item.questContent.replaceAll("\n", "</br>")

//컨텐츠 호출
$(document).ready( function() {
	
	// 선물메시지
	if ($("#giftMsg").html() != null) {
		$("#giftMsg").html(giftMsg.replaceAll("\n", "</br>"));
	}
	
	// 2021.06.16 헤더숨김처리
	$('#htopSub').hide();
});

// 2.1 회원 배송지변경 팝업열기
$('#btn_adrsChange_pop').on("click", function(){
	// 회원인경우
	if (isLogin == true) {
		$.ajax( {
			type		: "POST",
			url 		: '/common/delvAddrChangePop',
			dataType 	: 'html',
			beforeSend : function(xhr, settings) {
				xhr.setRequestHeader("AJAX"			, "true");
				xhr.setRequestHeader('Accept'		, 'application/json');
				xhr.setRequestHeader('Content-Type'	, 'application/json');
			},
			success 	: function(result) {
				$("#adrsChangePop .modal-dialog .modal-content").html(result);
				$("#adrsChangePop").modal("show");
			}
		});
	}
	// 비회원인경우
	else {
		$.ajax( {
			type		: "POST",
			url 		: '/common/delvAddrAddPop',
			dataType 	: 'html',
			beforeSend : function(xhr, settings) {
				xhr.setRequestHeader("AJAX"			, "true");
				xhr.setRequestHeader('Accept'		, 'application/json');
				xhr.setRequestHeader('Content-Type'	, 'application/json');
			},
			success 	: function(result) {
				$("#adrsAddPop .modal-dialog .modal-content").html(result);
				$("#adrsAddPop").modal("show");
			}
		});	
	}
});

// 2.2 배송요청사항 팝업열기
$("#btn_rqstModify_pop").on("click", function(e){
	var jsonObj = new Object();
	jsonObj.delvMemo = $("#delvMemo").text();
	
	$.ajax({
		type		: "POST",
		url 		: "/common/delvMemoChangePop",
		data		: JSON.stringify(jsonObj),
		dataType 	: "html",
		beforeSend 	: function(xhr, settings) {
			xhr.setRequestHeader("AJAX"			, "true");
			xhr.setRequestHeader('Accept'		, 'application/json');
			xhr.setRequestHeader('Content-Type'	, 'application/json');
		},
		success 	: function(result) {
			if (result != null) {
				$("#rqstModifyPop .modal-dialog .modal-content").html(result);
				$("#rqstModifyPop").modal("show");
			}
		}
	});
	
	return false;
});

// 1.18 배송지정보 설정
var delvAddrSet = function(delvObj) {
	
	var rtnStr = "";
	rtnStr += "| recipNm 			::: " + delvObj.recipNm;
	rtnStr += "| recipPhnno 		::: " + delvObj.recipPhnno;
	rtnStr += "| recipZipcode 		::: " + delvObj.recipZipcode;
	rtnStr += "| recipBaseAddr 		::: " + delvObj.recipBaseAddr;
	rtnStr += "| recipDtlAddr 		::: " + delvObj.recipDtlAddr;
	rtnStr += "| delvMemo 			::: " + delvObj.delvMemo;
	
	let data = {};
	data.ordNo = ordNo;
	data.delvAddrSq = delvAddrSq;
	data.recipNm = delvObj.recipNm;
	data.recipPhnno = delvObj.recipPhnno;
	data.recipZipcode = delvObj.recipZipcode;
	data.recipBaseAddr = delvObj.recipBaseAddr;
	data.recipDtlAddr = delvObj.recipDtlAddr;
	data.delvMemo = delvObj.delvMemo;
	
	let jsonData = JSON.stringify(data);
	
	gagajf.ajaxJsonSubmit('/order/delivery/ban', jsonData, function(result) {
		if (!gagajf.isNull(result.banZipcode) && result.banZipcode > 0) {
			mcxDialog.alert('죄송합니다. 정읍,익산,전주 지역은 주문/배송이 불가한 지역입니다. 다른 배송지로 수정 해주세요.');
			return false;
		} else {
			$("#recipNm").text(delvObj.recipNm);
			$("#recipPhnno").text(delvObj.recipPhnno);
			$("#recipAddr").text(delvObj.recipBaseAddr + '    ' + delvObj.recipDtlAddr);
			$("#delvMemo").text(delvObj.delvMemo);
			
			// 2021.05.16 비회원구분처리
			let url = '';
			// 변수값 설정
			if (isLogin == true) {
				url = '/mypage/change/delvery/addr';
			} else {
				url = '/noMember/change/delvery/addr';
			}
			
			gagajf.ajaxJsonSubmit(url, jsonData, function (result) {
			});
		}
	});
}

// 1.19 배송메모설정
var delvMemoSet = function(delvMemoObj) {
	
	var rtnStr = "";
	rtnStr += "| delvMemo 			::: " + delvMemoObj.delvMemo;

	// 변수값 설정
	var jsonObj = {
		"delvAddrSq" 		: delvAddrSq
		, "delvMemo"		: delvMemoObj.delvMemo
	}
	
	$("#delvMemo").text(delvMemoObj.delvMemo);
	
	gagajf.ajaxJsonSubmit(
		"/common/updateDeliverAddrDelvMemo"
		, JSON.stringify(jsonObj)
		, function (result) {
			mcxDialog.alert("수정되었습니다.");
		}
	)
}

//주문상세보기 버튼 클릭 이벤트 처리
var fnGoToOrderDetail = function(param) {
	let ordNo = $(param).attr('ordNo');
	cfnGoToPage(_PAGE_MYPAGE_ORDER_DETAIL + ordNo);
}

</script>

<!-- 2021.05.27 주문완료 로그스크립트 삽입 -->
<script th:inline="javascript">
var orderDetailList 	= [[${orderDetailList}]]; // 주문상세목록
var criteoItems			= [];
var fbqItems			= [];
var enlipleItems		= [];
var totalCnt			= 0;

window._eglqueue = window._eglqueue || [];

/* STAR LOOP: 구매한 모든 상품에 대해 */
for (i=0 ; i<orderDetailList.length ; i++) {
	var goodsCd 		= orderDetailList[i].goodsCd;
	var currPrice 		= orderDetailList[i].currPrice;
	var ordQty 			= orderDetailList[i].ordQty;
	var itemkindNm		= orderDetailList[i].itemkindNm;
	var brandGroupNm	= orderDetailList[i].brandGroupNm;
	var goodsNm			= orderDetailList[i].goodsNm;

	_eglqueue.push(['addVar', 'orderItems', {itemId:goodsCd, price:currPrice, quantity:ordQty}]);
	criteoItems.push({id: goodsCd, price: currPrice+'', quantity: ordQty+''});
	fbqItems.push({id: goodsCd, quantity: ordQty+''});
	enlipleItems.push({productCode: goodsCd, productName: orderDetailList[i].goodsNm, price: orderDetailList[i].listPrice+'', dcPrice: currPrice+'', qty: ordQty+''});

	totalCnt += ordQty;
	
	// 코마스 광고 스크립트
	setTimeout( function() {
		cosemConvert([[${orderInfo.ordNo}]], (currPrice * ordQty), goodsCd, ordQty, currPrice, itemkindNm, brandGroupNm + "_" + goodsNm);
	}, 10);
}
/* END LOOP */

window._eglqueue = window._eglqueue || [];

_eglqueue.push(['setVar'	, 'cuid'		, eglqueueCuid]);
_eglqueue.push(['setVar'	, 'orderId'		, [[${orderInfo.ordNo}]]]);
_eglqueue.push(['setVar'	, 'orderPrice'	, [[${realOrdSumAmt}]]]);
_eglqueue.push(['setVar'	, 'userId'		, hCustId]); // optional
_eglqueue.push(['track'		, 'order']);

(function (s, x) {
s = document.createElement('script'); s.type = 'text/javascript';
s.async = true; s.defer = true; s.src = (('https:' == document.location.protocol) ? 'https' : 'http') + '://logger.eigene.io/js/logger.min.js';
x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x);
})();
</script>
<!-- //2021.05.27 주문완료 로그스크립트 삽입 -->

<!--네이버페이 전환스크립트를 이용하여 전환값 설정-->
<script th:inline="javascript">
	var _nasa={};
	if (window.wcs) _nasa["cnv"] = wcs.cnv("1", [[${realOrdSumAmt}]]);
</script>
<!--위 스크립트를 통해 설정된 전환값과 본 페이지의 로그를 서버에 전송-->
<script th:inline="javascript">
	if (!wcs_add) var wcs_add = {};
	wcs_add["wa"] = "[[${@environment.getProperty('naverPay.common.certification.key')}]]";
	if (!_nasa) var _nasa = {};
	if (window.wcs) {
		wcs.inflow("style24.com");
		wcs_do(_nasa); //서버로 로그 전송
	}
</script>

<!-- Criteo 세일즈 태그 -->
<script th:inline="javascript">
	window.criteo_q = window.criteo_q || [];
	var deviceType = /iPad/.test(navigator.userAgent) ? "t" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? "m" : "d";
	window.criteo_q.push(
		{ event: "setAccount", account: 6762}, // 이 라인은 업데이트하면 안됩니다
		{ event: "setEmail", email: criteoEmail }, // 유저가 로그인이 안되 있는 경우 빈 문자열을 전달
		{ event: "setSiteType", type: deviceType},
		{ event: "trackTransaction", id: [[${orderInfo.ordNo}]], item: criteoItems}
	);
</script>
<!-- END Criteo 세일즈 태그 -->

<!-- 픽셀 -->
<script th:inline="javascript">
	fbq('track', 'Purchase', {
		value: [[${realOrdSumAmt}]],
		currency: 'KRW',
		contents: fbqItems,
		content_type: 'product'
	});
</script>

<!-- Enliple Tracker Start -->
<script type="text/javascript">
	var ENP_VAR = { conversion: { product: [] } };
	
	// 주문한 각 제품들을 배열에 저장
	ENP_VAR.conversion.product.push(enlipleItems);
	
	ENP_VAR.conversion.ordCode= [[${orderInfo.ordNo}]];
	ENP_VAR.conversion.totalPrice = [[${realOrdSumAmt}]];
	ENP_VAR.conversion.totalQty = totalCnt;
	
	(function(a,g,e,n,t){a.enp=a.enp||function(){(a.enp.q=a.enp.q||[]).push(arguments)};n=g.createElement(e);n.async=!0;n.defer=!0;n.src="https://cdn.megadata.co.kr/dist/prod/enp_tracker_self_hosted.min.js";t=g.getElementsByTagName(e)[0];t.parentNode.insertBefore(n,t)})(window,document,"script");
	enp('create', 'conversion', 'is24', { device: 'M' }); // W:웹, M: 모바일, B: 반응형
	enp('send', 'conversion', 'is24');
</script>
<!-- Enliple Tracker End -->
</th:block>
</body>
</html>
