Forráskód Böngészése

折扣保留一位小数

zuy 1 éve
szülő
commit
ee484fbba4

+ 1 - 1
src/pages-charge/appointment/appointment.vue

@@ -801,7 +801,7 @@ onLoad((_options: any) => {
       activity.value.minDiscount = Number(
         (
           Number(res.activityList[0].rechargeRightsList[0].discount) / 10
-        ).toFixed(2)
+        ).toFixed(1)
       );
     }
   });

+ 1 - 1
src/pages-charge/discount/discount.vue

@@ -121,7 +121,7 @@ onLoad((options: any) => {
         (item: any) => item.id === options.id
       );
       _activity.rechargeRightsList.forEach((item: any) => {
-        item.discountFormat = Number((Number(item.discount) / 10).toFixed(2));
+        item.discountFormat = Number((Number(item.discount) / 10).toFixed(1));
       });
       list.value = _activity.rechargeRightsList;
       activity.value = _activity;