Selaa lähdekoodia

모바일 PUSH 적용

juney 2 vuotta sitten
vanhempi
commit
83506c2e17

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

@@ -29,11 +29,11 @@ function clickNotify(nticeNo) {
29
  
29
  
30
 var mobMainObj = {
30
 var mobMainObj = {
31
 	init: function () {
31
 	init: function () {
32
-		var PushURL = urlParams.PushURL;
32
+		var PushURL = CommonObj.getParameter('PushURL');
33
 		if(PushURL) {
33
 		if(PushURL) {
34
 			const id = PushURL.substring(PushURL.lastIndexOf('/') + 1, PushURL.length).replace(".html", "");
34
 			const id = PushURL.substring(PushURL.lastIndexOf('/') + 1, PushURL.length).replace(".html", "");
35
 			const href = MOBILE_CONTEXTPATH + PushURL;
35
 			const href = MOBILE_CONTEXTPATH + PushURL;
36
-			_this.loadPage(id, href);
36
+			fn_make_slide_menu.loadPage(id, href);
37
 		} else {
37
 		} else {
38
 			this.ui();
38
 			this.ui();
39
 			this.action();
39
 			this.action();

+ 0 - 7
src/main/webapp/mobile/js/config.js

@@ -915,13 +915,6 @@ let CommonObj = {
915
 	isApp: (/oqpo_android|oqpo_ios/).test(navigator.userAgent.toLowerCase())
915
 	isApp: (/oqpo_android|oqpo_ios/).test(navigator.userAgent.toLowerCase())
916
 };
916
 };
917
 
917
 
918
-var urlParams = location.search.split(/[?&]/).slice(1).map(function(paramPair) {
919
-	return paramPair.split(/=(.+)?/).slice(0, 2);
920
-}).reduce(function(obj, pairArray) {
921
-	obj[pairArray[0]] = pairArray[1];
922
-	return obj;
923
-}, {});
924
-
925
 function itp_fn_date_format(date, type) {
918
 function itp_fn_date_format(date, type) {
926
 	let month = date.getMonth() + 1;
919
 	let month = date.getMonth() + 1;
927
 	let day = date.getDate();
920
 	let day = date.getDate();