|
@@ -7,7 +7,7 @@
|
|
|
<template #header>
|
|
|
<div class="card-header">
|
|
|
<CardTitle title="基本信息" />
|
|
|
- <el-button type="primary" size="small" text @click="openForm('update')">
|
|
|
+ <el-button size="small" text type="primary" @click="openForm('update')">
|
|
|
编辑
|
|
|
</el-button>
|
|
|
</div>
|
|
@@ -16,7 +16,7 @@
|
|
|
</el-col>
|
|
|
<!-- 右上角:账户信息 -->
|
|
|
<el-col :span="10" class="detail-info-item">
|
|
|
- <el-card shadow="never" class="h-full">
|
|
|
+ <el-card class="h-full" shadow="never">
|
|
|
<template #header>
|
|
|
<CardTitle title="账户信息" />
|
|
|
</template>
|
|
@@ -25,7 +25,7 @@
|
|
|
</el-col>
|
|
|
<!-- 下边:账户明细 -->
|
|
|
<!-- TODO 芋艿:【订单管理】【售后管理】【收藏记录】-->
|
|
|
- <el-card header="账户明细" style="width: 100%; margin-top: 20px" shadow="never">
|
|
|
+ <el-card header="账户明细" shadow="never" style="width: 100%; margin-top: 20px">
|
|
|
<template #header>
|
|
|
<CardTitle title="账户明细" />
|
|
|
</template>
|
|
@@ -39,8 +39,9 @@
|
|
|
<el-tab-pane label="成长值" lazy>
|
|
|
<UserExperienceRecordList :user-id="id" />
|
|
|
</el-tab-pane>
|
|
|
- <!-- TODO @jason:增加一个余额变化; -->
|
|
|
- <el-tab-pane label="余额" lazy>余额(WIP)</el-tab-pane>
|
|
|
+ <el-tab-pane label="余额" lazy>
|
|
|
+ <WalletTransactionList :user-id="id" />
|
|
|
+ </el-tab-pane>
|
|
|
<el-tab-pane label="收货地址" lazy>
|
|
|
<UserAddressList :user-id="id" />
|
|
|
</el-tab-pane>
|
|
@@ -65,7 +66,7 @@
|
|
|
<!-- 表单弹窗:添加/修改 -->
|
|
|
<UserForm ref="formRef" @success="getUserData(id)" />
|
|
|
</template>
|
|
|
-<script setup lang="ts">
|
|
|
+<script lang="ts" setup>
|
|
|
import * as UserApi from '@/api/member/user'
|
|
|
import { useTagsViewStore } from '@/store/modules/tagsView'
|
|
|
import UserForm from '@/views/member/user/UserForm.vue'
|
|
@@ -79,6 +80,7 @@ import UserOrderList from './UserOrderList.vue'
|
|
|
import UserPointList from './UserPointList.vue'
|
|
|
import UserSignList from './UserSignList.vue'
|
|
|
import UserFavoriteList from './UserFavoriteList.vue'
|
|
|
+import WalletTransactionList from '@/views/pay/wallet/transaction/WalletTransactionList.vue'
|
|
|
import { CardTitle } from '@/components/Card/index'
|
|
|
import { ElMessage } from 'element-plus'
|
|
|
|
|
@@ -117,7 +119,7 @@ onMounted(() => {
|
|
|
getUserData(id)
|
|
|
})
|
|
|
</script>
|
|
|
-<style scoped lang="css">
|
|
|
+<style lang="css" scoped>
|
|
|
.detail-info-item:first-child {
|
|
|
padding-left: 0 !important;
|
|
|
}
|