File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
src/components/DiyEditor/components/mobile/CouponCard Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export const CouponDiscountDesc = defineComponent({
43
43
const discountDesc =
44
44
coupon . discountType === PromotionDiscountTypeEnum . PRICE . type
45
45
? `减${ floatToFixed2 ( coupon . discountPrice ) } 元`
46
- : `打${ coupon . discountPercent } 折`
46
+ : `打${ coupon . discountPercent / 10.0 } 折`
47
47
return ( ) => (
48
48
< div >
49
49
< span > { useCondition } </ span >
Original file line number Diff line number Diff line change 49
49
<div class =" flex flex-col justify-evenly gap-4px" >
50
50
<!-- 优惠值 -->
51
51
<CouponDiscount :coupon =" coupon" />
52
- <div >{{ coupon.name }}</div >
52
+ <!-- 优惠描述 -->
53
+ <CouponDiscountDesc :coupon =" coupon" />
54
+ <!-- 领取说明 -->
55
+ <div v-if =" coupon.totalCount >= 0" >
56
+ 仅剩:{{ coupon.totalCount - coupon.takeCount }}张
57
+ </div >
58
+ <div v-else-if =" coupon.totalCount === -1" >仅剩:不限制</div >
53
59
</div >
54
60
<div class =" flex flex-col" >
55
61
<div
67
73
<div v-else class =" flex flex-col items-center justify-around gap-4px p-4px" >
68
74
<!-- 优惠值 -->
69
75
<CouponDiscount :coupon =" coupon" />
70
- <div >{{ coupon.name }}</div >
76
+ <!-- 优惠描述 -->
77
+ <CouponDiscountDesc :coupon =" coupon" />
71
78
<div
72
79
class =" rounded-20px p-x-8px p-y-2px"
73
80
:style =" {
You can’t perform that action at this time.
0 commit comments