1 |
- import{d as p,r as d,aP as v,o as h,l as y,w as a,i as e,a as l,j as r,t as _,aq as i,_ as g,__tla as x}from"./index-afaf388d.js";import{E as w,a as I,__tla as E}from"./el-descriptions-item-fe161f2c.js";import{__tla as P}from"./Descriptions.vue_vue_type_style_index_0_scoped_aee191e8_lang-957e6132.js";import{D as n,__tla as R}from"./DescriptionsItemLabel-8b6cfc3e.js";import{g as U,__tla as q}from"./index-b122e6db.js";import{__tla as A}from"./DictTag-3a1a976c.js";import"./color-6e929987.js";import{__tla as D}from"./dict-0449a0a1.js";let m,j=Promise.all([(()=>{try{return x}catch{}})(),(()=>{try{return E}catch{}})(),(()=>{try{return P}catch{}})(),(()=>{try{return R}catch{}})(),(()=>{try{return q}catch{}})(),(()=>{try{return A}catch{}})(),(()=>{try{return D}catch{}})()]).then(async()=>{m=g(p({__name:"UserAccountInfo",props:{user:{type:null,required:!0}},setup(b){const u=b,c={balance:0,totalExpense:0,totalRecharge:0},o=d(c);return v(()=>u.user.id,()=>(async()=>{if(!u.user.id)return void(o.value=c);const s={userId:u.user.id};o.value=await U(s)||c})(),{immediate:!0}),(s,k)=>{const t=w,f=I;return h(),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\u79EF\u5206 ",icon:"ep:coin"})]),default:a(()=>[r(" "+_(s.user.point||0),1)]),_:1}),e(t,null,{label:a(()=>[e(l(n),{label:" \u603B\u79EF\u5206 ",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-057b9a78"],["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/member/user/detail/UserAccountInfo.vue"]])});export{j as __tla,m as default};
|