Jelajahi Sumber

모바일 마이페이지 주문서 개발중

jsh77b 5 tahun lalu
induk
melakukan
a345f49541

+ 2 - 0
src/main/java/com/style24/front/biz/web/TsfOrderController.java

@@ -805,6 +805,8 @@ public class TsfOrderController extends TsfBaseController {
 		
 		
 		
+		
+		
 		// 2021.03.16 주문완료화면이동처리
 		mav.setViewName("redirect:/order/complete?ordNo=" + order.getOrdNo());
 		

+ 367 - 0
src/main/webapp/WEB-INF/views/mob/mypage/MypageCreListFormMob.html

@@ -0,0 +1,367 @@
+<!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  : MypageCreListFormMob.html
+ * @desc    : 마이페이지 > 취소/반품/교환내역 Page
+ *============================================================================
+ * STYLE24
+ * Copyright(C) 2021 TSIT, All rights reserved.
+ *============================================================================
+ * VER  DATE         AUTHOR      DESCRIPTION
+ * ===  ===========  ==========  =============================================
+ * 1.0  2021.04.26   jsh77b     최초 작성
+ *******************************************************************************
+ -->
+<body>
+<th:block layout:fragment="content">
+<main role="" id="" class="container my">
+	<section class="content my_return"> <!-- 210409_수정 : class my_return 변경 -->
+		<div class="inner">
+			<div class="order_sort">
+				<a href="javascript:void(0);" class="od_date_btn">최근 1개월</a>
+				<a href="javascript:void(0);" class="od_status_btn">전체</a>
+			</div>
+		</div>
+		
+		<!-- common 주문목록 -->
+		<div data-id="layer_infinite_item" >
+			<section id="infiniteContainer">
+				<div id="listBoxOuter">
+					<div class="area_list" id="listBox">
+					</div>
+				</div>
+			</section>
+ 		</div>
+ 		<!-- common 주문목록 -->
+ 		
+	</section>
+</main>
+
+<script src="/ux/plugins/gaga/gaga.paging.js"></script>
+<script th:inline="javascript">
+	/*<![CDATA[*/
+	let totalCount = 0;
+	let pageSize = 0;
+
+	$(document).ready(function() {
+		
+		// 마이페이지 location 설정
+		fnSetMypageLocation('취소/반품/교환내역');
+		
+		// datepicker 설정
+		$('.period_datepicker').datepicker();
+
+		// 셀렉트박스 활성화
+		$('.select_custom.demand_status').each(function(index) {
+			new sCombo($(this));
+		});
+
+		// 주문 검색 기간 설정
+		$('#rdi-month2').click();
+
+		// Initialize a pagination
+		gagaPaging.init('searchForm', fnSearchCallback, 'paging', 5, 10);
+		
+		// Load data
+		gagaPaging.load(1);
+	});
+	
+	// 검색기간 버튼 클릭 이벤트 처리
+	var fnSetSearchPeriod = function(period) {
+		let date = new Date();
+		let edDate = date.getFullYear() + '-' + ('0' + (date.getMonth() + 1)).slice(-2) + '-' + ('0' + (date.getDate())).slice(-2);
+		date.setMonth(date.getMonth() - period);
+		let stDate = date.getFullYear() + '-' + ('0' + (date.getMonth() + 1)).slice(-2) + '-' + ('0' + (date.getDate())).slice(-2);
+
+		$('#edDate').val(edDate);
+		$('#searchForm input[name=edDate]').val(edDate);
+		$('#stDate').val(stDate);
+		$('#searchForm input[name=stDate]').val(stDate);
+	}
+
+	// 주문 목록 조회
+	var fnSearchCreList = function() {
+		gagaPaging.load(1);
+	}
+
+	// 주문 목록 조회 콜백
+	var fnSearchCallback = function(result) {
+		$('#creList').html(fnCreateCreList(result));
+
+		// Create pagination
+		gagaPaging.createPagination(result.creInfo.pageable);
+	}
+
+	// 검색기간 설정 체크
+	var fnCheckPeriod = function(param) {
+		let stDate = $('#stDate').val();
+		let edDate = $('#edDate').val();
+
+		let sdt = new Date(stDate);
+		let edt = new Date(edDate);
+		let dateDiff = Math.ceil((edt.getTime() - sdt.getTime()) / (1000 * 3600 * 24));
+
+		if (dateDiff > 366) {
+			let id = $(param).attr('id');
+			mcxDialog.alert('조회기간은 최대 1년을 넘을 수 없습니다.');
+			if (id == 'stDate') {
+				sdt.setFullYear(sdt.getFullYear() + 1);
+				let chgEdDate = sdt.getFullYear() + '-' + ('0' + (sdt.getMonth() + 1)).slice(-2) + '-' + ('0' + (sdt.getDate())).slice(-2);
+
+				$('#edDate').val(chgEdDate);
+				$('#searchForm input[name=edDate]').val(chgEdDate);
+			} else {
+				edt.setFullYear(edt.getFullYear() - 1);
+				let chgStDate = edt.getFullYear() + '-' + ('0' + (edt.getMonth() + 1)).slice(-2) + '-' + ('0' + (edt.getDate())).slice(-2);
+
+				$('#stDate').val(chgStDate);
+				$('#searchForm input[name=stDate]').val(chgStDate);
+			}
+		}
+	}
+
+	// 상태값 별 수량 업데이트 처리
+	var fnReloadStatusCount = function() {
+		let url = '/mypage/status/count';
+		
+		let data = {};
+		data.custNo = customerInfo.custNo;
+		
+		let jsonData = JSON.stringify(data);
+		
+		gagajf.ajaxJsonSubmit(url, jsonData, function(result) {
+			$('#orderReceiptCount').text(result.orderCount.orderReceiptCount);
+			$('#paymentCompleteCount').text(result.orderCount.paymentCompleteCount);
+			$('#goodsPrepareCount').text(result.orderCount.goodsPrepareCount);
+			$('#shipPrepareCount').text(result.orderCount.shipPrepareCount);
+			$('#shippingCount').text(result.orderCount.shippingCount);
+			$('#shipCompleteCount').text(result.orderCount.shipCompleteCount);
+			$('#orderCreCount').text(result.orderCount.cancelCount + result.orderCount.returnCount + result.orderCount.exchangeCount);
+		});
+	}
+
+	// 주문상세상태코드 셀렉트박스 변경 이벤트
+	$('.select_custom.demand_status').find('li').on('click', function() {
+		$('#searchForm input[name=chgStat]').val($(this).attr('code'));
+	});
+
+	// 주문내역 리스트 처리
+	var fnCreateCreList = function(param) {
+		let tag = '';
+		let imageUrl = [[${@environment.getProperty('upload.goods.view')}]];
+
+		if (param.creList != null && param.creList.length > 0) {
+			$.each(param.creList, function (idx, creList) {
+				tag += '						<div class="part_goods">\n';
+				tag += '							<div class="goods_head">\n';
+				if (creList.giftPackYn == 'Y') {
+					tag += '								<p>선물일 <span>' + creList.ordDt + '</span></p>\n';
+				} else {
+					tag += '								<p>주문일 <span>' + creList.ordDt + '</span></p>\n';
+				}
+				tag += '								<a href="javascript:void(0)" ordChgSq="' + creList.ordChgSq + '" chgGb="' + creList.oneData.chgGb + '" ordNo ="' + creList.oneData.ordNo + '" onclick="fnGoToCreDetail(this)">상세보기</a>\n';
+				tag += '							</div>\n';
+				tag += '							<div class="goods_cont">\n';
+				$.each(creList.creList, function (index, cre) {
+					tag += '								<!-- 주문상품1 -->\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="' + cre.goodsCd + '" onclick="fnGoToGoodsDetail(this)">\n';
+					tag += '													<span class="thumb">\n';
+					tag += '														<img src="' + imageUrl + '/' + cre.sysImgNm + '" width="100%" alt="">\n';
+					tag += '													</span>\n';
+					tag += '													<p>\n';
+					tag += '														<span class="brand">' + cre.brandNm + '</span>\n';
+					// 배송 아이콘 처리
+					if (cre.shotDelvYn == 'Y') {
+						tag += '														<span class="tag primary">총알배송</span>\n';
+					} else if (cre.selfGoodsYn == 'Y') {
+						tag += '														<span class="tag">STYLE24 일반배송</span>\n';
+					} else {
+						tag += '														<span class="tag">업체직배송</span>\n';
+					}
+					tag += '													</p>\n';
+					tag += '													<p>\n';
+					tag += '														<span class="name">' + cre.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 (cre.goodsType == 'G056_S') {
+						$.each(cre.colorNmArr, function (index2, option) {
+							tag += '													<span class="option">' + cre.itemNmArr[index2] + ' / ' + option + ' / ' + cre.optCd2Arr[index2] + '</span>\n';
+						});
+					} else {
+						tag += '													<span class="option">' + cre.colorNm + ' / ' + cre.optCd2 + '</span>\n';
+					}
+					tag += '												</div>\n';
+					tag += '											</div>\n';
+					tag += '											<div class="gd_calc">\n';
+					tag += '												<p>\n';
+					tag += '													<span class="count"><em>' + cre.chgQty + '</em>개</span>\n';
+					tag += '												</p>\n';
+					tag += '											</div>\n';
+					tag += '											<div class="gd_opt">\n';
+					tag += '												<div class="option_wrap">\n';
+					// 교환옵션
+					if (cre.chgGb == 'G680_40') {
+						$.each(creList.exchangeOptionList, function(index, exchange) {
+							if (cre.chgOrdDtlNo == exchange.ordDtlNo) {
+								if (cre.goodsType == 'G056_S') {
+									tag += '													<span class="title">교환 옵션</span>';
+									$.each(exchange.colorNmArr, function (index2, option) {
+										tag += '													<span class="option">' + exchange.itemNmArr[index2] + ' / ' + option + ' / ' + exchange.optCd2Arr[index2] + '</span>\n';
+									});
+								} else {
+									tag += '													<span class="option">' + exchange.colorNm + ' / ' + exchange.optCd2 + '</span>\n';
+								}
+							}
+						});
+					}
+					tag += '												</div>\n';
+					tag += '											</div>\n';
+					tag += '										</div>\n';
+					tag += '										<div class="status_box">\n';
+					tag += '											<p>\n';
+					tag += '												' + cre.chgStatNm + '\n';
+					tag += '												<span class="date">' + cre.chgDate + '</span>\n';
+					tag += '												<span class="time">' + cre.chgTime + '</span>\n';
+					tag += '											</p>\n';
+					tag += '										</div>\n';
+					tag += '										<div class="button_box">\n';
+					if (cre.chgStat == 'G685_20' || cre.chgStat == 'G685_21' || cre.chgStat == 'G685_50' || cre.chgStat == 'G685_51') {
+						tag += '											<p><button type="button" class="btn btn_default btn_sm" ordNo="' + cre.ordNo + '" ordChgSq="' + cre.ordChgSq + '" cancelGb="' + cre.chgGb + '" onclick="fnCreCancel(this);"><span>신청취소</span></button></p>\n';
+					}
+					if (cre.chgStat == 'G685_21' || cre.chgStat == 'G685_51' || cre.chgStat == 'G685_32') {
+						tag += '											<p><button type="button" class="btn btn_default btn_sm" ordNo="' + cre.ordNo + '" ordChgSq="' + cre.ordChgSq + '" onclick="fnCrePayAddCost(this);"><span>결제하기</span></button></p>\n';
+					}
+					if (cre.chgStat == 'G685_40') {
+						tag += '											<p><button type="button" class="btn btn_default btn_sm" ordDtlNo="' + cre.ordDtlNo + '" onclick="fnGoToDeliveryTrack(this);"><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 += '										</div>\n';
+					tag += '									</div>\n';
+					//if (cre.chgStat == 'G685_10') {
+					//	tag += '									<div class="order_text"><p>' + cre.addPayCost + '원 결제 후 취소 가능합니다.</p></div>\n';
+					//}
+					// cre.chgGb == 'G680_30' : 반품
+					// cre.chgGb == 'G680_40' : 교환
+					// 교환접수
+					if (cre.chgStat == 'G685_20') {
+						tag += '									<div class="order_text"><p>교환 신청이 접수 되었습니다. 신속하게 처리하여 드리겠습니다.</p></div>\n';
+					}
+					// 교환대기
+					if (cre.chgStat == 'G685_21') {
+						tag += '									<div class="order_text"><p>' + cre.addPayCost.addComma() + '원 결제 후 교환 가능합니다.</p></div>\n';
+					}
+					// 회수요청
+					if (cre.chgStat == 'G685_30') {
+						tag += '									<div class="order_text"><p>고객님이 요청하신 회수지로 상품을 회수 중에 있습니다.</p></div>\n';
+					}
+					// 상품 검수중(교환)
+					if (cre.chgStat == 'G685_31' && cre.chgGb == 'G680_40') {
+						tag += '									<div class="order_text"><p>고객님이 교환하신 상품을 검수 중에 있습니다.</p></div>\n';
+					}
+					// 결제대기(교환)
+					if (cre.chgStat == 'G685_32' && cre.chgGb == 'G680_40') {
+						tag += '									<div class="order_text"><p>' + cre.addPayCost.addComma() + '원 결제 후 교환 가능합니다.</p></div>\n';
+					}
+					// 교환완료
+					if (cre.chgStat == 'G685_40') {
+						$.each(creList.exchangeOptionList, function(index, exchange) {
+							if (cre.chgOrdDtlNo == exchange.ordDtlNo && (exchange.ordDtlStat == 'G013_60' || exchange.ordDtlStat == 'G013_70')) {
+								tag += '									<div class="order_text"><p>교환이 완료되었습니다.</p></div>\n';
+							}
+						});
+					}
+					// 교환철회
+					if (cre.chgStat == 'G685_49') {
+						tag += '									<div class="order_text"><p>요청하신 교환을 취소하였습니다.</p></div>\n';
+					}
+					// 반품접수
+					if (cre.chgStat == 'G685_50') {
+						tag += '									<div class="order_text"><p>반품 신청이 접수 되었습니다. 신속하게 처리하여 드리겠습니다.</p></div>\n';
+					}
+					// 반품대기
+					if (cre.chgStat == 'G685_51') {
+						tag += '									<div class="order_text"><p>' + cre.addPayCost.addComma() + '원 결제 후 반품 가능합니다.</p></div>\n';
+					}
+					// 상품 검수중(반품)
+					if (cre.chgStat == 'G685_31' && cre.chgGb == 'G680_40') {
+						tag += '									<div class="order_text"><p>고객님이 반품하신 상품을 검수 중에 있습니다.</p></div>\n';
+					}
+					// 결제대기(반품)
+					if (cre.chgStat == 'G685_32' && cre.chgGb == 'G680_40') {
+						tag += '									<div class="order_text"><p>' + cre.addPayCost.addComma() + '원 결제 후 반품 가능합니다.</p></div>\n';
+					}
+					// 환불진행중
+					if (cre.chgStat == 'G685_33') {
+						tag += '									<div class="order_text"><p>' + cre.refundAmt.addComma() + '원 환불을 진행하고 있습니다.(영업일 최대 3일 내 환불 예정)</p></div>\n';
+					}
+					// 반품완료
+					if (cre.chgStat == 'G685_60') {
+						tag += '									<div class="order_text"><p>반품이 완료되었습니다.</p></div>\n';
+					}
+					// 반품철회
+					if (cre.chgStat == 'G685_69') {
+						tag += '									<div class="order_text"><p>요청하신 반품을 취소하였습니다.</p></div>\n';
+					}
+					tag += '								</div>\n';
+				});
+				tag += '							</div>\n';
+				tag += '						</div>\n';
+			});
+		} else {
+			// 데이터 없음 표시
+			tag += '						<div class="nodata">';
+			tag += '							<div class="txt_box">';
+			tag += '								<p>';
+			tag += '									취소/반품/교환내역이 없습니다.<br>';
+			tag += '								</p>';
+			tag += '							</div>';
+			tag += '						</div>';
+		}
+
+		return tag;
+	}
+	
+	// 취반교 상세 페이지 이동
+	var fnGoToCreDetail = function(param) {
+		let ordChgSq = $(param).attr('ordChgSq');
+		let chgGb = $(param).attr('chgGb');
+		let ordNo = $(param).attr('ordNo');
+		
+		if (chgGb == 'G680_20') {
+			$('#cancelForm input[name=ordChgSq]').val(ordChgSq);
+			$('#cancelForm input[name=ordNo]').val(ordNo);
+			document.cancelForm.submit();
+		} else if (chgGb == 'G680_30') {
+			$('#returnForm input[name=ordChgSq]').val(ordChgSq);
+			$('#returnForm input[name=ordNo]').val(ordNo);
+			document.returnForm.submit();
+		} else if (chgGb == 'G680_40') {
+			$('#exchangeForm input[name=ordChgSq]').val(ordChgSq);
+			$('#exchangeForm input[name=ordNo]').val(ordNo);
+			document.exchangeForm.submit();
+		}
+	}
+	
+	// 취반교 배송조회 버튼 클릭 이벤트
+	var fnGoToDeliveryTrack = function(param) {
+		let ordDtlNo = $(param).attr('ordDtlNo');
+		// TODO
+		// 최반교 배송조회 페이지 이동 처리
+	}
+/*]]>*/
+</script>
+
+</th:block>
+
+</body>
+</html>

+ 211 - 0
src/main/webapp/WEB-INF/views/mob/mypage/MypageCreListInfoMob.html

@@ -0,0 +1,211 @@
+<div class="inner">
+	<div class="part_goods">
+		<!-- 취소,반품,교환 목록 -->
+		<th:block th:each="creList , i : ${creList}">
+			<div class="goods_top">
+				<!-- 선물주문여부체크 -->
+				<th:block th:if="${creList.giftPackYn} == 'Y'">
+					<div class="goods_date">선물일<span class="date" th:text="${creList.ordDt}"></span></div>
+				</th:block>'
+				<th:block th:unless="${creList.giftPackYn} == 'Y'">
+					<div class="goods_date">주문일<span class="date" th:text="${creList.ordDt}"></span></div>
+				</th:block>
+				<!-- //선물주문여부체크 -->
+				<a href="javascript:void(0);" th:ordChgSq="${creList.ordChgSq}" th:chgGb="${creList.oneData.chgGb}" th:ordNo="${creList.oneData.ordNo}" onclick="fnGoToCreDetail(this);" class="detail_btn">상세보기</a>
+			</div>
+			
+			<th:block th:each="cre , i , ${creList.creList}" th:with="imageUrl=${@environment.getProperty('upload.goods.view')}">
+				<div class="goods_section">
+					<div class="goods_status">
+						<p class="dlvr_staus" th:text="${cre.chgStatNm}"></p>
+						<!--  
+						<p class="dlvr_staus">회수 요청</p>
+						<p class="dlvr_staus">상품 검수 중</p>
+						<p class="dlvr_staus">교환 상품 발송</p> 
+						<p class="dlvr_staus">환불 진행 중</p>
+						<p class="dlvr_staus">완료</p>
+						<p class="dlvr_staus">접수 취소</p>
+						<p class="dlvr_staus">결제 대기</p>
+						-->
+						<p class="dlvr_desc"><th:block th:text="|${cre.chgDate} ${cre.chgTime}|"></p>
+					</div>
+					<div class="goods_detail">
+						<a href="javascript:void(0);">
+							<div class="thumb_box">
+								<img th:src="${imageUrl + '/' + cre.sysImgNm}" src="/" width="100%" alt="">
+							</div>
+							<div class="info_box">
+								<div class="od_name">
+									<div class="brand">
+										<span th:text="${cre.brandNm}"></span>
+										<div class="badge_wrap">
+											<th:block th:if="${cre.shotDelvYn} == 'Y'">
+												<em class="order_badge">STYLE24 일반배송</em>
+											</th:block>
+											<th:block th:if="${cre.selfGoodsYn} == 'Y' and ${cre.shotDelvYn} == 'N'">
+												<em class="order_badge order_bullet_badge">총알배송</em>
+											</th:block>
+											<th:block th:if="${cre.selfGoodsYn} == 'N' and ${cre.shotDelvYn} == 'N'">
+												<em class="order_badge order_bullet_badge">업체직배송</em>
+											</th:block>
+										</div>
+									</div>
+									<div class="name" th:text="${cre.goodsNm}"></div>
+								</div>
+								<div class="od_opt">
+									<!-- 세트상품일때 -->
+									<th:block th:if="${cre.goodsType} == 'G056_S'">
+										<th:block th:each="option , index2 , ${cre.colorNmArr}">
+											<div class="option">
+												<em th:text="${option]}"></em>
+												<em th:text="${cre.optCd2Arr[index2]}"></em>
+											</div>
+										</th:block>
+									</th:block>
+									<!-- //세트상품일때 -->
+									<!-- 단품상품일때 -->
+									<th:block th:unless="${cre.goodsType} == 'G056_S'">
+										<div class="option">
+											<em th:text="${cre.colorNm}"></em>
+											<em th:text="${cre.optCd2}"></em>
+										</div>
+									</th:block>
+									<!-- //단품상품일때 -->
+								</div>
+								
+								<!-- 교환일때 -->
+								<th:block th:if="${cre.chgGb} == 'G680_40'">
+									<div class="od_exchange_opt">
+										<span>교환옵션</span>
+										<th:block th:each="exchange , index, ${creList.exchangeOptionList}">
+											<th:block th:if="${cre.chgOrdDtlNo} == ${exchange.ordDtlNo}">
+												<!-- 세트상품일때 -->
+												<th:block th:if="${cre.goodsType} == 'G056_S'">
+													<th:block th:each-="option, index2, ${exchange.colorNmArr}">
+														<div class="option">
+															<em th:text="${exchange.itemNmArr[index2]}"></em>
+															<em th:text="${exchange.optCd2Arr[index2]}"></em>
+														</div>
+													</th:block>
+												</th:block>
+												<!-- //세트상품일때 -->
+												<!-- 일반상품일때 -->
+												<th:block th:unless="${cre.goodsType} == 'G056_S'">
+													<div class="option">
+														<em th:text="${exchange.colorNm}"></em>
+														<em th:text="${exchange.optCd2}"></em>
+													</div>
+												</th:block>
+												<!-- //일반상품일때 -->
+											</th:block>
+										</th:block>
+									</div>
+								</th:block>
+								<!-- //교환일때 -->
+								
+								<div class="od_calc">
+									<p class="price">
+										<span class="count"><em th:text="${cre.chgQty}"></em>개</span>
+									</p>
+								</div>
+							</div>
+						</a>
+					</div>
+					
+					<!-- 취소,반품,교환 상태별 버튼기능정의 -->
+					<div class="goods_btn_wrap btn_group_flex">
+						<!-- 교환접수 -->
+						<th:block th:if="${cre.chgStat} == 'G685_20'">
+							<div><button type="button" id="btn_return_cancle" class="btn btn_default"><span>신청 취소</span></button></div>
+							<div><button type="button" class="btn btn_default"><span>1:1 문의</span></button></div>
+						</th:block>
+						<!-- //교환접수 -->
+						<!-- 회수요청 -->
+						<th:block th:if="${cre.chgStat} == 'G685_30'">
+							<div><button type="button" class="btn btn_default"><span>1:1 문의</span></button></div>
+						</th:block>
+						<!-- 회수요청 -->
+						
+					</div>
+					<!-- //취소,반품,교환 상태별 버튼기능정의 -->
+					
+					<!-- 취소,반품,교환 상태별 문구정의 -->
+					<div class="goods_txt">
+						<!-- 교환접수 -->
+						<th:block th:if="${cre.chgStat} == 'G685_20'">
+							<p class="cf_txt cf_desc">교환 신청이 접수 되었습니다.<br>신속하게 처리하여 드리겠습니다.</p>
+						</th:block>
+						<!-- //교환접수 -->
+						<!-- 회수요청 -->
+						<th:block th:if="${cre.chgStat} == 'G685_30'">
+							<p class="cf_txt cf_desc">교환 신청이 접수 되었습니다.<br>신속하게 처리하여 드리겠습니다.</p>
+						</th:block>
+						<!-- //회수요청 -->
+						<!-- 상품검수중(교환) -->
+						<th:block th:if="${cre.chgStat} == 'G685_31' and ${cre.chgGb} == 'G680_40'">
+							<p class="cf_txt cf_desc">교환 신청이 접수 되었습니다.<br>신속하게 처리하여 드리겠습니다.</p>
+						</th:block>
+						<!-- //상품검수중(교환) -->
+						<!-- 결제대기(교환) -->
+						<th:block th:if="${cre.chgStat} == 'G685_32' and ${cre.chgGb} == 'G680_40'">
+							<p class="cf_txt cf_desc">교환 신청이 접수 되었습니다.<br>신속하게 처리하여 드리겠습니다.</p>
+						</th:block>
+						<!-- //결제대기(교환) -->
+						<!-- 교환완료 -->
+						<th:block th:if="${cre.chgStat} == 'G680_40'">
+							<th:block th:each="exchange, index , ${creList.exchangeOptionList}">
+								<th:block th:if="${cre.chgOrdDtlNo} == ${exchange.ordDtlNo} and (${exchange.ordDtlStat} == 'G013_60' or ${exchange.ordDtlStat} == 'G013_70')">
+									<p class="cf_txt cf_desc">교환 신청이 접수 되었습니다.<br>신속하게 처리하여 드리겠습니다.</p>
+								</th:block>
+							</th:block>
+						</th:block>
+						<!-- //교환완료 -->
+						<!-- 교환철회 -->
+						<th:block th:if="${cre.chgStat} == 'G685_49'">
+							<p class="cf_txt cf_desc">교환 신청이 접수 되었습니다.<br>신속하게 처리하여 드리겠습니다.</p>
+						</th:block>
+						<!-- //교환철회 -->
+						
+						<!-- 반품접수 -->
+						<th:block th:if="${cre.chgStat} == 'G685_50'">
+							<p class="cf_txt cf_desc">교환 신청이 접수 되었습니다.<br>신속하게 처리하여 드리겠습니다.</p>
+						</th:block>
+						<!-- //반품접수 -->
+						<!-- 반품대기 -->
+						<th:block th:if="${cre.chgStat} == 'G685_51'">
+							<p class="cf_txt cf_desc">교환 신청이 접수 되었습니다.<br>신속하게 처리하여 드리겠습니다.</p>
+						</th:block>
+						<!-- //반품대기 -->
+						<!-- 상품검수중(반품) -->
+						<th:block th:if="${cre.chgStat} == 'G685_31' AND ${cre.chgGb} == 'G680_30'">
+							<p class="cf_txt cf_desc">교환 신청이 접수 되었습니다.<br>신속하게 처리하여 드리겠습니다.</p>
+						</th:block>
+						<!-- //상품검수중(반품) -->	
+						<!-- 결제대기(반품) -->
+						<th:block th:if="${cre.chgStat} == 'G685_32' AND ${cre.chgGb} == 'G680_30'">
+							<p class="cf_txt cf_desc">교환 신청이 접수 되었습니다.<br>신속하게 처리하여 드리겠습니다.</p>
+						</th:block>
+						<!-- //결제대기(반품) -->
+						<!-- 환불진행중 -->
+						<th:block th:if="${cre.chgStat} == 'G685_33'">
+							<p class="cf_txt cf_desc">교환 신청이 접수 되었습니다.<br>신속하게 처리하여 드리겠습니다.</p>
+						</th:block>
+						<!-- //환불진행중 -->
+						<!-- 반품완료 -->
+						<th:block th:if="${cre.chgStat} == 'G685_60'">
+							<p class="cf_txt cf_desc">교환 신청이 접수 되었습니다.<br>신속하게 처리하여 드리겠습니다.</p>
+						</th:block>
+						<!-- //반품완료 -->
+						<!-- 반품철회 -->
+						<th:block th:if="${cre.chgStat} == 'G685_69'">
+							<p class="cf_txt cf_desc">교환 신청이 접수 되었습니다.<br>신속하게 처리하여 드리겠습니다.</p>
+						</th:block>
+						<!-- //반품철회 -->
+					</div>
+					<!-- //취소,반품,교환 상태별 문구정의 -->
+				</div>
+			</th:block>
+		</th:block>
+	</div>
+</div>
+

+ 2 - 2
src/main/webapp/WEB-INF/views/mob/mypage/MypageOrderDetailFormMob.html

@@ -704,10 +704,10 @@
 
 	$(document).ready(function() {
 		// 마이페이지 LNB 설정
-		fnSetMypageLnbList(1);
+		//fnSetMypageLnbList(1);
 		
 		// 마이페이지 location 설정
-		fnSetMypageLocation('주문확인/배송조회', '_PAGE_MYPAGE_ORDER_LIST', '주문상세');
+		//fnSetMypageLocation('주문확인/배송조회', '_PAGE_MYPAGE_ORDER_LIST', '주문상세');
 		
 		// 선물메시지
 		if ($("#giftMsg").html() != null) {

+ 55 - 22
src/main/webapp/WEB-INF/views/mob/mypage/MypageOrderListFormMob.html

@@ -134,17 +134,17 @@
 	 		<div class="inner wide">
 				<div class="lnb_list">
 					<ul>
-						<li><a href="javascript:void(0);" class="on">주문확인/배송조회</a></li>
-						<li><a href="javascript:void(0);">취소/반품/교환내역</a></li>
-						<li><a href="javascript:void(0);">재입고 알림 내역</a></li>
-						<li><a href="javascript:void(0);">쿠폰</a></li>
-						<li><a href="javascript:void(0);">STYLE 포인트</a></li>
-						<li><a href="javascript:void(0);">상품권</a></li>
-						<li><a href="javascript:void(0);">리뷰</a></li>
-						<li><a href="javascript:void(0);">배송지 관리</a></li>
-						<li><a href="javascript:void(0);">위시리스트</a></li>
-						<li><a href="javascript:void(0);">내정보 관리</a></li>
-						<li><a href="javascript:void(0);">회원 탈퇴</a></li>
+						<li><a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_MYPAGE_ORDER_LIST);">주문확인/배송조회</a></li>
+						<li><a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_MYPAGE_CRE_LIST);">취소/반품/교환내역</a></li>
+						<li><a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_MYPAGE_RESTOCK);">재입고 알림 내역</a></li>
+						<li><a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_MYPAGE_COUPON);">쿠폰</a></li>
+						<li><a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_MYPAGE_POINT);">STYLE 포인트</a></li>
+						<li><a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_MYPAGE_GIFTCARD);">상품권</a></li>
+						<li><a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_MYPAGE_REVIEW);">리뷰</a></li>
+						<li><a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_MYPAGE_DELIVERY_ADDR);">배송지 관리</a></li>
+						<li><a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_MYPAGE_WISHLIST);">위시리스트</a></li>
+						<li><a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_MYPAGE_CUSTOMER);">내정보 관리</a></li>
+						<li><a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_MYPAGE_SECEDE);">회원 탈퇴</a></li>
 					</ul>
 				</div>
 			</div>
