UserAccountInfo-2ed2f2fd.js 2.3 KB

1
  1. import{d as p,r as d,O as h,o as v,j as y,w as a,i as e,a as l,m as r,t as _,a_ as i,__tla as g}from"./index-1e808f2e.js";import{E as x,a as E,__tla as I}from"./el-descriptions-item-8d4be2e8.js";import{__tla as w}from"./Descriptions.vue_vue_type_style_index_0_scoped_76061901_lang-d9ab5a49.js";import{D as n,__tla as P}from"./DescriptionsItemLabel-b2fd708a.js";import{g as R,__tla as j}from"./index-400e5e1c.js";import{_ as A}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as D}from"./DictTag.vue_vue_type_script_lang-5c02ebfe.js";import"./color-6e929987.js";import{__tla as N}from"./dict-a31cb4ba.js";let m,O=Promise.all([(()=>{try{return g}catch{}})(),(()=>{try{return I}catch{}})(),(()=>{try{return w}catch{}})(),(()=>{try{return P}catch{}})(),(()=>{try{return j}catch{}})(),(()=>{try{return D}catch{}})(),(()=>{try{return N}catch{}})()]).then(async()=>{m=A(p({__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 s={userId:c.user.id};o.value=await R(s)||u})(),{immediate:!0}),(s,U)=>{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{O as __tla,m as default};