niucloud-admin/niucloud/public/admin/assets/personal-20c1c809.js
2023-12-01 16:44:57 +08:00

2 lines
2.9 KiB
JavaScript

import{d as b,R as E,r as c,Q as y,f as I,g as s,B as m,u as o,y as t,x as a,e as F,V as C}from"./base-2de02574.js";/* empty css *//* empty css */import{a as U,E as k}from"./el-form-item-aacba116.js";/* empty css *//* empty css */import{j as B}from"./index-6a41cdeb.js";import{t as n}from"./index-a7cd5616.js";import{c as N}from"./common-655c495e.js";import{a as R}from"./vue-router-834a68c8.js";import{E as j}from"./index-53431221.js";import{E as V}from"./index-afc66c39.js";import{E as D}from"./index-409cdc90.js";import{v as P}from"./directive-ce271fd4.js";import{_ as L}from"./_plugin-vue_export-helper-c27b6911.js";import"./event-30fa88cc.js";import"./index-29aaa146.js";import"./index-e049ae93.js";import"./el-main-e7ca7755.js";import"./index-907c8fa3.js";import"./el-overlay-c29a408e.js";import"./index-fa3f6669.js";import"./focus-trap-852901de.js";import"./index-a556d0d2.js";import"./index-53f4bde2.js";/* empty css *//* empty css *//* empty css */import"./index-99061637.js";import"./index-f34dc67c.js";import"./index-84eb3c18.js";import"./index-389593d1.js";import"./index-9c3282b5.js";import"./index-17e30841.js";import"./debounce-b627eb85.js";import"./position-a4d7d9b3.js";const Q={class:"main-container w-full px-[64px] pt-[64px] bg-white"},S={class:"flex justify-between items-center h-[32px] mb-4"},q={class:"text-[20px]"},z={class:"image-slot bg-[#c0c4cc] flex items-center justify-center w-[70px] h-[70px] rounded-full"},A=b({__name:"personal",setup(G){const _=R();let e=E({head_img:"",real_name:"",original_password:"",password:"",password_copy:"",username:""});const d=c(),i=c(!0);(()=>{i.value=!0,B().then(p=>{i.value=!1;let r=p.data;e.head_img=r.head_img,e.real_name=r.real_name,e.original_password=r.original_password,e.password=r.password,e.password_copy=r.password,e.username=r.username}).catch(()=>{i.value=!1})})();const f=()=>{_.push("/user/edit_center")};return(p,r)=>{const u=C("UserFilled"),x=j,g=V,l=U,h=k,v=D,w=P;return y((F(),I("div",Q,[s("div",S,[s("span",q,m(o(n)("personal")),1),s("span",{class:"text-[14px] text-[#999] cursor-pointer",onClick:f},m(o(n)("editPersonal")),1)]),t(v,{class:"box-card !border-none",shadow:"never"},{default:a(()=>[t(h,{model:o(e),"label-width":"90px",ref_key:"formRef",ref:d,class:"page-form"},{default:a(()=>[t(l,{label:o(n)("headImg")},{default:a(()=>[t(g,{class:"w-[70px] h-[70px]",src:o(N)(o(e).head_img),fit:"contain"},{error:a(()=>[s("div",z,[t(x,{class:"text-[#fff] text-[35px]"},{default:a(()=>[t(u)]),_:1})])]),_:1},8,["src"])]),_:1},8,["label"]),t(l,{label:o(n)("userName")},{default:a(()=>[s("div",null,m(o(e).username),1)]),_:1},8,["label"]),t(l,{label:o(n)("realName")},{default:a(()=>[s("div",null,m(o(e).real_name),1)]),_:1},8,["label"])]),_:1},8,["model"])]),_:1})])),[[w,i.value]])}}});const Ce=L(A,[["__scopeId","data-v-aa41c4a8"]]);export{Ce as default};