@@ -207,19 +207,11 @@ var remainList		= 0;
 var jsonObj 		= {};
 var scrollTemp		= true;
 var mypageMainYn	= [[${mypageMainYn}]];
+let customerInfo 	= [[${customerInfo}]];
 
 // 초기설정
 $(document).ready(function() {
 	
-	// 전체페이지 구하기
-	totalPage 	= parseInt(totalCnt / 10);
-	remainList 	= totalCnt % 10; 
-	
-	// 나머지가 있으면 전체 페이지 + 1
-	if (remainList > 0) {
-		totalPage = totalPage + 1;
-	}
-	
 	// 인피니티스크롤 초기화
 	//fnGoodsReviewInfiniteScrollInit();
 	
@@ -233,15 +225,27 @@ $(document).ready(function() {
 		, "edDate" 			: ""
 		, "custNo"			: custNo
 	}
+	
 	// AJAX 변수 설정
 	jsonData = JSON.stringify(jsonObj);
 	
-	// 초기 3개월 조회
+	// 마이페이지 메인화면일때 초기 1개월 조회
 	if (mypageMainYn == 'Y') {
 		jsonObj.pageSize = 1;
 		jsonObj.pageUnit = 1;
 		fnSetSearchPeriod(1);
-	} else {
+	}
+	// 마이페이지 주문목록화면일때
+	else {
+		// 전체페이지 구하기
+		totalPage 	= parseInt(totalCnt / 10);
+		remainList 	= totalCnt % 10; 
+		
+		// 나머지가 있으면 전체 페이지 + 1
+		if (remainList > 0) {
+			totalPage = totalPage + 1;
+		}
+		
 		fnSetSearchPeriod(3);
 		
 		var win = $(window);
@@ -431,6 +435,35 @@ $(function() { gagaInfiniteScroll.getHistory(); });
 		});
 	});
 	/* //210409_추가 : alert 모음 */
+	
+	// 등급쿠폰 다운 클릭 이벤트
+	var fnDownloadCoupon = function() {
+		let url = '/mypage/coupon/download/all';
+
+		let data = {};
+		data.custNo = customerInfo.custNo;
+
+		let jsonData = JSON.stringify(data);
+
+		gagajf.ajaxJsonSubmit(url, jsonData, function() {
+			fnReloadCouponCount();
+		});
+	}
+	
+	// 보유쿠폰 수량 업데이트 처리
+	var fnReloadCouponCount = function() {
+		let url = '/mypage/coupon/count';
+		
+		let data = {};
+		data.custNo = customerInfo.custNo;
+		
+		let jsonData = JSON.stringify(data);
+		
+		gagajf.ajaxJsonSubmit(url, jsonData, function(result) {
+			$('#couponCnt').text(result.couponCnt);
+			$('#expiredSoonCouponCnt').text(result.expiredSoonCouponCnt);
+		});
+	}
 </script>
 <!-- //210408_스크립트 추가 -->
 </th:block>