Selaa lähdekoodia

모바일 로그인 수정

juney 2 vuotta sitten
vanhempi
commit
20f77d69a8

+ 1 - 0
src/main/webapp/mobile/js/app/login.js

@@ -127,5 +127,6 @@ function appCallFnLoginInfo(strInfo) {
127 127
 	$('#deviId').val(appInfo.deviId);
128 128
 	$('#deviOsVer').val(appInfo.deviOsVer);
129 129
 	$('#deviTpCd').val(appInfo.deviTpCd);
130
+	CommonObj.appInfo.set(strInfo);
130 131
 	itp_fn_login_proc();
131 132
 }

+ 5 - 2
src/main/webapp/mobile/js/app/main.js

@@ -10,12 +10,15 @@ require(['config'], function() {
10 10
 	});
11 11
 });
12 12
 
13
+let MOBILE_APP_VERSION = '';
14
+
13 15
 var mobMainObj = {
14 16
 	init: function () {
15 17
 	},
16 18
 
17 19
 };
18 20
 
19
-function jsAppBackPressed() {
20
-	appCallFunction.backPressed();
21
+function appCallFnVersion(version) {
22
+	MOBILE_APP_VERSION = version;
23
+	console.log(MOBILE_APP_VERSION);
21 24
 }

+ 2 - 2
src/main/webapp/mobile/js/app/popup/biz/ITP_BIZPOP_PO_PAYMENT.js

@@ -308,8 +308,8 @@ function f_mobile_cert() {
308 308
 	// 	$('#ITP_BIZPOP_PO_PAYMENT').modal('hide'); // 팝업닫기
309 309
 	// }, 200);
310 310
 	var param = $('#frm_pay').serializeObject();
311
-	$(location).attr('href', MOBILE_CONTEXTPATH + '/app/payment.html?' + $.param(param));
312
-	// itp_fn_call_app.payment($.param(param));
311
+	// $(location).attr('href', MOBILE_CONTEXTPATH + '/app/payment.html?' + $.param(param));
312
+	itp_fn_call_app.payment($.param(param));
313 313
 }
314 314
 
315 315
 /* 모바일 승인 요청 */

+ 1 - 1
src/main/webapp/mobile/js/app/setting/ITP_SETTING01010.js

@@ -8,7 +8,7 @@ require(['config'], function() {
8 8
 
9 9
 var mobPageObj = {
10 10
 	init: function () {
11
-		console.log('upgrade popPageObj');
11
+		console.log('upgrade mobPageObj ===> ' + CommonObj.appInfo.get('appVer'));
12 12
 	},
13 13
 
14 14
 };

+ 12 - 2
src/main/webapp/mobile/js/config.js

@@ -651,7 +651,6 @@ let itp_fn_form_event = {
651 651
 				if($(this).val().length > 13) return;
652 652
 				value = $(this).val().replace(/[^0-9]/g, "")
653 653
 					.replace(/(^[0-9]{6})([0-9]+)?([0-9]{7})$/,"######-#######")
654
-				// .replace(/(\d{6})(\d{7})/, '######-#######')
655 654
 			}
656 655
 			if ($.inArray('tel', arry) > -1) {
657 656
 				value = ($(this).val().startsWith('0')) ? $(this).val().replace(/[^0-9]/g, "")
@@ -707,7 +706,7 @@ let itp_fn_payment = {
707 706
 
708 707
 let itp_fn_call_app = {
709 708
 	barcode: function() {
710
-
709
+		location.replace('app:barcode');
711 710
 	},
712 711
 	payment: function(param) {
713 712
 		location.replace('app:payment:' + param);
@@ -834,6 +833,17 @@ let CommonObj = {
834 833
 	schWhsDvsn: function(isEmpty) {
835 834
 		return (fn_make_user_info.get('authTpCd') === '50') ? 'W02' : isEmpty ? '' : 'W01';
836 835
 	},
836
+	appInfo: {
837
+		object: function() {
838
+			return JSON.parse(sessionStorage.getItem('itp_manage_app_info'));
839
+		},
840
+		set: function(strInfo) {
841
+			sessionStorage.setItem('itp_manage_app_info', strInfo);
842
+		},
843
+		get: function(key) {
844
+			return (key === undefined || key === null) ? '' : this.appInfo.object()[key];
845
+		}
846
+	},
837 847
 	isApp: (/oqpo_android|oqpo_ios/).test(navigator.userAgent.toLowerCase())
838 848
 };
839 849