File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
src/components/DiyEditor/components/mobile Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 67
67
class =" text-16px"
68
68
:style =" { color: property.fields.price.color }"
69
69
>
70
- ¥{{ spu.price }}
70
+ ¥{{ fenToYuan( spu.price) }}
71
71
</span >
72
72
<!-- 市场价 -->
73
73
<span
74
74
v-if =" property.fields.marketPrice.show && spu.marketPrice"
75
75
class =" ml-4px text-10px line-through"
76
76
:style =" { color: property.fields.marketPrice.color }"
77
- >¥{{ spu.marketPrice }}</ span
78
- >
77
+ >¥{{ fenToYuan( spu.marketPrice) }}
78
+ </ span >
79
79
</div >
80
80
<div class =" text-12px" >
81
81
<!-- 销量 -->
117
117
<script setup lang="ts">
118
118
import { ProductCardProperty } from ' ./config'
119
119
import * as ProductSpuApi from ' @/api/mall/product/spu'
120
+ import { fenToYuan } from ' ../../../../../utils'
120
121
121
122
/** 商品卡片 */
122
123
defineOptions ({ name: ' ProductCard' })
Original file line number Diff line number Diff line change 54
54
class =" text-12px"
55
55
:style =" { color: property.fields.price.color }"
56
56
>
57
- ¥{{ spu.price }}
57
+ ¥{{ fenToYuan( spu.price) }}
58
58
</span >
59
59
</div >
60
60
</div >
65
65
<script setup lang="ts">
66
66
import { ProductListProperty } from ' ./config'
67
67
import * as ProductSpuApi from ' @/api/mall/product/spu'
68
+ import { fenToYuan } from ' ./index'
68
69
69
70
/** 商品栏 */
70
71
defineOptions ({ name: ' ProductList' })
You can’t perform that action at this time.
0 commit comments