index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700
  1. <template>
  2. <div class="login-wrap">
  3. <div class="login--gate" v-show="loginVisible == 'Y'">
  4. <div
  5. class="inf--gate"
  6. :class="gate1 ? 'actv' : ''"
  7. @mousemove.stop="handleInfluenceMove"
  8. >
  9. <div class="btn--contents">
  10. <h2>influence</h2>
  11. <v-btn class="loc--btn" @click.stop="location('influence')"
  12. >Discover more ></v-btn
  13. >
  14. </div>
  15. </div>
  16. <div
  17. class="ven--gate"
  18. :class="gate2 ? 'actv' : ''"
  19. @mousemove.stop="handleVendorMove"
  20. >
  21. <div class="btn--contents">
  22. <h2>vendor</h2>
  23. <v-btn class="loc--btn" @click.stop="location('vendor')">Discover more ></v-btn>
  24. </div>
  25. </div>
  26. </div>
  27. <div class="login--cock" v-show="loginVisible == 'N'">
  28. <!-- header -->
  29. <div class="login--header">
  30. <div class="login--header--l">
  31. <div class="logo">
  32. <!-- prettier-ignore -->
  33. SHOPDELI
  34. </div>
  35. </div>
  36. <div class="login--header--r"></div>
  37. </div>
  38. <!-- login -->
  39. <div class="login-box">
  40. <div class="login-l">
  41. <div class="login-l-center">
  42. <span class="logo">
  43. <!-- prettier-ignore -->
  44. SHOPDELI
  45. </span>
  46. <!-- <p>We Make Scalable Mobility Life</p> -->
  47. </div>
  48. </div>
  49. <div class="login-r">
  50. <div class="tit-login">
  51. <strong>로그인</strong>
  52. </div>
  53. <div class="login-input-wrap">
  54. <div
  55. class="txt-field-box"
  56. :class="!loginForm.validCheck.input.userId ? 'error' : ''"
  57. >
  58. <v-text-field
  59. v-model="loginForm.userId"
  60. placeholder="아이디를 입력해주세요"
  61. class="custom-input"
  62. @keyup.enter="loginAction(loginForm.userId, loginForm.passwd)"
  63. @input="setInputField('main_userId')"
  64. ></v-text-field>
  65. <i class="ico"></i>
  66. </div>
  67. <div
  68. class="txt-field-box"
  69. :class="!loginForm.validCheck.input.passwd ? 'error' : ''"
  70. >
  71. <v-text-field
  72. v-model="loginForm.passwd"
  73. :type="visible ? 'text' : 'password'"
  74. placeholder="비밀번호를 입력해주세요"
  75. class="custom-input"
  76. id="password"
  77. @keyup.enter="loginAction(loginForm.userId, loginForm.passwd)"
  78. @input="setInputField('main_passwd')"
  79. ></v-text-field>
  80. <i
  81. class="ico-eye"
  82. @click.stop="toggleVisibility"
  83. :class="visible ? 'eye-on' : 'eye-off'"
  84. ></i>
  85. <i class="ico"></i>
  86. </div>
  87. <!-- <p class="error-txt" v-if="!loginForm.validCheck.inputErrorCheck">
  88. {{ loginForm.validCheck.passwd }}
  89. </p> -->
  90. </div>
  91. <div class="login-btn-wrap">
  92. <v-btn
  93. v-if="loginForm.loginType == 'influence'"
  94. class="custom-btn btn-blue"
  95. @keyup.enter="loginAction(loginForm.userId, loginForm.passwd, 'influence')"
  96. @click="loginAction(loginForm.userId, loginForm.passwd, 'influence')"
  97. >로그인</v-btn
  98. >
  99. <v-btn
  100. v-else-if="loginForm.loginType == 'vendor'"
  101. class="custom-btn btn-blue"
  102. @keyup.enter="loginAction(loginForm.userId, loginForm.passwd, 'vendor')"
  103. @click="loginAction(loginForm.userId, loginForm.passwd, 'vendor')"
  104. >로그인</v-btn
  105. >
  106. </div>
  107. <div class="join--btn--wrap">
  108. <v-btn class="custom-btn text--btn">아이디 찾기</v-btn>
  109. <v-btn class="custom-btn text--btn">비밀번호 찾기</v-btn>
  110. <v-btn class="custom-btn text--btn" @click="location('join')">회원가입</v-btn>
  111. </div>
  112. <div class="short--login--wrap" v-if="loginForm.loginType == 'influence'">
  113. <v-btn class="btn--google" @click.stop="onGoogleLogin"></v-btn>
  114. <v-btn class="btn--kakao" @click.stop="onKakaoLogin"></v-btn>
  115. <v-btn class="btn--naver" @click.stop="onNaverLogin"></v-btn>
  116. </div>
  117. </div>
  118. </div>
  119. <!-- footer -->
  120. <div class="login-footer">
  121. <div class="login--footer--l">
  122. <p>COPYRIGHT@2025 SHOPDELI INC. ALL RIGHTS RESERVED.</p>
  123. <p>마포구 합정동</p>
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. </template>
  129. <script setup>
  130. /************************
  131. * import
  132. ************************/
  133. //import PrivacyPop from "@/components/login/privacyPop.vue";
  134. //import AgrNPop from "@/components/terms/agreeNListPop.vue";
  135. import { useI18n } from "vue-i18n";
  136. /************************
  137. * layout setting
  138. ************************/
  139. definePageMeta({
  140. layout: "loginlayout",
  141. });
  142. /************************
  143. * plugins inject
  144. ************************/
  145. const { $dayjs, $log, $eventBus, $toast, $userAgent } = useNuxtApp();
  146. const useStore = useDetailStore();
  147. const route = useRoute();
  148. /************************
  149. * data & created
  150. ************************/
  151. // 현재 입력 중인 필드를 설정하는 함수
  152. const setInputField = (name) => {
  153. fnValidCheck(name);
  154. };
  155. const pageId = "login";
  156. const gate1 = ref(false);
  157. const gate2 = ref(false);
  158. const loginVisible = ref("N");
  159. const i18n = useI18n();
  160. // 다국어
  161. let listObj = ref({
  162. langTypeList: {},
  163. });
  164. // 로그인 정보
  165. const loginForm = ref({
  166. userId: "",
  167. passwd: "",
  168. otpNum: "",
  169. username: "",
  170. authType: "GOOGLE",
  171. userAgent: "",
  172. loginType: "",
  173. validCheck: {
  174. input: {
  175. userId: true,
  176. passwd: true,
  177. },
  178. otp: {
  179. otpNum: true,
  180. },
  181. inputErrorCheck: true,
  182. inputValidTxt: "",
  183. otpValidTxt: "",
  184. loginValidCheck: false,
  185. btnTxt: "",
  186. btnTxtType: "",
  187. },
  188. });
  189. // 구글 OTP 1차 팝업
  190. const authPop1 = ref({
  191. popYn: false,
  192. certifyYN: false,
  193. userId: "",
  194. passwd: "",
  195. otpNum: "",
  196. validOtpKey: true,
  197. validOtpTxt: "",
  198. btnTxt: "",
  199. btnTxtType: "",
  200. applyBtn: false,
  201. succOtpYn: false,
  202. businessName: "",
  203. agreeChk1: false,
  204. agreeChk2: false,
  205. validCheck: {
  206. userId: true,
  207. passwd: true,
  208. },
  209. validTxt: "",
  210. errorCheck: false,
  211. });
  212. // 구글 OTP 2차 팝업
  213. const authPop2 = ref({
  214. popYn: false,
  215. otpNum: "",
  216. validOtpKey: true,
  217. validOtpTxt: "",
  218. errorCheck: false,
  219. });
  220. // 아이디 찾기
  221. const findId = ref({
  222. popYn: false,
  223. //tenantName: '',
  224. email: "",
  225. otpNum: "",
  226. validCheck: {
  227. input: {
  228. //tenantName: true,
  229. email: true,
  230. },
  231. otp: {
  232. otpNum: true,
  233. },
  234. inputErrorCheck: true,
  235. inputValidTxt: "",
  236. otpValidTxt: "",
  237. findIdValidCheck: false,
  238. },
  239. btnTxt: "",
  240. });
  241. // 비밀번호 초기화
  242. const resetPw = ref({
  243. popYn: false,
  244. userId: "",
  245. email: "",
  246. otpNum: "",
  247. validCheck: {
  248. input: {
  249. userId: true,
  250. email: true,
  251. },
  252. otp: {
  253. otpNum: true,
  254. },
  255. inputErrorCheck: true,
  256. inputValidTxt: "",
  257. otpValidTxt: "",
  258. resetPwValidCheck: false,
  259. },
  260. btnTxt: "",
  261. });
  262. // 초기 패스워드 변경
  263. const initPw = ref({
  264. popYn: false,
  265. passwd: "",
  266. passwd2: "",
  267. validCheck: {
  268. passwd: true,
  269. passwd2: true,
  270. },
  271. passwdCheck: false,
  272. errorTxt: "",
  273. });
  274. const selectPlaceholder = ref("");
  275. const initAuthPop1 = ref({});
  276. const initAuthPop2 = ref({});
  277. const initFindId = ref({});
  278. const initResetPw = ref({});
  279. const initInitPw = ref({});
  280. const googleOtpQrCode = ref("");
  281. const googleOtpSecretKey = ref("");
  282. const loginInfo = ref({});
  283. const checkbox = ref(false);
  284. const langType = ref("");
  285. const toggleVisibility = () => {
  286. visible.value = !visible.value;
  287. };
  288. const visible = ref(false);
  289. const isAgrNPop = ref(false);
  290. const isShowAgrNPop = ref(false);
  291. let saveId = localStorage.getItem("saveId");
  292. if (saveId) {
  293. checkbox.value = true;
  294. loginForm.value.userId = saveId;
  295. }
  296. const handleInfluenceMove = (event) => {
  297. const el = event.currentTarget;
  298. const rect = el.getBoundingClientRect();
  299. const mouseX = event.clientX;
  300. // 요소 너비의 15%를 좌우 여백으로 계산 (중앙 70% 영역)
  301. const margin = rect.width * 0.15;
  302. const leftBound = rect.left + margin;
  303. const rightBound = rect.right - margin;
  304. if (mouseX >= leftBound && mouseX <= rightBound) {
  305. gate1.value = true;
  306. gate2.value = false;
  307. } else {
  308. gate1.value = false;
  309. }
  310. };
  311. const handleVendorMove = (event) => {
  312. const el = event.currentTarget;
  313. const rect = el.getBoundingClientRect();
  314. const mouseX = event.clientX;
  315. // 요소 너비의 15%를 좌우 여백으로 계산 (중앙 70% 영역)
  316. const margin = rect.width * 0.15;
  317. const leftBound = rect.left + margin;
  318. const rightBound = rect.right - margin;
  319. if (mouseX >= leftBound && mouseX <= rightBound) {
  320. gate2.value = true;
  321. gate1.value = false;
  322. } else {
  323. gate2.value = false;
  324. }
  325. };
  326. // 개인정보처리방침 이용약관 팝업
  327. //const privacyPop = ref(false);
  328. const privacyDetail = ref({
  329. kr: {
  330. title: "",
  331. contents: "",
  332. },
  333. en: {
  334. title: "",
  335. contents: "",
  336. },
  337. });
  338. const systemInfo = ref({
  339. mode: "",
  340. });
  341. const loginAction = (__ID, __PASS, __TYPE) => {
  342. let _req = {
  343. id: __ID,
  344. password: __PASS,
  345. logintype: __TYPE,
  346. };
  347. useAxios()
  348. .post("/roulette/login", _req)
  349. .then((res) => {
  350. if (res.data) {
  351. // console.log(res.data);
  352. useAuthStore().setAuth(res.data);
  353. useAuthStore().setAccessToken(res.data.accessToken);
  354. useAuthStore().setRefreshToken(res.data.refreshToken);
  355. localStorage.setItem("tempAccess", __ID);
  356. useUtil.setPageMove("/view/item");
  357. useStore.menuInfo.menuIndex = "0";
  358. useStore.menuInfo.menuId = "menu01";
  359. useStore.menuInfo.pageRtName = "제품 관리";
  360. useStore.menuInfo.pageStatus = null;
  361. }
  362. })
  363. .catch((error) => {
  364. if (error.response) {
  365. console.log("status:", error.response.status, "data:", error.response.data);
  366. // 안전하게 errCode, message 접근
  367. const errData = error.response.data || {};
  368. const errCode = errData.errCode || errData.errorCode || errData.code || "";
  369. const errMsg = errData.message || "알 수 없는 오류가 발생했습니다.";
  370. console.log("errCode:", errCode, "message:", errMsg);
  371. } else {
  372. console.log("error:", error.message, error.code);
  373. }
  374. if (error.response?.status) {
  375. fnLoginSet(error.response.data.messages.message);
  376. }
  377. $log.debug("[login][fnIdPwCheck][error]");
  378. })
  379. .finally(() => {
  380. $log.debug("[login][fnIdPwCheck][finished]");
  381. });
  382. };
  383. const location = (__id) => {
  384. switch (__id) {
  385. case "join":
  386. useUtil.setPageMove("/auth/join?type=" + loginForm.value.loginType);
  387. break;
  388. case "findId":
  389. findId.value.popYn = true;
  390. break;
  391. case "resetPw":
  392. resetPw.value.popYn = true;
  393. break;
  394. case "influence":
  395. useUtil.setPageMove("/?type=influence");
  396. loginVisible.value = "Y";
  397. break;
  398. case "vendor":
  399. useUtil.setPageMove("/?type=vendor");
  400. loginVisible.value = "N";
  401. break;
  402. default:
  403. break;
  404. }
  405. };
  406. // onMounted
  407. onMounted(() => {
  408. //로그인페이지 접근시 파라미터 체크하여 인플루언서, 밴더 구분
  409. const typeParam = route.query.type;
  410. if (typeParam == "influence") {
  411. loginForm.value.loginType = "influence";
  412. } else if (typeParam == "vendor") {
  413. loginForm.value.loginType = "vendor";
  414. } else {
  415. loginVisible.value = "Y";
  416. }
  417. //구글 인증 프로세스
  418. function handleMessage(event) {
  419. const appBaseUrl = import.meta.env.VITE_APP_API_URL;
  420. // 개발환경이면 아래처럼 확인
  421. const allowedOrigins = [
  422. "http://0.0.0.0:3000",
  423. "http://localhost:3000",
  424. appBaseUrl,
  425. ].filter(Boolean);
  426. if (allowedOrigins.includes(event.origin)) {
  427. const { accessToken, refreshToken, user } = event.data;
  428. if (user?.JOIN === "1") {
  429. useAuthStore().setTempData(user);
  430. useUtil.setPageMove("/auth/join?type=" + loginForm.value.loginType);
  431. } else {
  432. //useAuthStore().setAuth(res.data);
  433. const result = {
  434. refreshToken: refreshToken,
  435. user: user,
  436. };
  437. //console.log(result);
  438. //return;
  439. useAuthStore().setTempData(result);
  440. useAuthStore().setAccessToken(accessToken);
  441. useAuthStore().setRefreshToken(refreshToken);
  442. localStorage.setItem("tempAccess", result.user);
  443. useUtil.setPageMove("/view/item");
  444. useStore.menuInfo.menuIndex = "0";
  445. useStore.menuInfo.menuId = "menu02";
  446. useStore.menuInfo.pageRtName = "이벤트 관리";
  447. useStore.menuInfo.pageStatus = null;
  448. }
  449. }
  450. }
  451. window.addEventListener("message", handleMessage);
  452. onBeforeUnmount(() => window.removeEventListener("message", handleMessage));
  453. });
  454. watch(
  455. () => route.query.type,
  456. (newType) => {
  457. if (newType === "influence" || newType === "vendor") {
  458. loginForm.value.loginType = newType;
  459. loginVisible.value = "N"; // 로그인 폼 보이기
  460. } else {
  461. loginVisible.value = "Y"; // 게이트 페이지 보이기
  462. }
  463. },
  464. {
  465. immediate: true, // 컴포넌트가 마운트될 때 즉시 실행
  466. }
  467. );
  468. watchEffect(() => {
  469. // 감시하고자 하는 데이터를 해당 블럭내에서 사용하면 호출된다.
  470. // getLang.value를 감시하는 상태
  471. //QfnGetEnumCode(useLangStore().getLang);
  472. });
  473. // $eventBus.off("SET_SUCCESS_POPUP");
  474. // $eventBus.on("SET_SUCCESS_POPUP", () => {
  475. // // 안내 팝업 확인 클릭 팝업 초기화처리
  476. // fnOtpPopClose("findId");
  477. // fnOtpPopClose("resetPw");
  478. // });
  479. // $eventBus.off("PASSWD_CHANGE");
  480. // $eventBus.on("PASSWD_CHANGE", () => {
  481. // fnPasswdChange();
  482. // });
  483. // $eventBus.off("INIT_PASSWORD");
  484. // $eventBus.on("INIT_PASSWORD", () => {
  485. // initPw.value.popYn = true;
  486. // });
  487. // $eventBus.off("SET_LOGIN");
  488. // $eventBus.on("SET_LOGIN", () => {
  489. // fnLogin();
  490. // });
  491. /************************
  492. * Methods
  493. ************************/
  494. const fnLoginSet = (__MSG) => {
  495. let param = {
  496. id: pageId,
  497. title: "로그인",
  498. content: __MSG,
  499. yes: {
  500. text: "확인",
  501. isProc: true,
  502. event: "FN_LOGIN",
  503. param: "",
  504. },
  505. no: {
  506. text: "취소",
  507. isProc: false,
  508. },
  509. };
  510. $eventBus.emit("OPEN_CONFIRM_POP_UP", param);
  511. };
  512. // 구글 로그인 인증 시퀀스
  513. function onGoogleLogin() {
  514. const appBaseUrl = import.meta.env.VITE_APP_API_URL;
  515. const clientId =
  516. "373780605211-diojebh7mug45urv9rnqdil6n0b1ogge.apps.googleusercontent.com"; // 실제 클라이언트 ID로 교체
  517. //const redirectUri = "https://shopdeli.mycafe24.com/auth/callback"; // 실제 리디렉션 URI로 교체
  518. const redirectUri = `${appBaseUrl}/auth/callback`;
  519. const scope = "openid email profile";
  520. const responseType = "code"; // 또는 'code' (백엔드 연동 시)
  521. const state = Math.random().toString(36).substring(2);
  522. const googleAuthUrl = `https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&client_id=${clientId}&redirect_uri=${encodeURIComponent(
  523. redirectUri
  524. )}&response_type=${responseType}&scope=${encodeURIComponent(scope)}&state=${state}`;
  525. const width = 500;
  526. const height = 600;
  527. const dualScreenLeft =
  528. window.screenLeft !== undefined ? window.screenLeft : window.screenX;
  529. const dualScreenTop =
  530. window.screenTop !== undefined ? window.screenTop : window.screenY;
  531. const currentWidth = window.innerWidth
  532. ? window.innerWidth
  533. : document.documentElement.clientWidth
  534. ? document.documentElement.clientWidth
  535. : screen.width;
  536. const currentHeight = window.innerHeight
  537. ? window.innerHeight
  538. : document.documentElement.clientHeight
  539. ? document.documentElement.clientHeight
  540. : screen.height;
  541. const left = dualScreenLeft + (currentWidth - width) / 2;
  542. const top = dualScreenTop + (currentHeight - height) / 2;
  543. window.open(
  544. googleAuthUrl,
  545. "googleLogin",
  546. `width=${width},height=${height},left=${left},top=${top},resizable=yes,scrollbars=yes`
  547. );
  548. }
  549. //카카오 인증 시퀀스
  550. function onKakaoLogin() {
  551. const appBaseUrl = import.meta.env.VITE_APP_API_URL;
  552. const kakaoAuthUrl = `${appBaseUrl}/auth/kakaoLogin`; // 실제 리디렉션 URI로 교체
  553. const width = 500;
  554. const height = 600;
  555. const dualScreenLeft =
  556. window.screenLeft !== undefined ? window.screenLeft : window.screenX;
  557. const dualScreenTop =
  558. window.screenTop !== undefined ? window.screenTop : window.screenY;
  559. const currentWidth = window.innerWidth
  560. ? window.innerWidth
  561. : document.documentElement.clientWidth
  562. ? document.documentElement.clientWidth
  563. : screen.width;
  564. const currentHeight = window.innerHeight
  565. ? window.innerHeight
  566. : document.documentElement.clientHeight
  567. ? document.documentElement.clientHeight
  568. : screen.height;
  569. const left = dualScreenLeft + (currentWidth - width) / 2;
  570. const top = dualScreenTop + (currentHeight - height) / 2;
  571. window.open(
  572. kakaoAuthUrl,
  573. "kakaoLogin",
  574. `width=${width},height=${height},left=${left},top=${top},resizable=yes,scrollbars=yes`
  575. );
  576. }
  577. //네이버 인증 시퀀스
  578. function onNaverLogin() {
  579. const appBaseUrl = import.meta.env.VITE_APP_API_URL;
  580. const naverAuthUrl = `${appBaseUrl}/auth/naverLogin`; // 실제 리디렉션 URI로 교체
  581. const width = 500;
  582. const height = 600;
  583. const dualScreenLeft =
  584. window.screenLeft !== undefined ? window.screenLeft : window.screenX;
  585. const dualScreenTop =
  586. window.screenTop !== undefined ? window.screenTop : window.screenY;
  587. const currentWidth = window.innerWidth
  588. ? window.innerWidth
  589. : document.documentElement.clientWidth
  590. ? document.documentElement.clientWidth
  591. : screen.width;
  592. const currentHeight = window.innerHeight
  593. ? window.innerHeight
  594. : document.documentElement.clientHeight
  595. ? document.documentElement.clientHeight
  596. : screen.height;
  597. const left = dualScreenLeft + (currentWidth - width) / 2;
  598. const top = dualScreenTop + (currentHeight - height) / 2;
  599. window.open(
  600. naverAuthUrl,
  601. "naverLogin",
  602. `width=${width},height=${height},left=${left},top=${top},resizable=yes,scrollbars=yes`
  603. );
  604. }
  605. /**
  606. * @API
  607. * 최종 로그인 버튼 클릭 시 API
  608. */
  609. function fnLogin(__USERID, __USERPASS) {
  610. // 파라미터 전달 값 [아이디, 비밀번호, otpNum, 브라우저정보]
  611. //userId: loginForm.value.userId,
  612. // let _req = {
  613. // username: loginForm.value.userId,
  614. // password: btoa(loginForm.value.passwd),
  615. // };
  616. localStorage.setItem("tempAccess", __USERID);
  617. if (__USERID == "admin" && __USERPASS == "1234") {
  618. useUtil.setPageMove("/view/media/newsList");
  619. } else {
  620. fnLoginSet("비밀번호가 맞지 않습니다. 확인해주세요.");
  621. }
  622. // useAxios()
  623. // .post(apiUrl.otpCheck, _req)
  624. // .then((res) => {
  625. // loginInfo.value = res.data.data;
  626. // useAuthStore().setAccessToken(loginInfo.value.accessToken);
  627. // useAuthStore().setRefreshToken(loginInfo.value.refreshToken);
  628. // // OTP key체크 성공 후 개인정보에 대한 API를 호출 한다.
  629. // fnServiceModeCheck();
  630. // $log.debug("[login][fnLogin][success]");
  631. // })
  632. // .catch((error) => {
  633. // $log.debug("[login][fnLogin][error]");
  634. // let errorData = error.response.data;
  635. // errorData.type = "fnLogin";
  636. // fnLoginFail(errorData);
  637. // })
  638. // .finally(() => {
  639. // $log.debug("[login][fnLogin][finished]");
  640. // });
  641. }
  642. </script>