Просмотр исходного кода

이용약관, 개인정보취급, 개인정보 위탁 추가

jsshin 5 лет назад
Родитель
Сommit
848f2c1c26

+ 45 - 0
src/main/java/com/style24/front/biz/web/TsfCustomerController.java

@@ -839,4 +839,49 @@ public class TsfCustomerController extends TsfBaseController {
 
 		return resultMap;
 	}
+
+	/**
+	 * 이용약관 화면
+	 *
+	 * @return ModelAndView
+	 * @author jsshin
+	 * @since 2021. 04. 01
+	 */
+	@PostMapping("/use/terms/layer")
+	public ModelAndView getUseTermsLayer() {
+		ModelAndView mav = new ModelAndView();
+		mav.addObject("clause", clauseService.getClause(TscConstants.Site.STYLE24.value(), "G057_10"));
+		mav.setViewName(super.getDeviceViewName("customer/UseTermsLayerForm"));
+		return mav;
+	}
+
+	/**
+	 * 개인정보취급방침 화면
+	 *
+	 * @return ModelAndView
+	 * @author jsshin
+	 * @since 2021. 04. 01
+	 */
+	@PostMapping("/privacy/policy/layer")
+	public ModelAndView getPrivacyPolicyLayer() {
+		ModelAndView mav = new ModelAndView();
+		mav.addObject("clause", clauseService.getClause(TscConstants.Site.STYLE24.value(), "G057_11"));
+		mav.setViewName(super.getDeviceViewName("customer/PrivacyPolicyLayerForm"));
+		return mav;
+	}
+
+	/**
+	 * 개인정보위탁 화면
+	 *
+	 * @return ModelAndView
+	 * @author jsshin
+	 * @since 2021. 04. 01
+	 */
+	@PostMapping("/privacy/trust/layer")
+	public ModelAndView getMarketingLayerForm() {
+		ModelAndView mav = new ModelAndView();
+		mav.setViewName(super.getDeviceViewName("customer/PrivacyTrustLayerForm"));
+		return mav;
+	}
+
 }

+ 3 - 2
src/main/webapp/WEB-INF/views/web/customer/JoinFormWeb.html

@@ -163,8 +163,9 @@
 					</div>
 					<div class="desc_wrap t_c mt20">
 						<p>
-							본인은&nbsp;만 14세 이상이며&nbsp;<a href="javascript:void(0)" target="_blank">STYLE24이용약관<i class="ico ico_blank ml5"></i></a>,&nbsp;<a href="javascript:void(0)" target="_blank">개인정보 수집 및 이용<i class="ico ico_blank ml5"></i></a>,<br>
-							<a href="javascript:void(0)" target="_blank">개인정보 취급 위탁<i class="ico ico_blank ml5"></i></a> 내용을 확인 하였으며,동의합니다.
+							본인은&nbsp;만 14세 이상이며&nbsp;<a href="javascript:void(0)" onclick="cfnUseTermsLayer();">STYLE24이용약관<i class="ico ico_blank ml5"></i></a>
+							,&nbsp;<a href="javascript:void(0)" onclick="cfnPrivacyPolicyLayer();">개인정보 수집 및 이용<i class="ico ico_blank ml5"></i></a>,<br>
+							<a href="javascript:void(0)" onclick="cfnPrivacyTrustLayer();">개인정보 취급 위탁<i class="ico ico_blank ml5"></i></a> 내용을 확인 하였으며,동의합니다.
 						</p>
 					</div>
 				</form>

+ 41 - 0
src/main/webapp/WEB-INF/views/web/customer/PrivacyPolicyLayerFormWeb.html

