style24_link.js 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. /*
  2. * Common URL Definition
  3. */
  4. const _PAGE_LOGIN = _frontUrl + "/signin"; // GNB > 로그인
  5. const _PAGE_LOGOUT = _frontUrl + "/logout"; // GNB > 로그아웃
  6. //== 메인 ==/
  7. const _PAGE_MAIN = _frontUrl + "/display/mall/main/form"; // 몰메인
  8. //== 고객 ==/
  9. const _PAGE_CUSTOMER_JOIN = _frontUrl + "/customer/join/form"; // 고객 > 회원가입
  10. const _PAGE_CUSTOMER_SNS_JOIN = _frontUrl + "/customer/sns/join/form"; // 고객 > SNS가입
  11. const _PAGE_CUSTOMER_JOIN_COMPLETE = _frontUrl + "/customer/join/complete/form"; // 고객 > 고객가입 > 완료페이지
  12. const _PAGE_CUSTOMER_ID_FIND = _frontUrl + "/customer/id/find/form"; // 고객 > 아이디 찾기
  13. const _PAGE_CUSTOMER_PWD_FIND = _frontUrl + "/customer/password/find/form"; // 고객 > 비밀번호 찾기
  14. const _PAGE_CUSTOMER_PWD_CHANGE_FIND = _frontUrl + "/customer/password/change/form?pageGb=find"; // 고객 > 비밀번호 찾기> 비밀번호 변경 화면
  15. const _PAGE_CUSTOMER_PWD_CHANGE_TEMP = _frontUrl + "/customer/password/change/form?pageGb=temp"; // 고객 > 임시비밀번호 로그인 > 비밀번호 변경 화면
  16. const _PAGE_CUSTOMER_DORMANT = _frontUrl + "/customer/dormant/certify/form"; // 고객 > 휴면회원
  17. //== 상품상세 ==/
  18. //== 장바구니 ==/
  19. //== 주문 ==/
  20. //== 마이페이지 ==/
  21. const _PAGE_MYPAGE = _frontUrl + "/mypage/main/form"; // 마이페이지 > 메인
  22. const _PAGE_ORDER_LIST = _frontUrl + "/mypage/order/list/form"; // 마이페이지 > 주문확인/배송조회
  23. const _PAGE_ORDER_DETAIL = _frontUrl + "/mypage/order/detail/form/"; // 마이페이지 > 주문/배송 상세
  24. const _PAGE_CRS_LIST = _frontUrl + "/mypage/crs/list/form"; // 마이페이지 > 취소/교환/반품 목록
  25. const _PAGE_RESTOCK = _frontUrl + "/mypage/restock/form"; // 마이페이지 > 재입고 알림 내역
  26. const _PAGE_REVIEW = _frontUrl + "/mypage/review/form"; // 마이페이지 > 리뷰
  27. const _PAGE_DELIVERY_ADDR = _frontUrl + "/mypage/delivery/addr/form"; // 마이페이지 > 배송지 관리
  28. const _PAGE_WISHLIST = _frontUrl + "/mypage/wish/list/form"; // 마이페이지 > 위시리스트
  29. const _PAGE_CUSTOMER = _frontUrl + "/mypage/customer/form"; // 마이페이지 > 내정보 관리
  30. const _PAGE_SECEDE = _frontUrl + "/mypage/customer/secede/form"; // 마이페이지 > 회원탈퇴
  31. //== 검색 ==/
  32. //== 기획전 ==/
  33. //== 고객센터 ==/
  34. const _PAGE_FAQ = _frontUrl + "/callcenter/faq/form"; // 고객센터 > FAQ
  35. const _PAGE_ONETOONE_QNA = _frontUrl + "/mypage/onetoone/qna/form"; // 고객센터 > 1:1문의
  36. const _PAGE_GOODS_QNA = _frontUrl + "/mypage/goods/qna/form"; // 고객센터 > 상품문의
  37. const _PAGE_NOTICE = _frontUrl + "/callcenter/notice/form"; // 고객센터 > 공지사항
  38. //== 기타 ==/
  39. /**********************************************************************************************/
  40. /**
  41. * @type : function
  42. * @access : public
  43. * @desc : page 이동
  44. * <pre>
  45. * cfnGoToPage(PAGE_LOGIN);
  46. * </pre>
  47. * @param : page - page
  48. * @return : None
  49. * @author : gagamel
  50. * @since : 2020/02/21
  51. */
  52. var cfnGoToPage = function(page, ithrCd) {
  53. var params = page;
  54. if (ithrCd) params += "&ithrCd=" + ithrCd;
  55. document.location.href = params;
  56. }
  57. /**
  58. * @type : function
  59. * @access : public
  60. * @desc : 나이스 휴대폰 인증
  61. * <pre>
  62. * cfnOpenCellphoneCertify();
  63. * 호출된 페이지에서
  64. * PC : fnNiceCallBack(encData) 콜백 함수 생성 후 encData 가지고 호출 처리
  65. * MO : redirectUrl 호출하는 페이지에서 넣어줘야됨
  66. * </pre>
  67. * @param redirectUrl - 모바일에서 사용 페이지이동으로 하기 때문에
  68. * @param custparams - 회원정보수정 화면에서 사용함
  69. * @since : 2021/02/09
  70. * @author : jsshin
  71. */
  72. var cfnOpenCellphoneCertify = function (redirectUrl, custparams) {
  73. var actionUrl = _frontUrl + "/customer/nice/cellphone/form";
  74. var popupWidth = 420;
  75. var popupHeight = 720;
  76. var popupX = (window.screen.width / 2) - (popupWidth / 2);
  77. var popupY = (window.screen.height / 3) - (popupHeight / 3);
  78. if ('P' === _frontGb) {
  79. window.open(actionUrl, "popupCellphone", "top=" + popupY + ", left=" + popupX + ", width=" + popupWidth + ", height=" + popupHeight + ", fullscreen=no,menubar=no,status=no,toolbar=no,titlebar=yes,location=no,scrollbar=no");
  80. } else {
  81. if (!gagajf.isNull(redirectUrl)) {
  82. actionUrl = actionUrl + "?redirectUrl=" + redirectUrl;
  83. if (!gagajf.isNull(custparams)) {
  84. actionUrl = actionUrl + "&custparams=" + custparams;
  85. }
  86. document.location.href = actionUrl;
  87. }
  88. }
  89. };
  90. /**
  91. * @type : function
  92. * @access : public
  93. * @desc : 나이스 아이핀 인증
  94. * <pre>
  95. * cfnOpenIpinCertify();
  96. * 호출된 페이지에서
  97. * PC : fnNiceCallBack(encData) 콜백 함수 생성 후 encData 가지고 호출 처리
  98. * MO :
  99. * </pre>
  100. * @since : 2021/02/09
  101. * @author : jsshin
  102. */
  103. var cfnOpenIpinCertify = function (redirectUrl) {
  104. var actionUrl = _frontUrl + "/customer/nice/ipin/form";
  105. var popupWidth = 445;
  106. var popupHeight = 550;
  107. var popupX = (window.screen.width / 2) - (popupWidth / 2);
  108. var popupY = (window.screen.height / 3) - (popupHeight / 3);
  109. if ('P' === _frontGb) {
  110. window.open(actionUrl, "popupIpin", "top=" + popupY + ", left=" + popupX + ", width=" + popupWidth + ", height=" + popupHeight + ", fullscreen=no,menubar=no,status=no,toolbar=no,titlebar=yes,location=no,scrollbar=no");
  111. } else {
  112. if (!gagajf.isNull(redirectUrl)) {
  113. document.location.href = actionUrl + "?redirectUrl=" + redirectUrl;
  114. }
  115. }
  116. };