index.1e31d057.js 7.8 KB

1
  1. import{_ as M,o as x,g as y,d as s,F as B,n as K,x as Y,t as T,l as G,aU as J,W as Q,a as u,z as X,r as Z,b as C,e as t,w as p,u as P,S as h,m as _,K as ee,L as se,N as oe,h as V,a2 as N,a4 as z,O as te,aV as le,aW as ie}from"./index.6180c060.js";import{U as de}from"./UserNav.c3c343bd.js";import{i as re}from"./CountDate.vue_vue_type_style_index_0_scoped_true_lang.63596010.js";/* empty css */import{F as ae}from"./Footer.d393aa64.js";/* empty css */import{u as ne}from"./useI18n.51e7413c.js";import{a as ue}from"./index.b4030c33.js";/* empty css */const me={name:"",props:{codeLength:{default:4,type:Number}},data(){return{codeList:[],code:"",seat:0}},mounted(){this.codeList=new Array(this.codeLength).fill("")},watch:{code(){this.code.length<=0?this.seat=0:this.seat+=1,this.code.length>this.codeLength&&(this.code=this.code.substring(0,this.codeLength)),this.$emit("returnresult",this.code)}},methods:{getCode(){return this.code},onClean(){this.code=""},onClick(f){this.seat=f}}},pe={class:"code-input-main"},ce=["onClick"],fe=["maxlength"];function ve(f,v,w,E,c,d){return x(),y("div",null,[s("div",pe,[(x(!0),y(B,null,K(c.codeList,(a,n)=>(x(),y("div",{class:Y(["code-input-main-item",{on:c.seat==n}]),key:n,onClick:k=>d.onClick(n)},T(c.code[n]||""),11,ce))),128)),G(s("input",{class:"code-input-input",ref:"input","onUpdate:modelValue":v[0]||(v[0]=a=>c.code=a),maxlength:w.codeLength,type:"tel"},null,8,fe),[[J,c.code]])])])}var we=M(me,[["render",ve],["__scopeId","data-v-0654b5d0"]]);const g=f=>(ee("data-v-7a06de0d"),f=f(),se(),f),_e={class:"login-wrapper"},ge={class:"phone-text"},he={class:"input-view",style:{"":"10px"}},be=g(()=>s("div",{class:"name"},"\u65B0\u5BC6\u7801",-1)),Ve={class:"input-view",style:{"margin-right":"45px"}},ke=g(()=>s("div",{class:"name"},"\u786E\u8BA4\u65B0\u5BC6\u7801",-1)),Ce={class:"buttons"},Pe={class:"input-view"},xe=g(()=>s("div",{class:"name"},"\u65E7\u5BC6\u7801",-1)),ye={style:{"margin-left":"8px"}},Ue={class:"input-view",style:{"margin-right":"10px"}},Fe=g(()=>s("div",{class:"name"},"\u65B0\u5BC6\u7801",-1)),Se={class:"input-view",style:{"margin-right":"45px"}},Re=g(()=>s("div",{class:"name"},"\u786E\u8BA4\u65B0\u5BC6\u7801",-1)),Ie={class:"buttons"},Le={class:"register"},qe={class:"register-left"},De={class:"user-infos"},Ne={class:"user-views"},ze=g(()=>s("div",{class:"user-icons"},[s("img",{src:"http://screen-test.zhousi.hdlkeji.com/aksdbn/img/pwd-icon.png"})],-1)),Me=g(()=>s("div",{class:"user-text"},"\u5BC6\u7801",-1)),Be={__name:"index",setup(f){localStorage.getItem("USER__INFO__")&&Q().then(m=>{});const v=u(),{t:w}=ne(),c=X().getUserInfo;let d=u(!1),a=u(!1),n=u(!1);const k=u(""),U=u(""),F=u(""),S=u(""),R=u(""),I=u(""),r=Z({originalPwd:"",pwd:"",confrimPwd:"",userPwd:"",userConfrimPwd:""}),O=()=>{v.value.validate(m=>{if(m){let e={mobile:c.mobile,captcha:S.value,newpassword:r.userPwd,newpassword_confirm:r.userConfrimPwd},i=new FormData;for(let l in e)i.append(l,e[l]);oe(i).then(l=>{l.code==1?(V.success("\u91CD\u7F6E\u5BC6\u7801\u6210\u529F,\u8BF7\u91CD\u65B0\u767B\u5F55"),N.replace("/login"),z(),localStorage.removeItem("USER__INFO__")):V.error(l.msg)})}else return!1})};let L=u(null);const $=()=>{L.value.onClean(),console.error(11)},j=()=>{let m={mobile:c.mobile,event:"resetpwd"},e=new FormData;for(let i in m)e.append(i,m[i]);te(e).then(i=>{i.code==1?(k.value="",U.value="",F.value="",d.value=!1,n.value=!0):V({message:i.msg})})},A=()=>{n.value=!1,a.value=!0},W=m=>{S.value=m},q={originalPwd:[{required:!0,message:w("home.login.form.passwordRequired"),trigger:"blur",disabled:!1}],pwd:[{required:!0,message:w("home.login.form.passwordRequired"),trigger:"blur",disabled:!1}],confrimPwd:[{required:!0,message:w("home.login.form.passwordRequired"),trigger:"blur",disabled:!1}],userPwd:[{required:!0,message:w("home.login.form.passwordRequired"),trigger:"blur",disabled:!1}],userConfrimPwd:[{required:!0,message:w("home.login.form.passwordRequired"),trigger:"blur",disabled:!1}]};ue();const H=()=>{v.value.validate(m=>{if(m){let e={old_pwd:r.originalPwd,new_pwd:r.pwd,new_pwd_confirm:r.confrimPwd},i=new FormData;for(let l in e)i.append(l,e[l]);le(i).then(l=>{l.code==1?(V.success("\u4FEE\u6539\u5BC6\u7801\u6210\u529F,\u8BF7\u91CD\u65B0\u767B\u5F55"),N.push("/login"),z(),ie(),sessionStorage.clear(),localStorage.clear()):V.error(l.msg)})}else return!1})};return(m,e)=>{const i=C("el-dialog"),l=C("el-input"),b=C("el-form-item"),D=C("el-form");return x(),y(B,null,[s("div",_e,[s("div",null,[t(re)]),s("div",null,[t(i,{class:"pwd-width",modelValue:P(n),"onUpdate:modelValue":e[0]||(e[0]=o=>h(n)?n.value=o:n=o),onClose:$,"align-center":"",title:"\u4FEE\u6539\u5BC6\u7801"},{default:p(()=>[s("div",ge,"\u5DF2\u53D1\u9001\u9A8C\u8BC1\u7801\u81F3\u60A8\u7684\u624B\u673A\u53F7\uFF1A"+T(P(c).mobile),1),t(we,{onReturnresult:W,ref_key:"childRef",ref:L},null,512),s("div",{class:"input-text",onClick:A,style:{width:"455px"}},"\u5BC6\u7801\u9A8C\u8BC1")]),_:1},8,["modelValue"])]),s("div",null,[t(i,{class:"pwd-width",modelValue:P(a),"onUpdate:modelValue":e[6]||(e[6]=o=>h(a)?a.value=o:a=o),"align-center":"",title:"\u4FEE\u6539\u5BC6\u7801"},{default:p(()=>[t(D,{ref_key:"loginFormRef",ref:v,model:r,rules:q},{default:p(()=>[s("div",he,[be,s("div",null,[t(b,{prop:"userPwd"},{default:p(()=>[t(l,{modelValue:R.value,"onUpdate:modelValue":[e[1]||(e[1]=o=>R.value=o),e[2]||(e[2]=o=>r.userPwd=o)],modelModifiers:{trim:!0},"show-password":""},null,8,["modelValue"])]),_:1})])]),s("div",Ve,[ke,s("div",null,[t(b,{prop:"userConfrimPwd"},{default:p(()=>[t(l,{modelValue:I.value,"onUpdate:modelValue":[e[3]||(e[3]=o=>I.value=o),e[4]||(e[4]=o=>r.userConfrimPwd=o)],modelModifiers:{trim:!0},"show-password":""},null,8,["modelValue"])]),_:1})])])]),_:1},8,["model"]),s("div",Ce,[s("div",{class:"button",onClick:e[5]||(e[5]=o=>h(a)?a.value=!1:a=!1)},"\u53D6\u6D88"),s("div",{class:"button button-colors",onClick:O},"\u786E\u8BA4\u4FEE\u6539")])]),_:1},8,["modelValue"])]),s("div",null,[t(i,{class:"pwd-width",modelValue:P(d),"onUpdate:modelValue":e[14]||(e[14]=o=>h(d)?d.value=o:d=o),"align-center":"",title:"\u4FEE\u6539\u5BC6\u7801"},{default:p(()=>[t(D,{ref_key:"loginFormRef",ref:v,model:r,rules:q},{default:p(()=>[s("div",Pe,[xe,s("div",ye,[t(b,{prop:"originalPwd"},{default:p(()=>[t(l,{modelValue:k.value,"onUpdate:modelValue":[e[7]||(e[7]=o=>k.value=o),e[8]||(e[8]=o=>r.originalPwd=o)],"show-password":"",modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1})])]),s("div",{class:"input-text",onClick:j},"\u9A8C\u8BC1\u7801\u9A8C\u8BC1"),s("div",Ue,[Fe,s("div",null,[t(b,{prop:"pwd"},{default:p(()=>[t(l,{modelValue:U.value,"onUpdate:modelValue":[e[9]||(e[9]=o=>U.value=o),e[10]||(e[10]=o=>r.pwd=o)],"show-password":"",modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1})])]),s("div",Se,[Re,s("div",null,[t(b,{prop:"confrimPwd"},{default:p(()=>[t(l,{modelValue:F.value,"onUpdate:modelValue":[e[11]||(e[11]=o=>F.value=o),e[12]||(e[12]=o=>r.confrimPwd=o)],"show-password":"",modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1})])])]),_:1},8,["model"]),s("div",Ie,[s("div",{class:"button",onClick:e[13]||(e[13]=o=>h(d)?d.value=!1:d=!1)},"\u53D6\u6D88"),s("div",{class:"button button-colors",onClick:H},"\u63D0\u4EA4")])]),_:1},8,["modelValue"])]),s("div",Le,[s("div",qe,[t(de,{navIndexs:1})]),s("div",De,[s("div",Ne,[ze,Me,s("div",{class:"user-right",onClick:e[15]||(e[15]=o=>h(d)?d.value=!0:d=!0)},"\u4FEE\u6539\u5BC6\u7801")]),_(' <div class="user-views">'),_(' <div class="phone-icon">'),_(' <img src="http://screen-test.zhousi.hdlkeji.com/aksdbn/img/phone-icon.png">'),_(" </div>"),_(' <div class="user-text">\u7ED1\u5B9A\u624B\u673A\u53F7</div>'),_(' <div class="user-right" >\u66F4\u6362\u7ED1\u5B9A</div>'),_(" </div>")])])]),t(ae)],64)}}};var Ye=M(Be,[["__scopeId","data-v-7a06de0d"]]);export{Ye as default};