12 |
- "use strict";(self["webpackChunkbyte_sailing_mobile"]=self["webpackChunkbyte_sailing_mobile"]||[]).push([[1130],{71130:function(e,t,l){l.r(t),l.d(t,{default:function(){return v}});var s=l(36944),o=(l(83277),l(19545)),r=(l(42332),l(45331)),a=(l(29041),l(43739)),n=(l(62471),l(39420)),i=(l(12097),l(73396)),c=l(87139),u=l(44870),d=l(29733),m=l(51836);const f={class:"form"},p={style:{margin:"16px"}};var h={__name:"changePassword",setup(e){const t=(0,i.FN)().proxy,l=(0,u.iH)({password:"",userId:(0,m.bG)().userId}),h=()=>history.back(),b=()=>{t.post("/tenantUser/resetPwd",l.value,"PUT").then((e=>{setTimeout((()=>{(0,d.XA)($t("common.modifySuccess")),history.back()}),500)}),(e=>(0,d.LJ)(e.message)))};return(0,i.bv)((()=>{console.log((0,m.bG)())})),(e,t)=>{const u=n.l2,d=a.gN,m=r.TS,v=o.zx,g=s.l0;return(0,i.wg)(),(0,i.iD)("div",f,[(0,i.Wm)(u,{title:e.$t("home.modifyPassword"),"left-text":e.$t("common.back"),"left-arrow":"",onClickLeft:h},null,8,["title","left-text"]),(0,i.Wm)(g,{onSubmit:b,"label-align":"top",style:{"margin-top":"20px"}},{default:(0,i.w5)((()=>[(0,i.Wm)(m,{inset:""},{default:(0,i.w5)((()=>[(0,i.Wm)(d,{modelValue:l.value.password,"onUpdate:modelValue":t[0]||(t[0]=e=>l.value.password=e),label:e.$t("home.newPassword"),placeholder:e.$t("home.pleaseEnterPassword"),rules:[{required:!0,message:e.$t("home.newPasswordCanNotBeEmpty")}],required:""},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,i._)("div",p,[(0,i.Wm)(v,{round:"",block:"",type:"primary","native-type":"submit"},{default:(0,i.w5)((()=>[(0,i.Uk)((0,c.zw)(e.$t("common.submit")),1)])),_:1})])])),_:1})])}}};const b=h;var v=b},34373:function(e,t,l){l.d(t,{J:function(){return c}});var s=l(73396),o=l(253),r=l(44870),a=l(47936),n=l(10648);const i=(e,t)=>{const l=(0,r.iH)(),i=()=>{l.value=(0,o.EL)(e).height};return(0,s.bv)((()=>{if((0,s.Y3)(i),t)for(let e=1;e<=3;e++)setTimeout(i,100*e)})),(0,n.h)((()=>(0,s.Y3)(i))),(0,s.YP)([a.bn,a.uK],i),l};function c(e,t){const l=i(e,!0);return e=>(0,s.Wm)("div",{class:t("placeholder"),style:{height:l.value?`${l.value}px`:void 0}},[e()])}},39420:function(e,t,l){l.d(t,{l2:function(){return b}});var s=l(11404),o=l(73396),r=l(44870),a=l(610),n=l(5323),i=l(96048),c=l(25322),u=l(34373),d=l(13649);const[m,f]=(0,a["do"])("nav-bar"),p={title:String,fixed:Boolean,zIndex:n.Or,border:n.J5,leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:n.J5};var h=(0,o.aZ)({name:m,props:p,emits:["clickLeft","clickRight"],setup(e,{emit:t,slots:l}){const s=(0,r.iH)(),a=(0,u.J)(s,f),n=e=>t("clickLeft",e),m=e=>t("clickRight",e),p=()=>l.left?l.left():[e.leftArrow&&(0,o.Wm)(d.JO,{class:f("arrow"),name:"arrow-left"},null),e.leftText&&(0,o.Wm)("span",{class:f("text")},[e.leftText])],h=()=>l.right?l.right():(0,o.Wm)("span",{class:f("text")},[e.rightText]),b=()=>{const{title:t,fixed:r,border:a,zIndex:u}=e,d=(0,i.As)(u),b=e.leftArrow||e.leftText||l.left,v=e.rightText||l.right;return(0,o.Wm)("div",{ref:s,style:d,class:[f({fixed:r}),{[c.xe]:a,"van-safe-area-top":e.safeAreaInsetTop}]},[(0,o.Wm)("div",{class:f("content")},[b&&(0,o.Wm)("div",{class:[f("left"),e.clickable?c.e9:""],onClick:n},[p()]),(0,o.Wm)("div",{class:[f("title"),"van-ellipsis"]},[l.title?l.title():t]),v&&(0,o.Wm)("div",{class:[f("right"),e.clickable?c.e9:""],onClick:m},[h()])])])};return()=>e.fixed&&e.placeholder?a(b):b()}});const b=(0,s.n)(h)},12097:function(e,t,l){l(31958),l(20368),l(56742)}}]);
- //# sourceMappingURL=1130.ff096cd0.js.map
|