2 lines
1.9 KiB
JavaScript
2 lines
1.9 KiB
JavaScript
|
import{d as b,n as I,r as d,y,c as E,e as a,w as o,$ as F,a0 as C,h as N,u as t,N as n,R as U,a as l,t as _,f as k,a1 as R,a2 as B,V,X as D,Y as P,_ as j}from"./index-4dcc0234.js";/* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css *//* empty css *//* empty css */import{g as L}from"./personal-f9857d63.js";const S={class:"main-container w-full bg-white"},X={class:"image-slot bg-[#c0c4cc] flex items-center justify-center w-[70px] h-[70px] rounded-full"},Y=b({__name:"personal",setup($){const p=k(),e=I({head_img:"",real_name:"",original_password:"",password:"",password_copy:"",username:""}),m=d(),r=d(!0);(()=>{r.value=!0,L().then(i=>{r.value=!1;const s=i.data;e.head_img=s.head_img,e.real_name=s.real_name,e.original_password=s.original_password,e.password=s.password,e.password_copy=s.password,e.username=s.username}).catch(()=>{r.value=!1})})();const f=()=>{p.push("/user/edit_center")};return(i,s)=>{const u=R("UserFilled"),g=B,h=V,c=D,x=P,v=F,w=C;return y((N(),E("div",S,[a(v,{class:"box-card !border-none relative",shadow:"never"},{default:o(()=>[a(x,{model:e,"label-width":"80px",ref_key:"formRef",ref:m,class:"page-form"},{default:o(()=>[a(c,{label:t(n)("headImg")},{default:o(()=>[a(h,{class:"w-[70px] h-[70px]",src:t(U)(e.head_img),fit:"contain"},{error:o(()=>[l("div",X,[a(g,{class:"!text-[#fff] !text-[45px]"},{default:o(()=>[a(u)]),_:1})])]),_:1},8,["src"])]),_:1},8,["label"]),a(c,{label:t(n)("userName")},{default:o(()=>[l("div",null,_(e.username),1)]),_:1},8,["label"]),a(c,{label:t(n)("realName")},{default:o(()=>[l("div",null,_(e.real_name),1)]),_:1},8,["label"])]),_:1},8,["model"]),l("span",{class:"text-[14px] text-[#999] absolute top-[25px] right-[20px] cursor-pointer",onClick:f},_(t(n)("editPersonal")),1)]),_:1})])),[[w,r.value]])}}});const T=j(Y,[["__scopeId","data-v-bcaee335"]]);export{T as default};
|