@@ -0,0 +1,41 @@
+<!DOCTYPE html>
+<html lang="ko"
+	  xmlns:th="http://www.thymeleaf.org">
+<!--
+ *******************************************************************************
+ * @source  : PrivacyPolicyLayerFormWeb.html
+ * @desc    : 개인정보 수집 및 이용
+ *============================================================================
+ * STYLE24
+ * Copyright(C) 2021 TSIT, All rights reserved.
+ *============================================================================
+ * VER  DATE         AUTHOR      DESCRIPTION
+ * ===  ===========  ==========  =============================================
+ * 1.0  2021.04.01   jsshin       최초 작성
+ *******************************************************************************
+ -->
+<div class="modal-dialog" role="document">
+	<div class="modal-content">
+		<div class="modal-header">
+			<h5 class="modal-title" id="policiesPrivacyLabel">개인정보 수집 및 이용</h5>
+		</div>
+		<div class="modal-body">
+			<div class="pop_cont">
+				<div class="text_wrap" th:utext="${#strings.replace(#strings.replace(clause,'&amplt;','<'),'&ampgt;','>')}">
+			</div>
+		</div>
+		<div class="modal-footer">
+			<button type="button" id="btnClose" class="btn btn_default"><span>닫기</span></button>
+		</div>
+	</div>
+</div>
+<script th:inline="javascript">
+	/*<![CDATA[*/
+
+	$("#btnClose").click(function() {
+		$.modal.close();
+	});
+
+	/*]]>*/
+</script>
+</html>

+ 44 - 0
src/main/webapp/WEB-INF/views/web/customer/PrivacyTrustLayerFormWeb.html

@@ -0,0 +1,44 @@
+<!DOCTYPE html>
+<html lang="ko"
+	  xmlns:th="http://www.thymeleaf.org">
+<!--
+ *******************************************************************************
+ * @source  : PrivacyTrustLayerFormWeb.html
+ * @desc    : 개인정보 취급 위탁
+ *============================================================================
+ * STYLE24
+ * Copyright(C) 2021 TSIT, All rights reserved.
+ *============================================================================
+ * VER  DATE         AUTHOR      DESCRIPTION
+ * ===  ===========  ==========  =============================================
+ * 1.0  2021.04.01   jsshin       최초 작성
+ *******************************************************************************
+ -->
+<div class="modal-dialog" role="document">
+	<div class="modal-content">
+		<div class="modal-header">
+			<h5 class="modal-title" id="trustPrivacyLabel">개인정보 취급 위탁</h5>
+		</div>
+		<div class="modal-body">
+			<div class="pop_cont">
+				<div class="text_wrap">
+					개인정보 취급 위탁내용이 들어갑니다.<br>
+
+				</div>
+			</div>
+		</div>
+		<div class="modal-footer">
+			<button type="button" id="btnClose" class="btn btn_default"><span>닫기</span></button>
+		</div>
+	</div>
+</div>
+<script th:inline="javascript">
+	/*<![CDATA[*/
+
+	$("#btnClose").click(function() {
+		$.modal.close();
+	});
+
+	/*]]>*/
+</script>
+</html>

+ 42 - 0
src/main/webapp/WEB-INF/views/web/customer/UseTermsLayerFormWeb.html

@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html lang="ko"
+	  xmlns:th="http://www.thymeleaf.org">
+<!--
+ *******************************************************************************
+ * @source  : UseTermsLayerFormWeb.html
+ * @desc    : STYLE24이용약관
+ *============================================================================
+ * STYLE24
+ * Copyright(C) 2021 TSIT, All rights reserved.
+ *============================================================================
+ * VER  DATE         AUTHOR      DESCRIPTION
+ * ===  ===========  ==========  =============================================
+ * 1.0  2021.04.01   jsshin       최초 작성
+ *******************************************************************************
+ -->
+<div class="modal-dialog" role="document">
+	<div class="modal-content">
+		<div class="modal-header">
+			<h5 class="modal-title" id="policiesTermsLabel">STYLE24 이용약관</h5>
+		</div>
+		<div class="modal-body">
+			<div class="pop_cont">
+				<div class="text_wrap" th:utext="${#strings.replace(#strings.replace(clause,'&amplt;','<'),'&ampgt;','>')}">
+				</div>
+			</div>
+		</div>
+		<div class="modal-footer">
+			<button type="button" id="btnClose" class="btn btn_default"><span>닫기</span></button>
+		</div>
+	</div>
+</div>
+<script th:inline="javascript">
+	/*<![CDATA[*/
+
+	$("#btnClose").click(function() {
+		$.modal.close();
+	});
+
+	/*]]>*/
+</script>
+</html>

