Browse Source

이사님. 앱일때 링크 선언 방식 수정

jmh 4 years ago
parent
commit
1de97510e9

+ 4 - 2
src/main/webapp/WEB-INF/views/mob/common/fragments/FooterMob.html

@@ -45,11 +45,13 @@
 				</div>
 
 				<ul class="link">
-					<li><a href="http://www.ftc.go.kr/bizCommPop.do?wrkr_no=2298137000" target="_blank" title="새창 열림">사업자정보확인</a></li>
+					<li th:if="${(isApp == null || isApp == 'false' || isApp == '')}"><a href="http://www.ftc.go.kr/bizCommPop.do?wrkr_no=2298137000" target="_blank" title="새창 열림">사업자정보확인</a></li>
+					<li th:if="${isApp != null && isApp == 'true'}"><a href="public://?link=http://www.ftc.go.kr/bizCommPop.do?wrkr_no=2298137000" target="_blank" title="새창 열림">사업자정보확인</a></li>
 					<li><a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_VIEW_NORMAL);">PC버전</a></li>
 					<li th:if="${(isApp == null || isApp == 'false' || isApp == '') && osType == 'A'}"><a href="https://play.google.com/store/apps/details?id=com.istyle24.commerce" target="_blank" class="wivisapp">APP 다운로드</a></li>
 					<li th:if="${(isApp == null || isApp == 'false' || isApp == '') && osType == 'I'}"><a href="https://apps.apple.com/kr/app/id627774402?mt=8" target="_blank" class="wivisapp">APP 다운로드</a></li>
-					<li><a href="http://zine.istyle24.com" target="_blank" title="새창 열림" class="t_req">SN&#64;PP</a></li>
+					<li th:if="${(isApp == null || isApp == 'false' || isApp == '')}"><a href="http://zine.istyle24.com" target="_blank" title="새창 열림" class="t_req">SN&#64;PP</a></li>
+					<li th:if="${isApp != null && isApp == 'true'}"><a href="public://?link=http://zine.istyle24.com" target="_blank" title="새창 열림" class="t_req">SN&#64;PP</a></li>
 				</ul>
 				<ul class="copy">
 					<li>COPYRIGHTⓒ2021 STYLE24 ALL RIGHTS RESERVED.</li>

+ 2 - 1
src/main/webapp/WEB-INF/views/mob/display/BrandMainFormMob.html

@@ -70,7 +70,8 @@
 								<th:block th:if="${ContentsData.strVar1!=null && ContentsData.strVar1!='' && ContentsData.strVar1!='#' }">
 									<div class="btn_group_flex">
 										<div>
-											<a th:href="${ContentsData.strVar1}" th:target="${ContentsData.contentsType=='SELF'?'_self':'_blank'}" class="btn btn_default">브랜드 사이트<span></span></a>
+											<a th:if="${isApp != null && isApp == 'true'}" th:href="${'public://?link='+ContentsData.strVar1}" th:target="${ContentsData.contentsType=='SELF'?'_self':'_blank'}" class="btn btn_default">브랜드 사이트<span></span></a>
+											<a th:if="${(isApp == null || isApp == 'false' || isApp == '')}" th:href="${ContentsData.strVar1}" th:target="${ContentsData.contentsType=='SELF'?'_self':'_blank'}" class="btn btn_default">브랜드 사이트<span></span></a>
 										</div>
 									</div>
 								</th:block>