1 |
- import{d,r as p,w as h,o as v,C as y,A as a,f as e,a as l,D as r,E as _,dx as i,__tla as g}from"./index-5d41f3d3.js";import{E as x,a as E,__tla as I}from"./el-descriptions-item-f585725b.js";import{__tla as w}from"./Descriptions.vue_vue_type_style_index_0_scoped_76061901_lang-a1622d71.js";import{D as n,__tla as A}from"./DescriptionsItemLabel-f9b7902f.js";import{g as D,__tla as P}from"./index-d70e8bfb.js";import{_ as R}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as C}from"./DictTag.vue_vue_type_script_lang-ef6f4e48.js";import"./color-6e929987.js";import{__tla as N}from"./dict-7e5a49b3.js";let m,U=Promise.all([(()=>{try{return g}catch{}})(),(()=>{try{return I}catch{}})(),(()=>{try{return w}catch{}})(),(()=>{try{return A}catch{}})(),(()=>{try{return P}catch{}})(),(()=>{try{return C}catch{}})(),(()=>{try{return N}catch{}})()]).then(async()=>{m=R(d({__name:"UserAccountInfo",props:{user:{}},setup(b){const c=b,u={balance:0,totalExpense:0,totalRecharge:0},o=p(u);return h(()=>c.user.id,()=>(async()=>{if(!c.user.id)return void(o.value=u);const s={userId:c.user.id};o.value=await D(s)||u})(),{immediate:!0}),(s,j)=>{const t=x,f=E;return v(),y(f,{column:2},{default:a(()=>[e(t,null,{label:a(()=>[e(l(n),{label:" \u7B49\u7EA7 ",icon:"svg-icon:member_level"})]),default:a(()=>[r(" "+_(s.user.levelName||"\u65E0"),1)]),_:1}),e(t,null,{label:a(()=>[e(l(n),{label:" \u6210\u957F\u503C ",icon:"ep:suitcase"})]),default:a(()=>[r(" "+_(s.user.experience||0),1)]),_:1}),e(t,null,{label:a(()=>[e(l(n),{label:" \u5F53\u524D\u4F63\u91D1 ",icon:"ep:coin"})]),default:a(()=>[r(" "+_(s.user.point||0),1)]),_:1}),e(t,null,{label:a(()=>[e(l(n),{label:" \u603B\u4F63\u91D1 ",icon:"ep:coin"})]),default:a(()=>[r(" "+_(s.user.totalPoint||0),1)]),_:1}),e(t,null,{label:a(()=>[e(l(n),{label:" \u5F53\u524D\u4F59\u989D ",icon:"svg-icon:member_balance"})]),default:a(()=>[r(" "+_(l(i)(l(o).balance||0)),1)]),_:1}),e(t,null,{label:a(()=>[e(l(n),{label:" \u652F\u51FA\u91D1\u989D ",icon:"svg-icon:member_expenditure_balance"})]),default:a(()=>[r(" "+_(l(i)(l(o).totalExpense||0)),1)]),_:1}),e(t,null,{label:a(()=>[e(l(n),{label:" \u5145\u503C\u91D1\u989D ",icon:"svg-icon:member_recharge_balance"})]),default:a(()=>[r(" "+_(l(i)(l(o).totalRecharge||0)),1)]),_:1})]),_:1})}}}),[["__scopeId","data-v-edf34f0e"]])});export{U as __tla,m as default};
|