Explorar o código

앱 필수/일반 업데이트 관련 alert 메시지 노출 추가

gagamel %!s(int64=4) %!d(string=hai) anos
pai
achega
bb1e53612a

+ 19 - 41
src/main/webapp/WEB-INF/views/mob/common/fragments/FooterMob.html

@@ -564,37 +564,15 @@
 							// 안내 alert 표기
 							if (_osType == 'I') { // IOS
 								if (result.regUpdateGb == 'Y') { // 필수업데이트
-									mcxDialog.alertC('필수 업데이트가 있습니다. 업데이트 하시겠습니까?', {
-										sureBtnText: "업데이트",
-										sureBtnClick: function() {
-											document.location.href = 'update://?link=https://apps.apple.com/kr/app/id627774402?mt=8';
-										}
-									});
+									document.location.href = 'update://?link=https://apps.apple.com/kr/app/id627774402?mt=8';
 								} else {
-									mcxDialog.confirm("최신 업데이트가 있습니다. 원활한 서비스 이용을 위해 업데이트하시겠습니까?", {
-										cancelBtnText: "나중에",
-										sureBtnText: "업데이트",
-										sureBtnClick: function() {
-											document.location.href = 'update://?link=https://apps.apple.com/kr/app/id627774402?mt=8';
-										}
-									});
+									document.location.href = 'update://?link=https://apps.apple.com/kr/app/id627774402?mt=8';
 								}
 							} else { // AOS
 								if (result.regUpdateGb == 'Y') { // 필수업데이트
-									mcxDialog.alertC('필수 업데이트가 있습니다. 업데이트를 위해 스토어로 이동합니다.', {
-										sureBtnText: "업데이트",
-										sureBtnClick: function() {
-											document.location.href = 'update://?link=https://play.google.com/store/apps/details?id=com.istyle24.commerce';
-										}
-									});
+									document.location.href = 'update://?link=https://play.google.com/store/apps/details?id=com.istyle24.commerce';
 								} else {
-									mcxDialog.confirm("최신 업데이트가 있습니다. 원활한 서비스 이용을 위해 업데이트하시겠습니까?", {
-										cancelBtnText: "취소",
-										sureBtnText: "확인",
-										sureBtnClick: function() {
-											document.location.href = 'update://?link=https://play.google.com/store/apps/details?id=com.istyle24.commerce';
-										}
-									});
+									document.location.href = 'update://?link=https://play.google.com/store/apps/details?id=com.istyle24.commerce';
 								}
 							}
 						} else {
@@ -668,21 +646,21 @@
 
 	var shareUrl;
 	var uifn_goApp = function(){
-	 	var aosUrl = 'intent://style24://share?targetUrl=';
-	 	var iosUrl = 'style24://share?targetUrl=';
-	 	if (_osType === 'A') {
-	 		setTimeout(function () {
-	 			cfnGoToPage(_PAGE_MAIN);
-	 		}, 1500);
-	 		aosUrl += shareUrl + '#Intent;package=com.istyle24.commerce;scheme=style24;end';
-	 		location.href = aosUrl;
-	 	} else if (_osType === 'I') {
-	 		iosUrl += shareUrl;
-	 		setTimeout(function () {
-	 			window.open('https://apps.apple.com/kr/app/id627774402?mt=8');
-	 		}, 1500);
-	 		location.href = iosUrl;
-	 	}
+		var aosUrl = 'intent://style24://share?targetUrl=';
+		var iosUrl = 'style24://share?targetUrl=';
+		if (_osType === 'A') {
+			setTimeout(function () {
+				cfnGoToPage(_PAGE_MAIN);
+			}, 1500);
+			aosUrl += shareUrl + '#Intent;package=com.istyle24.commerce;scheme=style24;end';
+			location.href = aosUrl;
+		} else if (_osType === 'I') {
+			iosUrl += shareUrl;
+			setTimeout(function () {
+				window.open('https://apps.apple.com/kr/app/id627774402?mt=8');
+			}, 1500);
+			location.href = iosUrl;
+		}
 	}
 
 	// 앱 최초기동시 -> 접근권한 안내