UserAccountInfo-d84ec043.js 2.3 KB

1
  1. import{d as f,r as d,K as h,o as v,q as y,w as a,f as e,a as l,m as r,t as _,as as i,__tla as g}from"./index-2eab2d23.js";import{E as x,a as E,__tla as I}from"./el-descriptions-item-fd42286f.js";import{__tla as w}from"./Descriptions.vue_vue_type_style_index_0_scoped_76061901_lang-01b3dacb.js";import{D as s,__tla as P}from"./DescriptionsItemLabel-7438aa0d.js";import{g as R,__tla as q}from"./index-7c346043.js";import{_ as A}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as D}from"./DictTag.vue_vue_type_script_lang-cb1e47ff.js";import"./color-6e929987.js";import{__tla as K}from"./dict-1ad71b6f.js";let m,N=Promise.all([(()=>{try{return g}catch{}})(),(()=>{try{return I}catch{}})(),(()=>{try{return w}catch{}})(),(()=>{try{return P}catch{}})(),(()=>{try{return q}catch{}})(),(()=>{try{return D}catch{}})(),(()=>{try{return K}catch{}})()]).then(async()=>{m=A(f({__name:"UserAccountInfo",props:{user:{}},setup(b){const c=b,u={balance:0,totalExpense:0,totalRecharge:0},o=d(u);return h(()=>c.user.id,()=>(async()=>{if(!c.user.id)return void(o.value=u);const n={userId:c.user.id};o.value=await R(n)||u})(),{immediate:!0}),(n,U)=>{const t=x,p=E;return v(),y(p,{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(" "+_(l(i)(l(o).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(" "+_(l(i)(l(o).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(" "+_(l(i)(l(o).totalRecharge||0)),1)]),_:1})]),_:1})}}}),[["__scopeId","data-v-58ec179a"]])});export{N as __tla,m as default};