mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-01-03 11:48:14 +00:00
2 lines
2.0 KiB
JavaScript
2 lines
2.0 KiB
JavaScript
import{d as b,f as I,l as y,r as d,N as E,J as C,h as F,c as k,a as t,t as c,u as n,k as r,e as a,w as o,z as N,T as U,C as B,G as R,H as j,K as D,L}from"./index-ad4e42d5.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as P}from"./personal-e73f963a.js";import{_ as V}from"./_plugin-vue_export-helper-c27b6911.js";const z={class:"main-container w-full pt-[64px] bg-white"},G={class:"flex justify-between items-center h-[32px] mb-4"},H={class:"text-page-title"},J={class:"image-slot bg-[#c0c4cc] flex items-center justify-center w-[70px] h-[70px] rounded-full"},K=b({__name:"personal",setup(S){const p=I(),e=y({head_img:"",real_name:"",original_password:"",password:"",password_copy:"",username:""}),m=d(),l=d(!0);(()=>{l.value=!0,P().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=U,h=B,_=R,x=j,v=D,w=L;return C((F(),k("div",z,[t("div",G,[t("span",H,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(x,{model:e,"label-width":"90px",ref_key:"formRef",ref:m,class:"page-form"},{default:o(()=>[a(_,{label:n(r)("headImg")},{default:o(()=>[a(h,{class:"w-[70px] h-[70px]",src:n(N)(e.head_img),fit:"contain"},{error:o(()=>[t("div",J,[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=V(K,[["__scopeId","data-v-6d3463da"]]);export{Z as default};
|