From 0f435030857a1f702a57a77a8d444df648f4fe97 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 1 May 2025 09:01:04 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E3=80=90=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E3=80=91=E5=BA=97=E9=93=BA=E8=A3=85=E4=BF=AE-=E4=BC=98?= =?UTF-8?q?=E6=83=A0=E5=8A=B5=EF=BC=9A=E5=AE=8C=E5=96=84=E4=BC=98=E6=83=A0?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0=E3=80=81=E5=89=A9=E4=BD=99=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/mobile/CouponCard/component.tsx | 2 +- .../DiyEditor/components/mobile/CouponCard/index.vue | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/components/DiyEditor/components/mobile/CouponCard/component.tsx b/src/components/DiyEditor/components/mobile/CouponCard/component.tsx index 689690b0..972b9af7 100644 --- a/src/components/DiyEditor/components/mobile/CouponCard/component.tsx +++ b/src/components/DiyEditor/components/mobile/CouponCard/component.tsx @@ -43,7 +43,7 @@ export const CouponDiscountDesc = defineComponent({ const discountDesc = coupon.discountType === PromotionDiscountTypeEnum.PRICE.type ? `减${floatToFixed2(coupon.discountPrice)}元` - : `打${coupon.discountPercent}折` + : `打${coupon.discountPercent / 10.0}折` return () => (
{useCondition} diff --git a/src/components/DiyEditor/components/mobile/CouponCard/index.vue b/src/components/DiyEditor/components/mobile/CouponCard/index.vue index 2dc07886..48d01c55 100644 --- a/src/components/DiyEditor/components/mobile/CouponCard/index.vue +++ b/src/components/DiyEditor/components/mobile/CouponCard/index.vue @@ -49,7 +49,13 @@
-
{{ coupon.name }}
+ + + +
+ 仅剩:{{ coupon.totalCount - coupon.takeCount }}张 +
+
仅剩:不限制
-
{{ coupon.name }}
+ +