Procházet zdrojové kódy

1.딥링크 공유하기 추가

LMC před 4 roky
rodič
revize
84c4809aaf

+ 38 - 0
src/main/webapp/WEB-INF/views/mob/common/fragments/FooterMob.html

@@ -234,8 +234,21 @@
 			<span id="coachmask03"><em></em></span>
 		</div>
 	</aside>
+
+	<aside class="adApp" id="adHide" style="display:none;">
+		<div class="adWrap">
+			<div class="cont">
+				<button data-role="appLink" tabindex="0"><img src="/images/mo/goApp.png" onclick="uifn_goApp();"></button>
+				<button class="viewWeb" data-role="adClose" tabindex="0"><a href="javascript:uifn_cls();">웹으로 볼게요</a></button>
+			</div>
+		</div>
+	</aside>
 <script th:inline="javascript">
 /*<![CDATA[*/
+	function uifn_cls(){
+		$("#adHide").hide();
+	}
+
 	function menu() {
 		$("#menuFull").addClass('on');
 		return false;
@@ -559,8 +572,33 @@
 			}
 		});
 
+		// 공유하기 기능 추가
+		shareUrl = gagajf.getCookie('st24ck_share_url');
+		gagajf.setCookie('st24ck_share_url', '', 1);
+		if (!gagajf.isNull(shareUrl) && _frontGb === 'M') {
+			$("#adHide").show();
+		}
 	});
 
+	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 agreeMarketingPush = function () {
 		$('#accHide').show();

+ 0 - 25
src/main/webapp/WEB-INF/views/mob/common/fragments/ScriptsMob.html

@@ -21,30 +21,5 @@
 <script type="text/javascript" th:src="@{'/ux/plugins/gaga/gaga.validation.js'}" src="/ux/plugins/gaga/gaga.validation.js"></script>
 <script type="text/javascript" th:src="@{'/ux/plugins/vg-controller-client.latest.min.js'}" src="/ux/plugins/vg-controller-client.latest.min.js"></script>
 <script type="text/javascript" th:src="@{'/biz/comLib.js'}" src="/biz/comLib.js"></script>
-<script type="text/javascript">
-// 공유하기 기능 추가
-// var shareUrl = gagajf.getCookie('st24ck_share_url');
-// gagajf.setCookie('st24ck_share_url', '', 1);
-
-// if (!gagajf.isNull(shareUrl) && _frontGb === 'M') {
-
-// 	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;
-// 	}
-// }
-</script>
-
 </th:block>
 </html>