2023-08-22 16:14:25 +08:00
|
|
|
|
<template>
|
|
|
|
|
<el-descriptions :column="2">
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template #label>
|
2023-08-26 13:48:43 +08:00
|
|
|
|
<descriptions-item-label label=" 等级 " icon="svg-icon:member_level" />
|
2023-08-22 16:14:25 +08:00
|
|
|
|
</template>
|
2023-08-26 20:57:22 +08:00
|
|
|
|
{{ user.levelName || '无' }}
|
2023-08-22 16:14:25 +08:00
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template #label>
|
2023-08-26 13:48:43 +08:00
|
|
|
|
<descriptions-item-label label=" 成长值 " icon="ep:suitcase" />
|
2023-08-22 16:14:25 +08:00
|
|
|
|
</template>
|
2023-08-26 13:48:43 +08:00
|
|
|
|
{{ user.experience || 0 }}
|
2023-08-22 16:14:25 +08:00
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template #label>
|
2023-08-26 13:48:43 +08:00
|
|
|
|
<descriptions-item-label label=" 当前积分 " icon="ep:coin" />
|
2023-08-22 16:14:25 +08:00
|
|
|
|
</template>
|
2023-08-26 13:48:43 +08:00
|
|
|
|
{{ user.point || 0 }}
|
2023-08-22 16:14:25 +08:00
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template #label>
|
2023-08-26 13:48:43 +08:00
|
|
|
|
<descriptions-item-label label=" 总积分 " icon="ep:coin" />
|
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>
|
2023-09-27 23:30:09 +08:00
|
|
|
|
<!-- TODO @疯狂:从 wallet 读取下对应字段 -->
|
2023-08-23 01:41:25 +08:00
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template #label>
|
2023-08-26 13:48:43 +08:00
|
|
|
|
<descriptions-item-label label=" 当前余额 " icon="svg-icon:member_balance" />
|
2023-08-23 01:41:25 +08:00
|
|
|
|
</template>
|
|
|
|
|
{{ 0 }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template #label>
|
2023-08-26 13:48:43 +08:00
|
|
|
|
<descriptions-item-label label=" 支出金额 " icon="svg-icon:member_expenditure_balance" />
|
2023-08-23 01:41:25 +08:00
|
|
|
|
</template>
|
|
|
|
|
{{ 0 }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template #label>
|
2023-08-26 13:48:43 +08:00
|
|
|
|
<descriptions-item-label label=" 充值金额 " icon="svg-icon:member_recharge_balance" />
|
2023-08-22 16:14:25 +08:00
|
|
|
|
</template>
|
|
|
|
|
{{ 0 }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
</template>
|
2023-08-26 13:48:43 +08:00
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
import { DescriptionsItemLabel } from '@/components/Descriptions'
|
|
|
|
|
import * as UserApi from '@/api/member/user'
|
|
|
|
|
const { user } = defineProps<{ user: UserApi.UserVO }>()
|
|
|
|
|
</script>
|
2023-08-22 16:14:25 +08:00
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
.cell-item {
|
|
|
|
|
display: inline;
|
|
|
|
|
}
|
2023-09-11 17:08:39 +08:00
|
|
|
|
|
2023-08-22 16:14:25 +08:00
|
|
|
|
.cell-item::after {
|
|
|
|
|
content: ':';
|
|
|
|
|
}
|
|
|
|
|
</style>
|