FooterMob.html 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633
  1. <!DOCTYPE html>
  2. <html lang="ko"
  3. xmlns:th="http://www.thymeleaf.org">
  4. <th:block th:fragment="footer">
  5. <nav id="tabbar" class="tabbar fixed">
  6. <!-- <nav id="tabbar" class="tabbar"> -->
  7. <div class="tabbar-inner">
  8. <a href="javascript:void(0);" onclick="menu();" class="btn-menu" data-popup-trigger="" data-target="#menu">Menu</a>
  9. <a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_MYPAGE);" class="btn-my">Mypage</a>
  10. <a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_MAIN);" class="btn-home">Home</a>
  11. <a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_WISHLIST);" class="btn-wish">Wish</a>
  12. <a href="javascript:void(0);" onclick="hstr()" class="btn-history">History</a>
  13. </div>
  14. <!--
  15. <span class="txt-balloon" id="tutorial_mycloset" style=""> 툴팁예제</span>
  16. -->
  17. </nav>
  18. <footer>
  19. <button class="btn_top" title="페이지 맨위로 이동">
  20. <span>TOP</span>
  21. </button>
  22. <section class="f1">
  23. <div class="inner">
  24. <ul class="link wider">
  25. <li><a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_FAQ);">고객센터</a></li>
  26. <li><a href="javascript:void(0);" onclick="cfnUseTermsLayer();">이용약관</a></li>
  27. <li><a href="javascript:void(0);" onclick="cfnPrivacyPolicyLayer();">개인정보취급방침</a></li>
  28. </ul>
  29. <div class="collapse">
  30. <div class="btnWrap">
  31. <button class="btn_infos">아이스타일이십사 주식회사</button>
  32. </div>
  33. <ul class="infos info">
  34. <li class="fn">대표이사 : 윤종선</li>
  35. <li class="fn">주소 : 서울시 영등포구 은행로 11, 8층(여의도동, 일신빌딩)</li>
  36. <li class="fn">사업자등록번호 : 116-81-32499 </li>
  37. <!-- <li class="fn">개인정보관리책임자 : 이정득 </li>-->
  38. <li class="fn">통신판매업신고번호 : 제 2020-서울영등포-1432</li>
  39. <li class="fn">개인정보보호책임자 : 김명인</li>
  40. <li class="fn">호스팅 서비스 : 아이스타일이십사㈜</li>
  41. </ul>
  42. </div>
  43. <ul class="link">
  44. <li><a href="http://www.ftc.go.kr/bizCommPop.do?wrkr_no=2298137000" target="_blank" title="새창 열림">사업자정보확인</a></li>
  45. <li><a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_VIEW_NORMAL);">PC버전</a></li>
  46. <li><a href="#none">APP 다운로드</a></li>
  47. <li><a href="http://zine.istyle24.com" target="_blank" title="새창 열림" class="t_req">SN&#64;PP</a></li>
  48. </ul>
  49. <ul class="copy">
  50. <li>COPYRIGHTⓒ2021 STYLE24 ALL RIGHTS RESERVED.</li>
  51. </ul>
  52. <ul class="sns">
  53. <li><a href="https://instagram.com/istyle24.official?igshid=o3nzm9tydg9n" target="_blank" title="새창 열림" class="insta">Instagram</a></li>
  54. <li><a href="https://www.facebook.com/istyle24" target="_blank" title="새창 열림" class="facebook">facebook</a></li>
  55. </ul>
  56. </div>
  57. </section>
  58. </footer>
  59. <div id="menuFull">
  60. <div class="fullHead">
  61. <div class="goHome"><a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_MAIN);"><img src="/images/mo/logo_STYLE24_full.png" alt=""></a></div>
  62. <a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_APP_SETTING);" class="appSett" th:if="${isApp == 'true'}">AppSetting</a>
  63. <a href="javascript:menu_cls();" class="menu_cls">close</a>
  64. </div>
  65. <div class="fullBody">
  66. <div class="inner">
  67. <ul class="fullCate" id="ulQuickMenuCate">
  68. </ul>
  69. </div>
  70. <div class="inner">
  71. <ul class="flow" id="ulQuickContents">
  72. </ul>
  73. </div>
  74. <div class="inner">
  75. <div class="btn_group btn_group_flex">
  76. <div th:if="${sessionInfo == null}"><button type="button" class="btn" onclick="cfnGoToPage(_PAGE_LOGIN);"><span>로그인</span></button></div>
  77. <div th:if="${sessionInfo != null}"><button type="button" class="btn" onclick="cfnGoToPage(_PAGE_LOGOUT);"><span>로그아웃</span></button></div>
  78. <div><button type="button" class="btn" onclick="cfnGoToPage(_PAGE_FAQ);"><span>고객센터</span></button></div>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. <!-- 배송지관리_팝업 -->
  84. <div class="modal pop_full adrsChange_Pop" id="adrsChangePop" tabindex="-1" role="dialog" aria-labelledby="adrsChangeLabel" aria-hidden="true">
  85. <div class="modal-dialog" role="document">
  86. <div class="modal-content">
  87. </div>
  88. </div>
  89. </div>
  90. <!-- //배송지관리_팝업 -->
  91. <!-- 배송지추가_팝업 -->
  92. <div class="modal pop_full adrsAdd_pop" id="adrsAddPop" tabindex="-1" role="dialog" aria-labelledby="adrsAddLabel" aria-hidden="true">
  93. <div class="modal-dialog" role="document">
  94. <div class="modal-content">
  95. </div>
  96. </div>
  97. <a href="#close-modal" rel="modal:close" id="refundPop_close" class="close-modal">Close</a>
  98. </div>
  99. <!-- //배송지추가_팝업 -->
  100. <!-- 배송지수정_팝업 -->
  101. <div class="modal pop_full adrsModify_pop" id="adrsModifyPop" tabindex="-1" role="dialog" aria-labelledby="adrsModifyLabel" aria-hidden="true">
  102. <div class="modal-dialog" role="document">
  103. <div class="modal-content">
  104. </div>
  105. </div>
  106. <a href="#close-modal" rel="modal:close" id="adrsAddPop_close" class="close-modal">Close</a>
  107. </div>
  108. <!-- //배송지수정_팝업 -->
  109. <!-- daum 우편번호_팝업 -->
  110. <!-- 2021.04.02 다음우편번호 공통화 작업 -->
  111. <!-- 다음우편번호 팝업 -->
  112. <div class="modal pop_full couponModify_pop" id="daumZipcodePop" tabindex="-1" role="dialog" aria-labelledby="couponModifyLabel" aria-hidden="true" style="z-index:3000;">
  113. <div class="modal-dialog" role="document">
  114. <div class="modal-content">
  115. <div id="zipcode_layer"></div>
  116. </div>
  117. </div>
  118. </div>
  119. <!-- 2021.04.15 스크립트오류때문에 임시 소스 -->
  120. <div class="btPopAuto">
  121. <div class="btPopAuto_head"></div>
  122. <div class="btPopAuto_body"></div>
  123. </div>
  124. <!--앱 마케팅 수신동의-->
  125. <aside class="etcApp" id="alramHide" style="display: none;">
  126. <!-- 마케팅 알람 수신 동의 -->
  127. <div class="alramWrap">
  128. <div class="inner">
  129. <div class="titWrap">
  130. <h2>마케팅 PUSH알림 수신동의</h2>
  131. </div>
  132. </div>
  133. <div class="inner">
  134. <div>
  135. <img src="/images/mo/page_consentAlarm.jpg" alt="스타일 24에서 진행하는 다양한 혜택 알림을 받아보시겠습니까? 마케팅PUSH알림 수신에 동의하시면 이벤트, 쿠폰, 할인 안내 등 다양한 소식을 받으실 수 있습니다.">
  136. </div>
  137. <button class="alramClose" data-role="alramClose" tabindex="0"><a href="javascript:void(0);" id="btnMkPushClose">다음에 받을게요</a></button>
  138. </div>
  139. <div class="inner">
  140. <div class="btn_group btn_group_flex">
  141. <div><button type="button" id="btnMkPushAgree" class="btn btn_primary"><span>네, 받아볼게요</span></button></div>
  142. </div>
  143. </div>
  144. </div>
  145. </aside>
  146. <!-- 210623_ 추가 : 최근본상품 -->
  147. <div id="hstrFull">
  148. <div class="fullHead">
  149. <h1 id="htopTitle" >최근 본 상품</h1>
  150. <a href="javascript:hstr_cls();" class="hstr_cls">close</a>
  151. </div>
  152. <div class="fullBody">
  153. <div class="inner">
  154. <div class="list_content"> <!-- 데이터 없을시 클래스 nodata 추가 -->
  155. <div class="count_wrap">
  156. <div>
  157. <p><span id="quickMenuTodayCount">0</span>개의 상품</p>
  158. </div>
  159. </div>
  160. <div class="itemsGrp" id="quickMenuTodayGoods"> <!-- itemsGrp rank hot deal -->
  161. </div>
  162. </div>
  163. </div>
  164. </div>
  165. </div>
  166. <!-- // 210623_ 추가 : 최근본상품 -->
  167. <script th:inline="javascript">
  168. /*<![CDATA[*/
  169. function menu() {
  170. $("#menuFull").addClass('on');
  171. return false;
  172. }
  173. function menu_cls() {
  174. $("#menuFull").removeClass('on');
  175. return false;
  176. }
  177. function hstr() { // 210623_ 추가 : 최근본상품 열고 닫기
  178. $("#hstrFull").addClass('on');
  179. return false;
  180. }
  181. function hstr_cls() {
  182. $("#hstrFull").removeClass('on');
  183. return false;
  184. }
  185. // 210521_ 수정 : 현재 선택된 on만 오픈.
  186. $(document).on('click','.hasCate a',function(e){
  187. $(this).toggleClass('on');
  188. $(this).next('.depthCate').slideToggle(300);
  189. $(this).parents('li').siblings('li').find('a').removeClass('on');
  190. $(this).parents('li').siblings('li').find('.depthCate').slideUp(300);
  191. return false;
  192. });
  193. // 퀵메뉴카테고리
  194. let fnGetQuickMenuCategory = function(cate1) {
  195. let tag = '';
  196. if (cate1 != null) {
  197. tag += '<li class="hasCate">\n';
  198. tag += ' <a href="javascript:;"><span>' + cate1.cate1Nm + '</span></a>\n';
  199. if (cate1.leafYn == 'N' && cate1.cate2List.length > 0) {
  200. tag += ' <ul class="depthCate">\n';
  201. tag += ' <li><a href="javascript:void(0);" onclick="cfnGoToCategoryMain(\'' + cate1.cateGb + '\',' + cate1.cate1No + ');"><span>메인</span></a>\n';
  202. tag += ' <li><a href="javascript:void(0);" onclick="cfnGoToGoodsList(0,\'' + cate1.cateGb + '\',' + cate1.cate1No + ');"><span>전체</span></a>\n';
  203. $.each(cate1.cate2List, function(idx2, cate2) {
  204. tag += ' <li><a href="javascript:void(0);" onclick="cfnGoToGoodsList(0,\'' + cate2.cateGb + '\',' + cate2.cate1No + ',' + cate2.cate2No + ');"><span>' + cate2.cate2Nm + '</span></a>\n';
  205. });
  206. tag += ' </ul>\n';
  207. }
  208. tag += '</li>\n';
  209. }
  210. return tag;
  211. }
  212. // 퀵메뉴탭 생성
  213. let fnCreateQuickMenuTab = function() {
  214. $.getJSON('/display/gnb/tab/list'
  215. , function(result, status) {
  216. if (status == 'success') {
  217. if (result.length > 0) {
  218. $('#ulQuickMenuCate').html('');
  219. $('#ulQuickMenuCate').append('<li><a href="javascript:void(0);" onclick="cfnGoToPage(_PAGE_ALL_BRAND);"><span>브랜드</span></a></li>\n');
  220. let allCate = [[${allCateList}]];
  221. $.each(result, function(idx, item) {
  222. if (item.contentsType == 'C') { // 컨텐츠유형: 카테고리
  223. $.each(allCate, function(allCateIdx, allCateItem) {
  224. if (item.cate1No == allCateItem.cate1No) {
  225. $('#ulQuickMenuCate').append(fnGetQuickMenuCategory(allCateItem));
  226. }
  227. });
  228. } else if (item.contentsType == 'O') { // 컨텐츠유형: 아울렛
  229. $('#ulQuickContents').append('<li><a href="javascript:void(0);" onclick="cfnGoToOutletMain(\'G032_103\');"><span>' + item.gtabNm + '</span></a></li>\n');
  230. } else if (item.contentsType == 'L') { // 컨텐츠유형:링크
  231. $('#ulQuickContents').append('<li><a href="' + item.linkUrl + '"><span>' + item.gtabNm + '</span></a></li>\n');
  232. }
  233. });
  234. }
  235. }
  236. });
  237. }
  238. // 최근 본 상품
  239. let fnGetRecentlyGoods = function() {
  240. $.getJSON('/goods/recently/list', function(result, status) {
  241. if (status == 'success') {
  242. $('#quickMenuTodayGoods').html('');
  243. $('#quickMenuTodayCount').html(result.length);
  244. let tag = '';
  245. if (result.length > 0) {
  246. $.each(result, function (idx, item) {
  247. tag += '<div class="item_prod">\n';
  248. tag += ' <div class="item_state">\n';
  249. tag += ' <button type="button" class="itemLike">관심상품 추가</button>\n';
  250. tag += ' <a href="javascript:void(0);" onclick="cfnGoToGoodsDetail(\''+item.goodsCd+'\',\'\',\'IN22_01\')" class="itemLink">\n';
  251. tag += ' <div class="itemPic">\n';
  252. tag += ' <img class="vLHTC pd_img" src="' + _uploadGoodsUrl + '/' + item.sysImgNm + '" alt="">\n';
  253. tag += ' </div>\n';
  254. tag += ' </a>\n';
  255. tag += ' </div>\n';
  256. tag += '</div>\n';
  257. })
  258. }else {
  259. tag += '<div class="no_item">';
  260. tag += ' 최근 본 상품이 없습니다.';
  261. tag += '</div>';
  262. }
  263. $('#quickMenuTodayGoods').html(tag);
  264. }
  265. });
  266. }
  267. // 팝업
  268. let fnGetPopup = function(){
  269. let data = {viewPage : [[${viewPage}]]
  270. ,cateNo : [[${popupCateNo}]]
  271. ,brandCd : [[${popupBrandCd}]]
  272. ,planSq : [[${popupPlanSq}]]
  273. ,preview : [[${preview}]]
  274. ,viewDt : [[${viewDt}]]
  275. };
  276. $.getJSON('/display/popup/list', data, function(result, status) {
  277. if (status === 'success') {
  278. if(result.dataList != null && result.dataList.length>0){
  279. let pClass = "";
  280. if ("H" == result.popupGb){
  281. pClass = "half";
  282. }
  283. let popupYn = "N";
  284. let popupSq = "";
  285. let tag = '';
  286. tag += '<div id="popupMainNotice" class="popup_main_notice '+pClass+' active">\n'; <!-- half 팝업일 경우 : half 클래스 포함 -->
  287. tag += ' <div class="popup_content">\n';
  288. if ("H" == result.popupGb){
  289. $.each(result.dataList, function(idx, item) {
  290. if(document.cookie.match('(^|;)?style_popup_'+item.popupSq+'=([^;]*)(;|$)')==null) {
  291. popupSq += item.popupSq +"|";
  292. }
  293. });
  294. tag += ' <div class="popup_header">\n';
  295. tag += ' <a href="javascript:void(0);" onclick="fnLayerPopupUnexpDaysClose(\''+popupSq+'\',1);" class="btn_underline"> 하루 보지 않기</a>\n';
  296. tag += ' <a href="javascript:void(0);" id="btnPopupClose" onclick="fnLayerPopupClose();" class="btn_popup_close">닫기</a>\n';
  297. tag += ' </div>\n';
  298. }
  299. tag += ' <div class="popup_body">\n';
  300. tag += ' <div class="swiper-container">\n';
  301. tag += ' <div class="swiper-wrapper">\n';
  302. $.each(result.dataList, function(idx, item) {
  303. if(document.cookie.match('(^|;)?style_popup_'+item.popupSq+'=([^;]*)(;|$)')==null) {
  304. tag += ' <div class="swiper-slide">\n';
  305. if(!gagajf.isNull(item.linkUrl1) && item.linkUrl1 !== "#"){
  306. let linkTarget = "";
  307. if ("N" == item.linkTarget){
  308. linkTarget = "target=\"_blank\"";
  309. }
  310. tag += ' <a href="'+ item.linkUrl1 +'" '+linkTarget+' >\n';
  311. }
  312. tag += ' <img src="'+ _imgUrl+'/'+item.imgUrl1+'" alt="">\n';
  313. if(!gagajf.isNull(item.linkUrl1) && item.linkUrl1 !== "#"){
  314. tag += ' </a>\n';
  315. }
  316. tag += ' </div>\n';
  317. popupYn = "Y";
  318. popupSq += item.popupSq +"|";
  319. }
  320. });
  321. tag += ' </div>\n';
  322. tag += ' <div class="swiper-pagination"></div>\n';
  323. tag += ' </div>\n';
  324. tag += ' </div>\n';
  325. if ("F" == result.popupGb){
  326. tag += ' <div class="popup_footer">\n';
  327. tag += ' <a href="javascript:void(0);" onclick="fnLayerPopupUnexpDaysClose(\''+popupSq+'\',1);" class="btn_underline"> 하루 보지 않기</a>\n';
  328. tag += ' <a href="javascript:void(0);" id="btnPopupClose" onclick="fnLayerPopupClose();" class="btn_popup_close">닫기</a>\n';
  329. tag += ' </div>\n';
  330. }
  331. tag += ' </div>\n';
  332. tag += '</div>\n';
  333. if (popupYn == "Y"){
  334. if ($('#popupMainNotice').length === 0) {
  335. $('body').append(tag);
  336. }
  337. }
  338. /* SLIDE - 메인 공지 팝업 210521_ 수정 : 슬라이드 1개일때 롤링 제거. */
  339. var popNoticeCont = $('.popup_main_notice .swiper-slide');
  340. var popNoticeLength = popNoticeCont.length;
  341. if (popNoticeLength < 2) {
  342. var popup_main_notice_slide = new Swiper ('.popup_main_notice .swiper-container', {
  343. loop: false,
  344. watchOverflow: true, //loop와 함께 사용 불가.
  345. slidesPerView:'auto',
  346. spaceBetween: 0,
  347. speed:1000,
  348. autoplay: {
  349. delay: 3000,
  350. disableOnInteraction: false,
  351. },
  352. navigation: {
  353. nextEl: '.popup_main_notice .swiper-button-next',
  354. prevEl: '.popup_main_notice .swiper-button-prev',
  355. },
  356. pagination: {
  357. el: '.popup_main_notice .swiper-pagination',
  358. type: 'fraction',
  359. },
  360. });
  361. } else {
  362. var popup_main_notice_slide = new Swiper ('.popup_main_notice .swiper-container', {
  363. loop: true,
  364. slidesPerView:'auto',
  365. spaceBetween: 0,
  366. speed:1000,
  367. autoplay: {
  368. delay: 3000,
  369. disableOnInteraction: false,
  370. },
  371. navigation: {
  372. nextEl: '.popup_main_notice .swiper-button-next',
  373. prevEl: '.popup_main_notice .swiper-button-prev',
  374. },
  375. pagination: {
  376. el: '.popup_main_notice .swiper-pagination',
  377. type: 'fraction',
  378. },
  379. });
  380. }
  381. if($(".popup_main_notice").hasClass("active")){
  382. $("body").css({"overflow":"hidden"});
  383. }else{
  384. $("body").css({"overflow":"visible"});
  385. };
  386. }
  387. }
  388. });
  389. }
  390. let fnLayerPopupUnexpDaysClose = function(seq, unexpDays){
  391. let arrSeq = seq.split("|");
  392. if (arrSeq.length > 0){
  393. let todayDate = new Date();
  394. //todayDate = new Date(parseInt(todayDate.getTime() / 86400000) * 86400000 + 54000000);
  395. todayDate = new Date(parseInt(todayDate.getTime() / 86400000) * 86400000); // 당일 자정처리
  396. todayDate.setDate(todayDate.getDate() + unexpDays);
  397. $.each(arrSeq, function (idx, item) {
  398. if (!gagajf.isNull(item)){
  399. document.cookie = "style_popup_"+item+"=Y; path=/; expires=" + todayDate.toGMTString() + ";";
  400. }
  401. });
  402. }
  403. fnLayerPopupClose();
  404. }
  405. // 창 닫기
  406. let fnLayerPopupClose = function(){
  407. $(".popup_main_notice").removeClass("active");
  408. if(!$(".popup_main_notice").hasClass("active")){
  409. $("body").css({"overflow":"visible"});
  410. }else{
  411. $("body").css({"overflow":"hidden"});
  412. };
  413. $('#popupMainNotice').remove();
  414. }
  415. $(document).ready(function() {
  416. // 퀵메뉴탭 조회
  417. fnCreateQuickMenuTab();
  418. // 최근 본 상품 조회
  419. fnGetRecentlyGoods();
  420. // 팝업조회
  421. fnGetPopup();
  422. $.getJSON('/cart/goods/not/soldout/cnt', function (order, status) {
  423. let cartCnt;
  424. if (order.cartGoodsList.length > 99) {
  425. cartCnt = "99+";
  426. } else {
  427. cartCnt = order.cartGoodsList.length;
  428. }
  429. // $("header #htopSub .button_wrap .store>span").text(cartCnt);
  430. // $("#header .gnb .btn_cart").attr("href", _PAGE_CART);
  431. if (cartCnt > 0) {
  432. $('#spanGnbCartCnt').html(cartCnt);
  433. $('#spanGnbCartCnt').show();
  434. }
  435. });
  436. });
  437. // 앱 최초기동시
  438. var agreeMarketingPush = function () {
  439. $('#alramHide').show();
  440. }
  441. // 앱마케팅 푸시 수신동의
  442. $(document).on('click','#btnMkPushAgree',function() {
  443. $('#alramHide').hide();
  444. fnSetPush('ON', 'ON');
  445. });
  446. // 앱마케팅푸시 수신거부
  447. $(document).on('click','#btnMkPushClose',function() {
  448. $('#alramHide').hide();
  449. fnSetPush('ON', 'OFF');
  450. });
  451. var fnSetPush = function(appPushOnOff, mkPushOnOff) {
  452. if ( _osType === 'A') {
  453. window.style24.pushEnable(appPushOnOff);
  454. window.style24.adEnable(mkPushOnOff);
  455. } else if (_osType === 'I') {
  456. window.webkit.messageHandlers.pushEnable.postMessage({'status': appPushOnOff});
  457. window.webkit.messageHandlers.adEnable.postMessage({'status': mkPushOnOff});
  458. }
  459. }
  460. if($(".popup_main_notice").hasClass("active")){
  461. $("body").css({"overflow":"hidden"});
  462. }else{
  463. $("body").css({"overflow":"visible"});
  464. };
  465. /*]]>*/
  466. </script>
  467. <script th:inline="javascript">
  468. /*<![CDATA[*/
  469. var element_layer = document.getElementById('zipcode_layer');
  470. var cfnGetDaumRoadAddr = function(data) {
  471. // 팝업에서 검색결과 항목을 클릭했을 때 실행할 코드를 작성하는 부분입니다.
  472. // 예제를 참고하여 다양한 활용법을 확인해 보세요.
  473. // 팝업에서 검색결과 항목을 클릭했을때 실행할 코드를 작성하는 부분
  474. // 도로명 주소의 노출 규칙에 따라 주소를 조합한다.
  475. // 내려오는 변수가 값이 없는 경우엔 공백('') 값을 가지므로, 이를 참고하여 분기한다.
  476. let fullRoadAddr = data.roadAddress; // 도로명 주소 변수
  477. let extraRoadAddr = ''; // 도로명 조합형 주소 변수
  478. // 법정동명이 있을 경우 추가한다. (법정리는 제외)
  479. // 법정동의 경우 마지막 문자가 "동/로/가"로 끝난다.
  480. if (data.bname !== '' && /[동|로|가]$/g.test(data.bname)) {
  481. extraRoadAddr += data.bname;
  482. }
  483. // 건물명이 있고, 공동주택일 경우 추가한다.
  484. if (data.buildingName !== '' && data.apartment === 'Y') {
  485. extraRoadAddr += (extraRoadAddr !== '' ? ', ' + data.buildingName : data.buildingName);
  486. }
  487. // 도로명, 지번 조합형 주소가 있을 경우, 괄호까지 추가한 최종 문자열을 만든다.
  488. if (extraRoadAddr !== '') {
  489. extraRoadAddr = ' (' + extraRoadAddr + ')';
  490. }
  491. // 도로명, 지번 주소의 유무에 따라 해당 조합형 주소를 추가한다.
  492. if (fullRoadAddr !== '') {
  493. fullRoadAddr += extraRoadAddr;
  494. }
  495. return fullRoadAddr;
  496. }
  497. var cfnOpenDaumAddr = function(daumZip) {
  498. // 다은우편번호팝업 노출
  499. $("#daumZipcodePop").modal("show");
  500. if ($('html').hasClass('is-ie')) {
  501. daumZip.open();
  502. } else {
  503. daumZip.embed(element_layer);
  504. // iframe을 넣은 element를 보이게 한다.
  505. element_layer.style.display = 'block';
  506. // iframe을 넣은 element의 위치를 화면의 가운데로 이동시킨다.
  507. cfnInitLayerPosition();
  508. }
  509. }
  510. var cfnCloseDaumAddr = function() {
  511. // iframe을 넣은 element를 안보이게 한다.
  512. element_layer.style.display = 'none';
  513. // 다음우편번호팝업 닫기
  514. $("#daumZipcodePop").modal("hide");
  515. }
  516. // 브라우저의 크기 변경에 따라 레이어를 가운데로 이동시키고자 하실때에는
  517. // resize이벤트나, orientationchange이벤트를 이용하여 값이 변경될때마다 아래 함수를 실행 시켜 주시거나,
  518. // 직접 element_layer의 top,left값을 수정해 주시면 됩니다.
  519. var cfnInitLayerPosition = function() {
  520. //let width = 420; //우편번호서비스가 들어갈 element의 width
  521. //let height = 502; //우편번호서비스가 들어갈 element의 height
  522. let borderWidth = 1; //샘플에서 사용하는 border의 두께
  523. // 위에서 선언한 값들을 실제 element에 넣는다.
  524. //element_layer.style.width = width + 'px';
  525. //element_layer.style.height = height + 'px';
  526. element_layer.style.border = borderWidth + 'px solid';
  527. // 실행되는 순간의 화면 너비와 높이 값을 가져와서 중앙에 뜰 수 있도록 위치를 계산한다.
  528. /*
  529. element_layer.style.left = (((window.innerWidth || document.documentElement.clientWidth) - width) / 2 - borderWidth) + 'px';
  530. element_layer.style.top = (((window.innerHeight || document.documentElement.clientHeight) - height) / 2 - borderWidth) + 'px';
  531. */
  532. // 다음 레이어 적용
  533. $("#__daum__layer_1").css("z-index", 3000);
  534. }
  535. // 다음우편번호팝업 닫기
  536. $("#daumZipcodePop_close").on("click", function(){
  537. $("#daumZipcodePop").hide();
  538. });
  539. /* 210427_수정 : err 이미지 스크립트 */
  540. function noneImg(noneSrc){
  541. $(noneSrc).parents('.itemPic').css({'background':'url(/images/pc/thumb/bg_item_none.png)'});
  542. $(noneSrc).css({'opacity':'0'});
  543. //$(noneSrc).attr("src", no_src);
  544. }
  545. /*]]>*/
  546. </script>
  547. <!-- 네이버페이 유입 공통 적용 스크립트 , 모든 페이지에 노출되도록 설치. 단 전환페이지 설정값보다 항상 하단에 위치해야함 -->
  548. <script type="text/javascript" src="//wcs.naver.net/wcslog.js"> </script>
  549. <script type="text/javascript">
  550. if (!wcs_add) var wcs_add={};
  551. wcs_add["wa"] = "${@environment.getProperty('naverPay.common.certification.key')}";
  552. if (!_nasa) var _nasa={};
  553. if(window.wcs){
  554. wcs.inflow("style24.com");
  555. wcs_do(_nasa);
  556. }
  557. </script>
  558. </th:block>
  559. </html>