Browse Source

客户账户明细 金币总数等 为空 为 0

zhangrenyuan/feature-20250714163943-金币前端二期
lihui 2 weeks ago
parent
commit
71779b6456
  1. 44
      src/views/usergold/clientCountBalance.vue
  2. 16
      src/views/usergold/clientCountDetail.vue

44
src/views/usergold/clientCountBalance.vue

@ -368,10 +368,10 @@ const handleMarketChange = (val) => {
<el-col>
<el-card>
<div>
金币总数{{ Math.abs(goldtotal) / 100 }}
永久金币{{ Math.abs(permanentGold) / 100 }}
免费金币{{ Math.abs(freeGold) / 100 }}
任务金币{{ Math.abs(taskGold) / 100 }}
金币总数{{ (goldtotal || 0) / 100 }}
永久金币{{(permanentGold || 0) / 100 }}
免费金币{{ (freeGold || 0) / 100 }}
任务金币{{ (taskGold || 0) / 100 }}
</div>
<!-- 设置表格容器的高度和滚动样式 -->
<div style="height: 626px; overflow-y: auto">
@ -390,31 +390,31 @@ const handleMarketChange = (val) => {
<el-table-column prop="allJb" label="金币总数" width="120" aligh="center">
<template #default="scope">
<span>{{
(scope.row.currentPermanentGold +
scope.row.currentFreeJune +
scope.row.currentFreeDecember +
scope.row.currentTaskGold) / 100
((scope.row.currentPermanentGold || 0 ) +
(scope.row.currentFreeJune|| 0 ) +
(scope.row.currentFreeDecember|| 0 ) +
(scope.row.currentTaskGold || 0) / 100)
}}</span>
</template>
</el-table-column>
<el-table-column prop="currentPermanentGold" label="永久金币" sortable="custom" width="110">
<template #default="scope">
<span>{{ Math.abs(scope.row.currentPermanentGold) / 100 }}</span>
<span>{{ (scope.row.currentPermanentGold || 0) / 100 }}</span>
</template>
</el-table-column>
<el-table-column prop="currentFreeJune" label="6月份到期免费金币" sortable="custom" width="110">
<template #default="scope">
<span>{{ scope.row.currentFreeJune / 100 }}</span>
<span>{{ (scope.row.currentFreeJune || 0) / 100 }}</span>
</template>
</el-table-column>
<el-table-column prop="currentFreeDecember" label="12月份到期免费金币" sortable="custom" width="110">
<template #default="scope">
<span>{{ scope.row.currentFreeDecember / 100 }}</span>
<span>{{ (scope.row.currentFreeDecember || 0) / 100 }}</span>
</template>
</el-table-column>
<el-table-column prop="currentTaskGold" label="任务金币" sortable="custom" width="130">
<template #default="scope">
<span>{{ Math.abs(scope.row.currentTaskGold) / 100 }}</span>
<span>{{(scope.row.currentTaskGold || 0) / 100 }}</span>
</template>
</el-table-column>
@ -442,8 +442,26 @@ const handleMarketChange = (val) => {
</el-table-column>
<el-table-column prop="sumConsume" label="历史消费" width="150">
<template #default="scope">
<span>{{ Math.abs(scope.row.sumConsume) / 100 }}</span>
<el-popover trigger="hover" placement="left" width="150">
<template #default>
<div>
<div>永久金币{{ (scope.row.sumConsumeGold || 0) / 100 }}</div>
<div>免费金币{{ (scope.row.sumConsumeJune || 0) + (scope.row.sumConsumeDecember || 0) / 100 }}</div>
<div>任务金币{{ (scope.row.sumConsumeJune || 0) / 100 }}</div>
</div>
</template>
<template #reference>
<span>
{{
(scope.row.sumConsumeGold || 0) / 100 +
(scope.row.sumConsumeTaskGold || 0) / 100 +
(scope.row.sumConsumeJune || 0) / 100 +
(scope.row.sumConsumeDecember || 0) / 100
}}</span>
</template>
</el-popover>
</template>
</el-table-column>
</el-table>
</div>

16
src/views/usergold/clientCountDetail.vue

@ -537,10 +537,10 @@ const handleMarketChange = (val) => {
<el-col>
<el-card>
<div>
金币总数{{ (totalGoldTotal) / 100 }}
永久金币{{ (totalPermanentGold) / 100 }}
免费金币{{ (totalFreeGold) / 100 }}
任务金币{{ (totalTaskGold) / 100 }}
金币总数{{ (totalGoldTotal || 0) / 100 }}
永久金币{{ (totalPermanentGold || 0) / 100 }}
免费金币{{ (totalFreeGold || 0) / 100 }}
任务金币{{ (totalTaskGold || 0) / 100 }}
</div>
<div style="height: 584px; overflow-y: auto">
<el-table :data="tableData" style="width: 100%" @sort-change="handleSortChange" height="584px">
@ -577,23 +577,23 @@ const handleMarketChange = (val) => {
: scope.row.sumGold / 100
}}
</span> -->
<span>{{ scope.row.sumGold / 100 }}</span>
<span>{{ (scope.row.sumGold || 0) / 100 }}</span>
</template>
</el-table-column>
<el-table-column prop="permanentGold" sortable="custom" label="永久金币" width="110">
<template #default="scope">
<span>{{ scope.row.permanentGold / 100 }}</span>
<span>{{ (scope.row.permanentGold || 0) / 100 }}</span>
</template>
</el-table-column>
<el-table-column prop="freeGold" sortable="custom" label="免费金币" width="110">
<template #default="scope">
<span>{{ calculateFreeGold(scope.row) / 100 }}</span>
<span>{{ (calculateFreeGold(scope.row) || 0) / 100 }}</span>
</template>
</el-table-column>
<el-table-column prop="taskGold" sortable="custom" label="任务金币" width="110">
<template #default="scope">
<span>{{ scope.row.taskGold / 100 }}</span>
<span>{{ (scope.row.taskGold || 0) / 100 }}</span>
</template>
</el-table-column>
<el-table-column prop="adminName" label="提交人" width="110"/>

Loading…
Cancel
Save