|
@@ -77,7 +77,7 @@
|
|
|
<span class="option"><em th:text="${ordDtl.optCd1}"></em><em th:text="${ordDtl.optCd2}"></em></span>
|
|
<span class="option"><em th:text="${ordDtl.optCd1}"></em><em th:text="${ordDtl.optCd2}"></em></span>
|
|
|
<span class="count">수량 <em th:text="${ordDtl.ordQty}"></em>개</span>
|
|
<span class="count">수량 <em th:text="${ordDtl.ordQty}"></em>개</span>
|
|
|
</p>
|
|
</p>
|
|
|
- <button type="button" class="btn btn_dark cart_btn">쇼핑백 담기</button>
|
|
|
|
|
|
|
+ <button type="button" class="btn btn_dark cart_btn" onclick="fnCreateCart(this);">쇼핑백 담기</button>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="info_calc">
|
|
<div class="info_calc">
|
|
|
<p class="price">
|
|
<p class="price">
|
|
@@ -94,9 +94,9 @@
|
|
|
<p class="dlvr_desc" th:if="${ordDtl.delvEddt}" th:text="|${ordDtl.delvEddt}일 도착|"></p>
|
|
<p class="dlvr_desc" th:if="${ordDtl.delvEddt}" th:text="|${ordDtl.delvEddt}일 도착|"></p>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="tbl_btn_wrap case02">
|
|
<div class="tbl_btn_wrap case02">
|
|
|
- <button type="button" class="btn btn_default btn_sm"><span>교환</span></button>
|
|
|
|
|
- <button type="button" class="btn btn_default btn_sm"><span>반품/취소</span></button>
|
|
|
|
|
- <button type="button" class="btn btn_default btn_sm" th:if="${ordDtl.reviewSq == 0}"><span>리뷰작성</span></button>
|
|
|
|
|
|
|
+ <button type="button" class="btn btn_default btn_sm" onclick="fnCreateExchange(this);"><span>교환</span></button>
|
|
|
|
|
+ <button type="button" class="btn btn_default btn_sm" onclick="fnCreateCancel(this);"><span>반품/취소</span></button>
|
|
|
|
|
+ <button type="button" class="btn btn_default btn_sm" th:if="${ordDtl.reviewSq == 0}" onclick="fnCreateReview(this);"><span>리뷰작성</span></button>
|
|
|
</div>
|
|
</div>
|
|
|
</td>
|
|
</td>
|
|
|
<td class="merge_row" th:if="${oneData.giftPackYn == 'Y' and #strings.isEmpty(ordDtl.recipBaseAddr)}">
|
|
<td class="merge_row" th:if="${oneData.giftPackYn == 'Y' and #strings.isEmpty(ordDtl.recipBaseAddr)}">
|
|
@@ -106,7 +106,7 @@
|
|
|
<p class="dlvr_desc" th:text="|(${ordDtl.giftLimitDt}까지)|"></p>
|
|
<p class="dlvr_desc" th:text="|(${ordDtl.giftLimitDt}까지)|"></p>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="tbl_btn_wrap case02">
|
|
<div class="tbl_btn_wrap case02">
|
|
|
- <button type="button" class="btn btn_dark btn_sm"><span>SMS 재전송</span></button>
|
|
|
|
|
|
|
+ <button type="button" class="btn btn_dark btn_sm" onclick="fnReSendSms(this);"><span>SMS 재전송</span></button>
|
|
|
</div>
|
|
</div>
|
|
|
</td>
|
|
</td>
|
|
|
<td class="merge_row" th:if="${oneData.giftPackYn == 'Y' and !#strings.isEmpty(ordDtl.recipBaseAddr)}">
|
|
<td class="merge_row" th:if="${oneData.giftPackYn == 'Y' and !#strings.isEmpty(ordDtl.recipBaseAddr)}">
|
|
@@ -136,7 +136,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="order_confirm" th:if="${order.ordDtlStat == 'G013_50' or order.ordDtlStat == 'G013_55'}">
|
|
<div class="order_confirm" th:if="${order.ordDtlStat == 'G013_50' or order.ordDtlStat == 'G013_55'}">
|
|
|
<span class="cf_txt" th:text="|${order.shipCompNm} / ${order.invoiceNo}|"></span>
|
|
<span class="cf_txt" th:text="|${order.shipCompNm} / ${order.invoiceNo}|"></span>
|
|
|
- <button type="button" class="btn btn_primary">배송조회</button>
|
|
|
|
|
|
|
+ <button type="button" class="btn btn_primary" th:attr="ordNo=${oneData.ordNo}, invoiceNo=${order.invoiceNo}, shipCompCd=${order.shipCompCd}" onclick="fnGetDeliveryInfo(this)">배송조회</button>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="order_confirm" th:if="${order.ordDtlStat == 'G013_60'}">
|
|
<div class="order_confirm" th:if="${order.ordDtlStat == 'G013_60'}">
|
|
|
<span class="cf_txt" th:text="|${order.purchaseConfirmDay}일 후 자동으로 구매확정|"></span>
|
|
<span class="cf_txt" th:text="|${order.purchaseConfirmDay}일 후 자동으로 구매확정|"></span>
|
|
@@ -144,11 +144,11 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="order_confirm" th:if="${order.ordDtlStat == 'G013_70' and order.reviewSq == 0}">
|
|
<div class="order_confirm" th:if="${order.ordDtlStat == 'G013_70' and order.reviewSq == 0}">
|
|
|
<span class="cf_txt">리뷰를 작성하면 다른 구매자에게 도움이 될 수 있습니다.</span>
|
|
<span class="cf_txt">리뷰를 작성하면 다른 구매자에게 도움이 될 수 있습니다.</span>
|
|
|
- <button type="button" class="btn btn_primary">리뷰작성</button>
|
|
|
|
|
|
|
+ <button type="button" class="btn btn_primary" th:attr="|banner='banner'|" onclick="fnCreateReview(this);">리뷰작성</button>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="order_confirm" th:if="${order.ordDtlStat == 'G013_70' and order.reviewSq > 0}">
|
|
<div class="order_confirm" th:if="${order.ordDtlStat == 'G013_70' and order.reviewSq > 0}">
|
|
|
<span class="cf_txt">주문내역 다시 구매하기 위해</span>
|
|
<span class="cf_txt">주문내역 다시 구매하기 위해</span>
|
|
|
- <button type="button" class="btn btn_primary">장바구니 담기</button>
|
|
|
|
|
|
|
+ <button type="button" class="btn btn_primary" onclick="fnCreateCart(this);">장바구니 담기</button>
|
|
|
</div>
|
|
</div>
|
|
|
</th:block>
|
|
</th:block>
|
|
|
|
|
|
|
@@ -406,63 +406,6 @@
|
|
|
<script th:inline="javascript">
|
|
<script th:inline="javascript">
|
|
|
let ordNo = [[${ordNo}]];
|
|
let ordNo = [[${ordNo}]];
|
|
|
|
|
|
|
|
- // 주문 내역 삭제 처리
|
|
|
|
|
- var fnDeleteOrder = function() {
|
|
|
|
|
- mcxDialog.confirm('주문 내역을 삭제하시겠습니까?', {
|
|
|
|
|
- cancelBtnText: "취소",
|
|
|
|
|
- sureBtnText: "확인",
|
|
|
|
|
- sureBtnClick: function(){
|
|
|
|
|
- let data = {};
|
|
|
|
|
-
|
|
|
|
|
- data.ordNo = ordNo;
|
|
|
|
|
-
|
|
|
|
|
- var jsonData = JSON.stringify(data);
|
|
|
|
|
- gagajf.ajaxJsonSubmit('/mypage/order/delete'
|
|
|
|
|
- , jsonData
|
|
|
|
|
- , function() {
|
|
|
|
|
- cfnGoToPage(_PAGE_MYPAGE);
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- };
|
|
|
|
|
-
|
|
|
|
|
- // 구매확정 처리
|
|
|
|
|
- var fnDecideOrder = function(param) {
|
|
|
|
|
- let ordDtlNoArr = $(param).parent().parent().find('input[name=ordDtlNo]');
|
|
|
|
|
- let ordDtlStatArr = $(param).parent().parent().find('input[name=ordDtlStat]');
|
|
|
|
|
-
|
|
|
|
|
- console.log($(param).parent().parent().find('input[name=ordDtlNo]'));
|
|
|
|
|
- let orderDecisionArr = [];
|
|
|
|
|
- $.each(ordDtlNoArr, function(idx, item) {
|
|
|
|
|
- if (ordDtlStatArr[idx].value == 'G013_60') {
|
|
|
|
|
- orderDecisionArr.push(item.value);
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- if (orderDecisionArr.length == 0) {
|
|
|
|
|
- mcxDialog.alert('구매확정 가능한 상품이 없습니다.');
|
|
|
|
|
- return false;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- mcxDialog.confirm('구매확정 처리를 하시겠습니까?', {
|
|
|
|
|
- cancelBtnText: "취소",
|
|
|
|
|
- sureBtnText: "확인",
|
|
|
|
|
- sureBtnClick: function(){
|
|
|
|
|
- let data = {};
|
|
|
|
|
-
|
|
|
|
|
- data.ordNo = ordNo;
|
|
|
|
|
- data.ordDtlNoArr = orderDecisionArr;
|
|
|
|
|
-
|
|
|
|
|
- var jsonData = JSON.stringify(data);
|
|
|
|
|
- gagajf.ajaxJsonSubmit('/mypage/order/decision'
|
|
|
|
|
- , jsonData
|
|
|
|
|
- , function() {
|
|
|
|
|
- cfnGoToPage(_PAGE_MYPAGE_ORDER_DETAIL + ordNo);
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
// 배송메모 변경 버튼 클릭 이벤트
|
|
// 배송메모 변경 버튼 클릭 이벤트
|
|
|
var fnChangeDelvMemo = function() {
|
|
var fnChangeDelvMemo = function() {
|
|
|
// TODO
|
|
// TODO
|