import{_ as e}from"./index_173035598739.js";import{d as a,u as s,s as o,r as l,c as d,e as i,J as t,o as r,f as n,P as c,g as u,N as m,k as p,h as b,ai as v,z as f,aD as g,aj as _,t as w,A as h,ad as x,X as C,Y as V,B as y,C as j,aE as k,_ as I}from"./index_1730355987.js";import{_ as U}from"./index_173035598736.js";import{_ as z}from"./index_173035598733.js";import{u as B}from"./useBase_1730355987.js";const D=e=>(y("data-v-743fbaac"),e=e(),j(),e),E={class:"page"},N={class:"container"},O=D((()=>u("div",{class:"title"},"Bem Vindo, Cgae dwai",-1))),T={class:"mobile"},q=D((()=>u("div",{class:"tip"},"Termine de configuracoes sua conta",-1))),A={class:"tips flex-ct"},H=D((()=>u("span",null," o numero do celuar sera usado para verificar se seu dinheiro esta seguro quando voce tentar ",-1))),J=I(a({__name:"index",setup(a){const{pageHeight:y}=B(),j=s(),I=o(),D=l(120),J=d({mobile:"",pwd:"",code:""}),L=i((()=>!J.mobile||!J.code||!J.pwd)),M=async()=>{if(k(J.mobile)&&120===D.value){const e=setInterval((()=>{D.value--,0==D.value&&(D.value=120,clearInterval(e))}),1e3),a=await f.mobileCode({mobile:g+J.mobile});if(0!=a.code)return w(a.txt)}},P=async()=>{v();const e=await f.bindMobile({mobile:g+J.mobile,pwd:J.pwd,vCode:J.code});if(0!=e.code)return _(),w(e.txt);_(),w("Ligando bem sucedido"),await j.getUserInfo(),I.back()};return t((()=>{j.userInfo.mobile&&I.back()})),(a,s)=>{const o=z,l=h,d=U,i=x,t=e;return r(),n("div",E,[c(o,{title:"Telefone ligado"}),u("div",{class:"page-body",style:p({height:b(y)})},[c(l,{src:"base/2logo.png",type:"local",width:"6rem"}),u("div",N,[c(l,{src:"base/touxiang.png",width:"2.5rem"}),O,u("div",T,[q,c(d,{modelValue:J.mobile,"onUpdate:modelValue":s[0]||(s[0]=e=>J.mobile=e),type:"mobile",placeholder:"Número de Celular"},null,8,["modelValue"]),c(d,{type:"number",placeholder:"CODE",modelValue:J.code,"onUpdate:modelValue":s[1]||(s[1]=e=>J.code=e)},{right:m((()=>[c(i,{size:"small",disabled:120!==D.value||!J.mobile,color:"#235633",onClick:M},{default:m((()=>[C(V(120!==D.value?D.value:"CODE"),1)])),_:1},8,["disabled"])])),_:1},8,["modelValue"]),c(d,{type:"password",placeholder:"Senha",modelValue:J.pwd,"onUpdate:modelValue":s[2]||(s[2]=e=>J.pwd=e)},null,8,["modelValue"])]),u("div",A,[c(l,{src:"base/tips.png",width:"1.5rem"}),H]),c(i,{class:"login-button",color:"#235633",size:"large",disabled:L.value,onClick:P},{default:m((()=>[C(" Continuar ")])),_:1},8,["disabled"])])],4),c(t)])}}}),[["__scopeId","data-v-743fbaac"]]);export{J as default};
