64 lines
2.0 KiB
Vue
Raw Normal View History

<template>
<el-descriptions :column="2">
<el-descriptions-item>
<template #label>
2024-08-19 16:38:15 +08:00
<descriptions-item-label icon="svg-icon:member_level" label=" 等级 " />
</template>
2023-08-26 20:57:22 +08:00
{{ user.levelName || '无' }}
</el-descriptions-item>
<el-descriptions-item>
<template #label>
2024-08-19 16:38:15 +08:00
<descriptions-item-label icon="ep:suitcase" label=" 成长值 " />
</template>
{{ user.experience || 0 }}
</el-descriptions-item>
<el-descriptions-item>
<template #label>
2024-08-19 16:38:15 +08:00
<descriptions-item-label icon="ep:coin" label=" 当前积分 " />
</template>
{{ user.point || 0 }}
</el-descriptions-item>
<el-descriptions-item>
<template #label>
2024-08-19 16:38:15 +08:00
<descriptions-item-label icon="ep:coin" label=" 总积分 " />
2023-08-23 01:41:25 +08:00
</template>
2023-08-26 20:57:22 +08:00
{{ user.totalPoint || 0 }}
2023-08-23 01:41:25 +08:00
</el-descriptions-item>
<el-descriptions-item>
<template #label>
2024-08-19 16:38:15 +08:00
<descriptions-item-label icon="svg-icon:member_balance" label=" 当前余额 " />
2023-08-23 01:41:25 +08:00
</template>
2023-10-01 23:44:38 +08:00
{{ fenToYuan(wallet.balance || 0) }}
2023-08-23 01:41:25 +08:00
</el-descriptions-item>
<el-descriptions-item>
<template #label>
2024-08-19 16:38:15 +08:00
<descriptions-item-label icon="svg-icon:member_expenditure_balance" label=" 支出金额 " />
2023-08-23 01:41:25 +08:00
</template>
2023-10-01 23:44:38 +08:00
{{ fenToYuan(wallet.totalExpense || 0) }}
2023-08-23 01:41:25 +08:00
</el-descriptions-item>
<el-descriptions-item>
<template #label>
2024-08-19 16:38:15 +08:00
<descriptions-item-label icon="svg-icon:member_recharge_balance" label=" 充值金额 " />
</template>
2023-10-01 23:44:38 +08:00
{{ fenToYuan(wallet.totalRecharge || 0) }}
</el-descriptions-item>
</el-descriptions>
</template>
2024-08-19 16:38:15 +08:00
<script lang="ts" setup>
import { DescriptionsItemLabel } from '@/components/Descriptions'
import * as UserApi from '@/api/member/user'
2023-10-15 17:47:36 +08:00
import * as WalletApi from '@/api/pay/wallet/balance'
2023-10-01 23:44:38 +08:00
import { fenToYuan } from '@/utils'
2023-09-30 12:40:21 +08:00
2024-08-19 16:38:15 +08:00
defineProps<{ user: UserApi.UserVO; wallet: WalletApi.WalletVO }>() // 用户信息
</script>
2024-08-19 16:38:15 +08:00
<style lang="scss" scoped>
.cell-item {
display: inline;
}
2023-09-11 17:08:39 +08:00
.cell-item::after {
content: ':';
}
</style>