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