Jelajahi Sumber

Merge branch 'card007' into style

card007 4 tahun lalu
induk
melakukan
8824e30189
1 mengubah file dengan 15 tambahan dan 2 penghapusan
  1. 15 2
      src/main/webapp/biz/mypage.js

+ 15 - 2
src/main/webapp/biz/mypage.js

@@ -357,8 +357,16 @@ var fnChangeDeliveryMemo = function(param) {
 
 // 신용카드 전표 및 현금영수증 버튼 클릭 이벤트
 var fnReceipt = function(param) {
-	let receiptWin = kcpReceiptUrl;
+	let receiptWin = '';
 	let option = '';
+
+	// APP일때 추가
+	if (_isApp != null && _isApp == 'true') {
+		receiptWin = 'public://?link=';
+	}
+
+	receiptWin += kcpReceiptUrl;
+
 	if (param == 'card') {
 		let order_no = ordNo;
 		if (!gagajf.isNull(paymentInfo.ordChgSq)) {
@@ -408,7 +416,12 @@ var fnReceipt = function(param) {
 	}
 
 	// 팝업 생성
-	window.open(receiptWin, "", option);
+	// APP일때 추가
+	if (_isApp != null && _isApp == 'true') {
+		location.href = receiptWin;
+	} else {
+		window.open(receiptWin, "", option);
+	}
 }
 
 // 문자열 길이를 체크