Explorar o código

모바일 PUSH 적용

juney %!s(int64=2) %!d(string=hai) anos
pai
achega
83506c2e17

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

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

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

@@ -915,13 +915,6 @@ let CommonObj = {
915 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 918
 function itp_fn_date_format(date, type) {
926 919
 	let month = date.getMonth() + 1;
927 920
 	let day = date.getDate();