boyuehasfj-vue3/boyuehasfj-admin/assets/resetEmail-Dh93y2vU.js
2025-06-02 21:34:56 +08:00

2 lines
1.6 KiB
JavaScript

import{d as e,O as l,r as a,j as o,h as d,o as r,w as s,e as t,k as u,m as p,aF as i}from"./index-C-c3zR6K.js";const m={__name:"resetEmail",setup(m){const{proxy:n}=e(),f=l({email:void 0,password:void 0}),c=a({email:[{required:!0,message:"邮箱不能为空",trigger:"blur"}],password:[{required:!0,message:"密码不能为空",trigger:"blur"}]});function w(){i("/auth/mail/send/bind",f)}function b(){i("/auth/mail/verify/bind",f)}function _(){n.$tab.closePage()}return(e,l)=>{const a=o("el-input"),i=o("el-form-item"),m=o("el-button"),n=o("el-form");return r(),d(n,{ref:"pwdRef",model:u(f),rules:u(c),"label-width":"80px"},{default:s((()=>[t(i,{label:"邮箱",prop:"email"},{default:s((()=>[t(a,{modelValue:u(f).email,"onUpdate:modelValue":l[0]||(l[0]=e=>u(f).email=e),placeholder:"请输入邮箱"},null,8,["modelValue"])])),_:1}),t(i,{label:"密码",prop:"password"},{default:s((()=>[t(a,{modelValue:u(f).password,"onUpdate:modelValue":l[1]||(l[1]=e=>u(f).password=e),placeholder:"请输入密码",type:"password","show-password":""},null,8,["modelValue"])])),_:1}),t(i,{label:"验证码",prop:"code"},{default:s((()=>[t(a,{modelValue:u(f).code,"onUpdate:modelValue":l[2]||(l[2]=e=>u(f).code=e),placeholder:"请输入验证码"},null,8,["modelValue"])])),_:1}),t(i,null,{default:s((()=>[t(m,{type:"primary",onClick:w},{default:s((()=>l[3]||(l[3]=[p("发送验证码")]))),_:1}),t(m,{type:"primary",onClick:b},{default:s((()=>l[4]||(l[4]=[p("保存")]))),_:1}),t(m,{type:"danger",onClick:_},{default:s((()=>l[5]||(l[5]=[p("关闭")]))),_:1})])),_:1})])),_:1},8,["model","rules"])}}};export{m as default};