@@ -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>
|
||||
|
||||
<!--로딩영역-->
|
||||
|
||||
Reference in New Issue
Block a user