test_lgq/niucloud/public/admin/assets/personal-2a439032.js

2 lines
2.0 KiB
JavaScript
Raw Normal View History

2024-01-24 17:36:08 +08:00
import{d as b,f as y,n as I,r as d,a1 as E,y as F,h as C,c as N,a as t,t as c,u as n,N as r,e as a,w as o,R as U,a2 as k,V as R,X as B,Y as V,$ as j,a0 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=y(),e=I({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=E("UserFilled"),g=k,x=R,_=B,h=V,v=j,w=D;return F((C(),N("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(U)(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-67a1e373"]]);export{Z as default};