mirror of
https://github.com/yudaocode/yudao-ui-admin-vue3.git
synced 2026-05-11 18:53:43 +00:00
code review:用户详情
This commit is contained in:
@@ -1,20 +1,10 @@
|
||||
<template>
|
||||
<el-descriptions :column="2">
|
||||
<!-- TODO @梦:要不 icon 也给加下? -->
|
||||
<!-- TODO @梦:积分、成长值、等级,已经可以读取了,可以看下 -->
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item"> 储值余额 </div>
|
||||
</template>
|
||||
{{ 0 }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item"> 现金余额 </div>
|
||||
</template>
|
||||
{{ 0 }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item"> 积分 </div>
|
||||
<div class="cell-item"> 等级 </div>
|
||||
</template>
|
||||
{{ 0 }}
|
||||
</el-descriptions-item>
|
||||
@@ -24,11 +14,39 @@
|
||||
</template>
|
||||
{{ 0 }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item"> 当前积分 </div>
|
||||
</template>
|
||||
{{ 0 }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item"> 总积分 </div>
|
||||
</template>
|
||||
{{ 0 }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item"> 当前余额 </div>
|
||||
</template>
|
||||
{{ 0 }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item"> 支出金额 </div>
|
||||
</template>
|
||||
{{ 0 }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item"> 充值金额 </div>
|
||||
</template>
|
||||
{{ 0 }}
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
import { defineComponent } from 'vue'
|
||||
|
||||
defineComponent({
|
||||
name: 'AccountInfo'
|
||||
})
|
||||
|
||||
@@ -6,6 +6,7 @@ export default defineComponent({
|
||||
})
|
||||
</script>
|
||||
|
||||
<!-- TODO @梦:可以读 address 表 -->
|
||||
<template>
|
||||
<div>收货地址列表</div>
|
||||
</template>
|
||||
|
||||
@@ -6,6 +6,7 @@ export default defineComponent({
|
||||
})
|
||||
</script>
|
||||
|
||||
<!-- TODO @芋艿:未来实现,等周建的 -->
|
||||
<template>
|
||||
<div>余额列表</div>
|
||||
</template>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<script lang="ts" setup>
|
||||
import { defineComponent } from 'vue'
|
||||
defineComponent({
|
||||
name: 'CardTitle'
|
||||
})
|
||||
|
||||
const { title } = defineProps({
|
||||
title: {
|
||||
type: String,
|
||||
|
||||
@@ -6,6 +6,7 @@ export default defineComponent({
|
||||
})
|
||||
</script>
|
||||
|
||||
<!-- TODO @梦:可以读取 member_experience_log 表 -->
|
||||
<template>
|
||||
<div>成长值列表</div>
|
||||
</template>
|
||||
|
||||
@@ -100,13 +100,13 @@
|
||||
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
|
||||
import { dateFormatter } from '@/utils/formatTime'
|
||||
import * as RecordApi from '@/api//member/point/record'
|
||||
import { RecordQueryVO } from '@/api//member/point/record'
|
||||
|
||||
defineOptions({ name: 'PointList' })
|
||||
|
||||
const loading = ref(true) // 列表的加载中
|
||||
const total = ref(0) // 列表的总页数
|
||||
const list = ref([]) // 列表的数据
|
||||
const queryParams = reactive<RecordQueryVO>({
|
||||
const queryParams = reactive({
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
bizType: undefined,
|
||||
@@ -139,12 +139,15 @@ const resetQuery = () => {
|
||||
queryFormRef.value.resetFields()
|
||||
handleQuery()
|
||||
}
|
||||
|
||||
// TODO @梦:改成 userId 哈
|
||||
const { memberId } = defineProps({
|
||||
memberId: {
|
||||
type: Number,
|
||||
required: true
|
||||
}
|
||||
})
|
||||
|
||||
/** 初始化 **/
|
||||
onMounted(() => {
|
||||
queryParams.userId = memberId
|
||||
|
||||
@@ -83,14 +83,13 @@
|
||||
<script lang="ts" setup>
|
||||
import { dateFormatter } from '@/utils/formatTime'
|
||||
import * as SignInRecordApi from '@/api/member/signin/record'
|
||||
import { SignInRecordQueryVO } from '@/api/member/signin/record'
|
||||
|
||||
defineOptions({ name: 'SignList' })
|
||||
|
||||
const loading = ref(true) // 列表的加载中
|
||||
const total = ref(0) // 列表的总页数
|
||||
const list = ref([]) // 列表的数据
|
||||
const queryParams = reactive<SignInRecordQueryVO>({
|
||||
const queryParams = reactive({
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
nickname: null,
|
||||
@@ -122,12 +121,15 @@ const resetQuery = () => {
|
||||
queryFormRef.value.resetFields()
|
||||
handleQuery()
|
||||
}
|
||||
|
||||
// TODO @梦:改成 userId 哈
|
||||
const { memberId } = defineProps({
|
||||
memberId: {
|
||||
type: Number,
|
||||
required: true
|
||||
}
|
||||
})
|
||||
|
||||
/** 初始化 **/
|
||||
onMounted(() => {
|
||||
queryParams.userId = memberId
|
||||
|
||||
Reference in New Issue
Block a user