Skip to content

Commit c56eecc

Browse files
committed
【功能修复】商城:商品排行的“支付金额”缺少分转元的逻辑
1 parent 472da92 commit c56eecc

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/views/mall/promotion/bargain/activity/index.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ import * as BargainActivityApi from '@/api/mall/promotion/bargain/bargainActivit
151151
import BargainActivityForm from './BargainActivityForm.vue'
152152
import { formatDate } from '@/utils/formatTime'
153153
import { fenToYuanFormat } from '@/utils/formatter'
154-
import { closeBargainActivity } from '@/api/mall/promotion/bargain/bargainActivity'
155154
156155
defineOptions({ name: 'PromotionBargainActivity' })
157156

src/views/mall/statistics/product/components/ProductRank.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</template>
1111
<!-- 排行列表 -->
1212
<el-table v-loading="loading" :data="list" @sort-change="handleSortChange">
13-
<el-table-column label="商品ID" prop="spuId" min-width="70" />
13+
<el-table-column label="商品 ID" prop="spuId" min-width="70" />
1414
<el-table-column label="商品图片" align="center" prop="picUrl" width="80">
1515
<template #default="{ row }">
1616
<el-image
@@ -27,7 +27,13 @@
2727
<el-table-column label="加购件数" prop="cartCount" min-width="105" sortable="custom" />
2828
<el-table-column label="下单件数" prop="orderCount" min-width="105" sortable="custom" />
2929
<el-table-column label="支付件数" prop="orderPayCount" min-width="105" sortable="custom" />
30-
<el-table-column label="支付金额" prop="orderPayPrice" min-width="105" sortable="custom" />
30+
<el-table-column
31+
label="支付金额"
32+
prop="orderPayPrice"
33+
min-width="105"
34+
sortable="custom"
35+
:formatter="fenToYuanFormat"
36+
/>
3137
<el-table-column label="收藏数" prop="favoriteCount" min-width="90" sortable="custom" />
3238
<el-table-column
3339
label="访客-支付转化率(%)"
@@ -50,6 +56,7 @@
5056
import { ProductStatisticsApi, ProductStatisticsVO } from '@/api/mall/statistics/product'
5157
import { CardTitle } from '@/components/Card'
5258
import { buildSortingField } from '@/utils'
59+
import { fenToYuanFormat } from '@/utils/formatter'
5360
5461
/** 商品排行 */
5562
defineOptions({ name: 'ProductRank' })

0 commit comments

Comments
 (0)