|
@@ -48,7 +48,7 @@
|
|
|
|
|
|
|
|
<div class="inner">
|
|
<div class="inner">
|
|
|
<div class="order_sort">
|
|
<div class="order_sort">
|
|
|
- <a href="javascript:void(0);" class="od_date_btn">최근 3개월</a>
|
|
|
|
|
|
|
+ <a href="javascript:void(0);" class="od_date_btn">최근 1주일</a>
|
|
|
<a href="javascript:void(0);" class="od_status_btn">전체상태</a>
|
|
<a href="javascript:void(0);" class="od_status_btn">전체상태</a>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -75,8 +75,9 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="popup_con">
|
|
<div class="popup_con">
|
|
|
<div class="button_list clear">
|
|
<div class="button_list clear">
|
|
|
|
|
+ <button type="button" class="on" onclick="fnSetSearchPeriod(-1);" period="3"><span>최근 1주일</span></button>
|
|
|
<button type="button" onclick="fnSetSearchPeriod(1);" period="1"><span>최근 1개월</span></button>
|
|
<button type="button" onclick="fnSetSearchPeriod(1);" period="1"><span>최근 1개월</span></button>
|
|
|
- <button type="button" class="on" onclick="fnSetSearchPeriod(3);" period="3"><span>최근 3개월</span></button>
|
|
|
|
|
|
|
+ <button type="button" onclick="fnSetSearchPeriod(3);" period="3"><span>최근 3개월</span></button>
|
|
|
<button type="button" onclick="fnSetSearchPeriod(6);" period="6"><span>최근 6개월</span></button>
|
|
<button type="button" onclick="fnSetSearchPeriod(6);" period="6"><span>최근 6개월</span></button>
|
|
|
<button type="button" onclick="fnSetSearchPeriod(9);" period="9"><span>최근 9개월</span></button>
|
|
<button type="button" onclick="fnSetSearchPeriod(9);" period="9"><span>최근 9개월</span></button>
|
|
|
<button type="button" onclick="fnSetSearchPeriod(12);" period="12"><span>최근 12개월</span></button>
|
|
<button type="button" onclick="fnSetSearchPeriod(12);" period="12"><span>최근 12개월</span></button>
|
|
@@ -114,7 +115,7 @@ let ordNo = [[${ordNo}]];
|
|
|
let ordNm = [[${ordNm}]];
|
|
let ordNm = [[${ordNm}]];
|
|
|
let ordPhnno = [[${ordPhnno}]];
|
|
let ordPhnno = [[${ordPhnno}]];
|
|
|
var totalCnt = [[${totalCnt}]];
|
|
var totalCnt = [[${totalCnt}]];
|
|
|
-var isLogin = [[${isLogin}]];
|
|
|
|
|
|
|
+var isLogin = [[${isLogin}]];
|
|
|
var totalPage = 0;
|
|
var totalPage = 0;
|
|
|
var remainList = 0;
|
|
var remainList = 0;
|
|
|
var jsonObj = {};
|
|
var jsonObj = {};
|
|
@@ -136,6 +137,9 @@ $(document).ready(function() {
|
|
|
, "ordNm" : ordNm
|
|
, "ordNm" : ordNm
|
|
|
, "ordPhnno" : ordPhnno
|
|
, "ordPhnno" : ordPhnno
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ // 주문 검색 기간 설정
|
|
|
|
|
+ fnSetInitPeriod();
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
//사파리 - event.persisted || 크롬 - window.performance.navigation.type 이 1이면 새로고침, 2면 페이지 이동을 통한 캐쉬페이징
|
|
//사파리 - event.persisted || 크롬 - window.performance.navigation.type 이 1이면 새로고침, 2면 페이지 이동을 통한 캐쉬페이징
|
|
@@ -219,22 +223,26 @@ var fnGetInfiniteScrollDataList = function() {
|
|
|
|
|
|
|
|
//검색기간 버튼 클릭 이벤트 처리
|
|
//검색기간 버튼 클릭 이벤트 처리
|
|
|
var fnSetSearchPeriod = function(period) {
|
|
var fnSetSearchPeriod = function(period) {
|
|
|
- let date = new Date();
|
|
|
|
|
- let edDate = getFormatDate(date);
|
|
|
|
|
-
|
|
|
|
|
- let day = date.getDate();
|
|
|
|
|
- let lastDay = (new Date(date.getFullYear(), (date.getMonth() + 1) - period, 0)).getDate();
|
|
|
|
|
-
|
|
|
|
|
- if (day - lastDay > 0) {
|
|
|
|
|
- date.setDate(date.getDate() - (day - lastDay));
|
|
|
|
|
|
|
+ if (period == -1) {
|
|
|
|
|
+ fnSetInitPeriod();
|
|
|
|
|
+ } else {
|
|
|
|
|
+ let date = new Date();
|
|
|
|
|
+ let edDate = getFormatDate(date);
|
|
|
|
|
+
|
|
|
|
|
+ let day = date.getDate();
|
|
|
|
|
+ let lastDay = (new Date(date.getFullYear(), (date.getMonth() + 1) - period, 0)).getDate();
|
|
|
|
|
+
|
|
|
|
|
+ if (day - lastDay > 0) {
|
|
|
|
|
+ date.setDate(date.getDate() - (day - lastDay));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ date.setMonth(date.getMonth() - period);
|
|
|
|
|
+ let stDate = getFormatDate(date);
|
|
|
|
|
+
|
|
|
|
|
+ $('#searchForm input[name=edDate]').val(edDate);
|
|
|
|
|
+ $('#searchForm input[name=stDate]').val(stDate);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- date.setMonth(date.getMonth() - period);
|
|
|
|
|
- let stDate = getFormatDate(date);
|
|
|
|
|
|
|
|
|
|
- $('#searchForm input[name=edDate]').val(edDate);
|
|
|
|
|
- $('#searchForm input[name=stDate]').val(stDate);
|
|
|
|
|
-
|
|
|
|
|
// 인피니티스크롤 초기화
|
|
// 인피니티스크롤 초기화
|
|
|
fnMypageOrderListInfiniteScrollInit();
|
|
fnMypageOrderListInfiniteScrollInit();
|
|
|
|
|
|