Explorar o código

去除向上取整

wolyshaw %!s(int64=4) %!d(string=hai) anos
pai
achega
140e9449d0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/views/resetTeaming/modals/user-pay-form.vue

+ 1 - 1
src/views/resetTeaming/modals/user-pay-form.vue

@@ -246,7 +246,7 @@ export default {
     priceChange (item, index) {
       const _ = [...this.eclass]
       const active = this.organizationCourseUnitPriceSettingsByType[item.courseType] || {}
-      const price = Math.ceil((item.courseTotalMinuties || 1) * (active.unitPrice || 1))
+      const price = ((item.courseTotalMinuties || 1) * (active.unitPrice || 1)).toFixed(2)
       item.courseCurrentPrice = price
       item.courseOriginalPrice = price
       _[index] = item