쇼핑몰 > 연령확인 팝업

(cherry picked from commit f3918ed7b1)
This commit is contained in:
이대환
2026-04-30 16:16:58 +09:00
parent 903374cbee
commit 3fbd19a1e7
4 changed files with 125 additions and 2 deletions

View File

@@ -372,9 +372,8 @@
fn_reflesh_cart_cnt()
/*비밀번호 변경 알림 여부 확인*/
$(document).ready(function () {
/*비밀번호 변경 알림 여부 확인*/
const url = '<c:url value="/sopmal/mbr/selectPasswordChng"/>';
const originalUrl = window.location.href;
let passwordAt = '<%=(String)session.getAttribute("passwordChngDeAt")%>'
@@ -383,6 +382,15 @@
location.href = url + '?originalUrl=' + encodeURIComponent(originalUrl);
}
/*연령확인 여부 확인*/
let ageChked = getCookieValue("ageChk");
if(!ageChked) {
fn_open_modal(
'#ageChkPopupDiv',
'#ageChkPopup',
'/sopmal/main/selectAgeChkPopup'
);
}
})
@@ -398,6 +406,7 @@
}%>
<input type="hidden" id="adscriptMbrId" value="${adscriptMbrId}"/>
<div id="mbrMarktClauseAgreeDiv"></div>
<div id="ageChkPopupDiv"></div>
<script>
@@ -466,6 +475,14 @@
}
//쿠키 값 가져오기
const getCookieValue = function(name) {
let matches = document.cookie.match(
new RegExp('(?:^|; )' + name + '=([^;]*)')
);
return matches ? matches[1] : null;
}
</script>
<!--로딩영역-->