PageSourceSearch

https://snapbox.ai/assets/FindId-DnURZsdg.js

js snapbox.ai collected 2026-10-05 12:39:17 UTC 3,943 bytes, 1 lines download raw bytes

1import{U as u}from"./UserService-B39Vk0W_.js";import{_ as v,m as y,p as h,c as i,b as e,w as r,q as m,F as g,f as b,v as x,t as p,u as w,g as l,i as k}from"./index-GRB8Jcml.js";const C={name:"FindId",setup(){let t=y({phone:"",code:"",is_modal:!1,was_send:!1,accounts:[],msg:""});const s=w();return{send:()=>{if(!t.phone){t.msg="휴대폰 번호를 입력해주세요.",t.is_modal=!0;return}const o={phone:t.phone};u.findIdSendCode(o).then(n=>{t.msg=n.data.msg,t.is_modal=!0,n.data.code==="S"&&(t.was_send=!0)}).catch(n=>{t.msg=n.response.data.msg,t.is_modal=!0})},findId:()=>{if(!t.phone){t.msg="휴대폰번호를 입력해주세요.",t.is_modal=!0;return}if(!t.code){t.msg="인증번호를 입력해주세요.",t.is_modal=!0;return}if(!t.was_send){t.msg="인증번호를 발송해주세요.",t.is_modal=!0;return}if(!/^[0-9]{6}$/.test(t.code)){t.msg="인증번호는 6자리 숫자입니다.",t.is_modal=!0;return}const n={phone:t.phone,code:t.code};u.findId(n).then(a=>{a.data.code==="S"?t.accounts=a.data.accounts||[]:(t.msg=a.data.msg,t.is_modal=!0)}).catch(a=>{t.msg=a.response.data.msg,t.is_modal=!0})},goLogin:()=>{s.push("/login")},goResetPassword:()=>{s.push("/reset-password")},...h(t)}}},$={class:"header header_color"},I={class:"logo_clfy"},S={class:"join"},R={key:0},z={key:1},F={style:{background:"#f9fafb",border:"1px solid #e5e7eb","border-radius":"8px",padding:"14px 16px","text-align":"center"}},L={style:{"font-size":"18px"}},U={key:0,style:{"font-size":"12px",color:"#888","margin-top":"4px"}},V={class:"popup_layer",id:"popup_layer_01"},B={class:"popup_box"},E={class:"popup_box_contents txtcenter mt10",style:{"font-size":"16px"}},P={class:"btn_area"};function j(t,s,c,d,f,_){return l(),i(g,null,[e("div",$,[e("nav",null,[e("div",I,[e("a",{style:{cursor:"pointer"},onClick:s[0]||(s[0]=o=>this.$router.go(-1))})])]),s[8]||(s[8]=e("div",{class:"profile profile_join"},[e("ul",{style:{"margin-top":"50px"}},[e("li",{class:"id"},"아이디 찾기")])],-1))]),e("section",null,[e("div",S,[t.accounts.length===0?(l(),i("ul",R,[e("li",null,[s[9]||(s[9]=e("span",null,"휴대폰번호",-1)),r(e("input",{type:"text",placeholder:"가입시 입력한 휴대폰 번호를 입력해주세요.",oninput:"this.value = this.value.replace(/[^0-9.]/g, '')",maxlength:"12","onUpdate:modelValue":s[1]||(s[1]=o=>t.phone=o)},null,512),[[m,t.phone]])]),e("li",null,[e("button",{type:"button",class:"btn_basic",style:{width:"100%","max-width":"inherit"},onClick:s[2]||(s[2]=o=>d.send())}," 인증번호 발송 ")]),e("li",null,[s[10]||(s[10]=e("span",null,"인증번호",-1)),r(e("input",{type:"text",placeholder:"인증번호를 입력해주세요.",oninput:"this.value = this.value.replace(/[^0-9.]/g, '')","onUpdate:modelValue":s[3]||(s[3]=o=>t.code=o)},null,512),[[m,t.code]])]),e("li",null,[e("button",{type:"button",class:"btn_save",style:{width:"100%","max-width":"inherit"},onClick:s[4]||(s[4]=o=>d.findId())}," 아이디 찾기 ")])])):(l(),i("ul",z,[s[11]||(s[11]=e("li",{style:{display:"block","text-align":"center"}},[e("p",{style:{margin:"10px 0 6px","font-size":"15px"}}," 인증된 휴대폰 번호로 가입된 아이디입니다. ")],-1)),(l(!0),i(g,null,b(t.accounts,o=>(l(),i("li",{key:o.link_id,style:{display:"block"}},[e("div",F,[e("strong",L,p(o.link_id),1),o.created_at?(l(),i("div",U," 가입일 "+p(o.created_at),1)):k("",!0)])]))),128)),e("li",null,[e("button",{type:"button",class:"btn_save",style:{width:"100%","max-width":"inherit"},onClick:s[5]||(s[5]=o=>d.goLogin())}," 로그인하러 가기 ")]),e("li",null,[e("button",{type:"button",class:"btn_basic",style:{width:"100%","max-width":"inherit"},onClick:s[6]||(s[6]=o=>d.goResetPassword())}," 비밀번호 찾기 ")])]))]),r(e("div",V,[e("div",B,[e("div",E,p(t.msg),1),e("div",P,[e("button",{type:"button",class:"btn_save",onClick:s[7]||(s[7]=o=>t.is_modal=!1)}," 확인 ")])])],512),[[x,t.is_modal]])])],64)}const q=v(C,[["render",j]]);export{q as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.