import{d as e,V as a,z as o,m as l,o as s,c as r,w as t,b as d,l as u,s as m,t as i,aj as c,ak as p,av as n,ag as f,k as b,r as _,a as x,y as w}from"./index.26a6cf84.js";import{a as v,_ as V}from"./u-form-item.9efeed79.js";import{_ as h}from"./u-verification-code.3d8dc169.js";import{_ as g}from"./u-form.4eb8cd7e.js";import{_ as j}from"./u-button.ae3a4a51.js";import{_ as y}from"./plugin-vue_export-helper.21dcd24c.js";import"./u-icon.7191c6e8.js";import"./emitter.5b880544.js";var k=y(e({__name:"forget_pwd",setup(e){const y=a(),k=o(""),B=l({mobile:"",code:"",password:"",password_confirm:""}),C=e=>{k.value=e},$=async()=>{var e,a;B.mobile&&(null==(e=y.value)?void 0:e.canGetCode)&&(await c({scene:p.FIND_PASSWORD,mobile:B.mobile}),uni.$u.toast("发送成功"),null==(a=y.value)||a.start())},U=async()=>B.mobile?B.password?B.password_confirm?B.password!=B.password_confirm?uni.$u.toast("两次输入的密码不一致"):(await n(B),void setTimeout((()=>{f()}),1500)):uni.$u.toast("请输入确认密码"):uni.$u.toast("请输入密码"):uni.$u.toast("请输入手机号码");return(e,a)=>{const o=b,l=_(x("u-input"),v),c=_(x("u-form-item"),V),p=_(x("u-verification-code"),h),n=w,f=_(x("u-form"),g),D=_(x("u-button"),j);return s(),r(o,{class:"register bg-white min-h-full flex flex-col items-center px-[40rpx] pt-[100rpx] box-border"},{default:t((()=>[d(o,{class:"w-full"},{default:t((()=>[d(o,{class:"text-2xl font-medium mb-[60rpx]"},{default:t((()=>[u("忘记登录密码")])),_:1}),d(f,{borderBottom:"","label-width":150},{default:t((()=>[d(c,{label:"手机号",borderBottom:""},{default:t((()=>[d(l,{class:"flex-1",modelValue:B.mobile,"onUpdate:modelValue":a[0]||(a[0]=e=>B.mobile=e),border:!1,placeholder:"请输入手机号码"},null,8,["modelValue"])])),_:1}),d(c,{label:"验证码",borderBottom:""},{default:t((()=>[d(l,{class:"flex-1",modelValue:B.code,"onUpdate:modelValue":a[1]||(a[1]=e=>B.code=e),placeholder:"请输入验证码",border:!1},null,8,["modelValue"]),d(o,{class:"border-l border-solid border-0 border-light pl-3 text-muted leading-4 ml-3 w-[180rpx]",onClick:$},{default:t((()=>[d(p,{ref_key:"uCodeRef",ref:y,seconds:60,onChange:C,"change-text":"x秒"},null,512),d(n,{class:m(B.mobile?"text-primary":"text-muted")},{default:t((()=>[u(i(k.value),1)])),_:1},8,["class"])])),_:1})])),_:1}),d(c,{label:"新密码",borderBottom:""},{default:t((()=>[d(l,{class:"flex-1",type:"password",modelValue:B.password,"onUpdate:modelValue":a[2]||(a[2]=e=>B.password=e),placeholder:"6-20位数字+字母或符号组合",border:!1},null,8,["modelValue"])])),_:1}),d(c,{label:"确认密码",borderBottom:""},{default:t((()=>[d(l,{class:"flex-1",type:"password",modelValue:B.password_confirm,"onUpdate:modelValue":a[3]||(a[3]=e=>B.password_confirm=e),placeholder:"再次输入新密码",border:!1},null,8,["modelValue"])])),_:1})])),_:1}),d(o,{class:"mt-[100rpx]"},{default:t((()=>[d(D,{type:"primary",shape:"circle",onClick:U},{default:t((()=>[u(" 确定 ")])),_:1})])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-104bb953"]]);export{k as default};
