Преглед изворни кода

fix:【商城】店铺装修-优惠劵卡片:discountPercent 少 10.0 除数

YunaiV пре 10 месеци
родитељ
комит
2c8f1626ec
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/components/DiyEditor/components/mobile/CouponCard/component.tsx

+ 1 - 1
src/components/DiyEditor/components/mobile/CouponCard/component.tsx

@@ -13,7 +13,7 @@ export const CouponDiscount = defineComponent({
   setup(props) {
     const coupon = props.coupon as CouponTemplateApi.CouponTemplateVO
     // 折扣
-    let value = coupon.discountPercent + ''
+    let value = coupon.discountPercent / 10 + ''
     let suffix = ' 折'
     // 满减
     if (coupon.discountType === PromotionDiscountTypeEnum.PRICE.type) {