import{d as p,r as d,L as v,o as h,v as y,w as a,f as e,a as l,n as r,t as n,at as i,_ as g,__tla as x}from"./index-04f8d540.js";import{E as w,a as I,__tla as E}from"./el-descriptions-item-acdf7c6c.js";import{__tla as z}from"./Descriptions.vue_vue_type_style_index_0_scoped_aee191e8_lang-699bc8a4.js";import{D as s,__tla as A}from"./DescriptionsItemLabel-edd42a51.js";import{g as D,__tla as P}from"./index-8a1c21ad.js";import{__tla as R}from"./DictTag-774e4f97.js";import"./color-6e929987.js";import{__tla as U}from"./dict-ef06f7f7.js";let m,q=Promise.all([(()=>{try{return x}catch{}})(),(()=>{try{return E}catch{}})(),(()=>{try{return z}catch{}})(),(()=>{try{return A}catch{}})(),(()=>{try{return P}catch{}})(),(()=>{try{return R}catch{}})(),(()=>{try{return U}catch{}})()]).then(async()=>{m=g(p({__name:"UserAccountInfo",props:{user:{type:null,required:!0}},setup(b){const o=b,u={balance:0,totalExpense:0,totalRecharge:0},c=d(u);return v(()=>o.user.id,()=>(async()=>{if(!o.user.id)return void(c.value=u);const _={userId:o.user.id};c.value=await D(_)||u})(),{immediate:!0}),(_,L)=>{const t=w,f=I;return h(),y(f,{column:2},{default:a(()=>[e(t,null,{label:a(()=>[e(l(s),{label:" \u7B49\u7EA7 ",icon:"svg-icon:member_level"})]),default:a(()=>[r(" "+n(_.user.levelName||"\u65E0"),1)]),_:1}),e(t,null,{label:a(()=>[e(l(s),{label:" \u6210\u957F\u503C ",icon:"ep:suitcase"})]),default:a(()=>[r(" "+n(_.user.experience||0),1)]),_:1}),e(t,null,{label:a(()=>[e(l(s),{label:" \u5F53\u524D\u79EF\u5206 ",icon:"ep:coin"})]),default:a(()=>[r(" "+n(_.user.point||0),1)]),_:1}),e(t,null,{label:a(()=>[e(l(s),{label:" \u603B\u79EF\u5206 ",icon:"ep:coin"})]),default:a(()=>[r(" "+n(_.user.totalPoint||0),1)]),_:1}),e(t,null,{label:a(()=>[e(l(s),{label:" \u5F53\u524D\u4F59\u989D ",icon:"svg-icon:member_balance"})]),default:a(()=>[r(" "+n(l(i)(l(c).balance||0)),1)]),_:1}),e(t,null,{label:a(()=>[e(l(s),{label:" \u652F\u51FA\u91D1\u989D ",icon:"svg-icon:member_expenditure_balance"})]),default:a(()=>[r(" "+n(l(i)(l(c).totalExpense||0)),1)]),_:1}),e(t,null,{label:a(()=>[e(l(s),{label:" \u5145\u503C\u91D1\u989D ",icon:"svg-icon:member_recharge_balance"})]),default:a(()=>[r(" "+n(l(i)(l(c).totalRecharge||0)),1)]),_:1})]),_:1})}}}),[["__scopeId","data-v-057b9a78"],["__file","D:/zx/mall-newfeifan-zx-business/src/views/member/user/detail/UserAccountInfo.vue"]])});export{q as __tla,m as default};
