1 |
- import{_ as h,d as w,w as v,ad as F,r as i,o as B,G as g,C as o,l as e,u as t,J as y,b as E,M as c,L as D,X as R}from"./index.1d5f2f42.js";import{M as d}from"./motion.e511dc23.js";import{p as N}from"./rule.c7de6352.js";import{E as T}from"./index.4c9e3f5e.js";import{u as _}from"./verifyCode.0d99276e.js";const U={class:"w-full flex justify-between"},z=w({__name:"phone",setup(A){const u=v(!1),a=F({phone:"",verifyCode:""}),f=v(),{isDisabled:C,text:x}=_(),k=async p=>{u.value=!0,p&&await p.validate((l,s)=>{if(l)setTimeout(()=>{T.success("\u767B\u5F55\u6210\u529F"),u.value=!1},2e3);else return u.value=!1,s})};function V(){_().end(),R().SET_CURRENTPAGE(0)}return(p,l)=>{const s=i("el-input"),r=i("el-form-item"),m=i("el-button"),b=i("el-form");return B(),g(b,{ref_key:"ruleFormRef",ref:f,model:a,rules:t(N),size:"large"},{default:o(()=>[e(t(d),null,{default:o(()=>[e(r,{prop:"phone"},{default:o(()=>[e(s,{clearable:"",modelValue:a.phone,"onUpdate:modelValue":l[0]||(l[0]=n=>a.phone=n),placeholder:"\u624B\u673A\u53F7\u7801","prefix-icon":t(y)("iphone")},null,8,["modelValue","prefix-icon"])]),_:1})]),_:1}),e(t(d),{delay:100},{default:o(()=>[e(r,{prop:"verifyCode"},{default:o(()=>[E("div",U,[e(s,{clearable:"",modelValue:a.verifyCode,"onUpdate:modelValue":l[1]||(l[1]=n=>a.verifyCode=n),placeholder:"\u77ED\u4FE1\u9A8C\u8BC1\u7801","prefix-icon":t(y)("ri:shield-keyhole-line",{online:!0})},null,8,["modelValue","prefix-icon"]),e(m,{disabled:t(C),class:"ml-2",onClick:l[2]||(l[2]=n=>t(_)().start(f.value,"phone"))},{default:o(()=>[c(D(t(x)),1)]),_:1},8,["disabled"])])]),_:1})]),_:1}),e(t(d),{delay:150},{default:o(()=>[e(r,null,{default:o(()=>[e(m,{class:"w-full",size:"default",type:"primary",loading:u.value,onClick:l[3]||(l[3]=n=>k(f.value))},{default:o(()=>[c(" \u767B\u5F55 ")]),_:1},8,["loading"])]),_:1})]),_:1}),e(t(d),{delay:200},{default:o(()=>[e(r,null,{default:o(()=>[e(m,{class:"w-full",size:"default",onClick:V},{default:o(()=>[c(" \u8FD4\u56DE ")]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])}}});var j=h(z,[["__file","D:/work/rep-v3/report-v3/src/views/login/components/phone.vue"]]);export{j as default};
|