test_lgq/niucloud/public/admin/assets/personal-6a2fa356.js

2 lines
2.0 KiB
JavaScript
Raw Normal View History

2024-01-24 17:36:08 +08:00
import{d as b,n as y,r as d,y as I,c as E,a as t,t as c,u as n,e as a,w as o,$ as F,a0 as C,f as N,h as U,N as r,R as k,a1 as R,a2 as B,V,X as j,Y as D,_ as P}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 pt-[64px] bg-white"},X={class:"flex justify-between items-center h-[32px] mb-4"},Y={class:"text-[20px]"},$={class:"image-slot bg-[#c0c4cc] flex items-center justify-center w-[70px] h-[70px] rounded-full"},q=b({__name:"personal",setup(z){const p=N(),e=y({head_img:"",real_name:"",original_password:"",password:"",password_copy:"",username:""}),m=d(),l=d(!0);(()=>{l.value=!0,L().then(i=>{l.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(()=>{l.value=!1})})();const f=()=>{p.push("/user/edit_center")};return(i,s)=>{const u=R("UserFilled"),g=B,x=V,_=j,h=D,v=F,w=C;return I((U(),E("div",S,[t("div",X,[t("span",Y,c(n(r)("personal")),1),t("span",{class:"text-[14px] text-[#999] cursor-pointer",onClick:f},c(n(r)("editPersonal")),1)]),a(v,{class:"box-card !border-none",shadow:"never"},{default:o(()=>[a(h,{model:e,"label-width":"90px",ref_key:"formRef",ref:m,class:"page-form"},{default:o(()=>[a(_,{label:n(r)("headImg")},{default:o(()=>[a(x,{class:"w-[70px] h-[70px]",src:n(k)(e.head_img),fit:"contain"},{error:o(()=>[t("div",$,[a(g,{class:"!text-[#fff] !text-[45px]"},{default:o(()=>[a(u)]),_:1})])]),_:1},8,["src"])]),_:1},8,["label"]),a(_,{label:n(r)("userName")},{default:o(()=>[t("div",null,c(e.username),1)]),_:1},8,["label"]),a(_,{label:n(r)("realName")},{default:o(()=>[t("div",null,c(e.real_name),1)]),_:1},8,["label"])]),_:1},8,["model"])]),_:1})])),[[w,l.value]])}}});const Z=P(q,[["__scopeId","data-v-56555961"]]);export{Z as default};