+ 54 - 1
src/main/webapp/ux/style24_link.js

@@ -28,7 +28,9 @@ const _PAGE_CUSTOMER_CERTIFICATION = _frontUrl + "/customer/certification/form"
 const _PAGE_USE_TERMS = _frontUrl + "/customer/use/terms/form";										// Footer > 이용약관
 const _PAGE_PRIVACY_POLICY = _frontUrl + "/customer/privacy/policy/form";							// Footer > 개인정보취급방침
 const _PAGE_CUSTOMER_CONSENT_USERINFO = _frontUrl + "/customer/consent/useinfo/form";				// 정보 이용동의 : Yes24 로그인
-
+const _PAGE_USE_TERMS_LAYER = _frontUrl + "/customer/use/terms/layer";								// 회원가입 > 이용약관
+const _PAGE_PRIVACY_POLICY_LAYER = _frontUrl + "/customer/privacy/policy/layer";					// 회원가입 > 개인정보취급방침
+const _PAGE_PRIVACY_TRUST_LAYER = _frontUrl + "/customer/privacy/trust/layer";						// 회원가입 > 개인정보취급위탁
 
 //== 상품상세 ==/
 const _PAGE_GOODS_DETAIL = _frontUrl + "/goods/detail/form?goodsCd=";								// 상품 상세
@@ -729,6 +731,57 @@ function cfnPasswordModify() {
 	cfOpenLayer(_PAGE_PASSWORD_MODIFY, 'pswordModifyPop');
 }
 
+/**
+ * @type   : function
+ * @access : public
+ * @desc   : 이용약관 레이어
+ * <pre>
+ *		cfnUseTermsLayer();
+ * </pre>
+ */
+function cfnUseTermsLayer() {
+	let str = '<div class="modal fade policiesTerms_pop" id="policiesTermsPop" tabindex="-1" role="dialog" aria-labelledby="policiesTermsLabel" aria-hidden="true"></div>';
+	if ($('#policiesTermsPop').length == 0) {
+		$('body').append(str);
+	}
+	cfOpenLayer(_PAGE_USE_TERMS_LAYER, 'policiesTermsPop');
+}
+
+/**
+ * @type   : function
+ * @access : public
+ * @desc   : 개인정보취급방침 레이어
+ * <pre>
+ *		cfnPrivacyPolicyLayer();
+ * </pre>
+ */
+function cfnPrivacyPolicyLayer() {
+	let str = '<div class="modal fade policiesPrivacy_pop" id="policiesPrivacyPop" tabindex="-1" role="dialog" aria-labelledby="policiesPrivacyLabel" aria-hidden="true"></div>';
+	if ($('#policiesPrivacyPop').length == 0) {
+		$('body').append(str);
+	}
+	cfOpenLayer(_PAGE_PRIVACY_POLICY_LAYER, 'policiesPrivacyPop');
+}
+
+/**
+ * @type   : function
+ * @access : public
+ * @desc   : 개인정보취급위탁 레이어
+ * <pre>
+ *		cfnPrivacyConsignmentLayer();
+ * </pre>
+ */
+function cfnPrivacyTrustLayer() {
+	let str = '<div class="modal fade trustPrivacy_pop" id="trustPrivacyPop" tabindex="-1" role="dialog" aria-labelledby="trustPrivacyLabel" aria-hidden="true"></div>';
+	if ($('#trustPrivacy_pop').length == 0) {
+		$('body').append(str);
+	}
+	cfOpenLayer(_PAGE_PRIVACY_TRUST_LAYER, 'trustPrivacyPop');
+}
+
+
+
+
 /**
  * @type   : function
  * @access : public