前端-胡立永 1 week ago
parent
commit
d5859e240a
4 changed files with 5 additions and 5 deletions
  1. +1
    -1
      pages/index/cart.vue
  2. +1
    -1
      pages_order/order/createOrder.vue
  3. +1
    -1
      pages_order/order/firmOrder.vue
  4. +2
    -2
      pages_order/order/voiceOrder.vue

+ 1
- 1
pages/index/cart.vue View File

@ -147,7 +147,7 @@
price += n.price * n.selectNum price += n.price * n.selectNum
} }
}) })
return Number(price).toFixed(2)
return Number(price).toFixed(3)
}, },
}, },
onLoad(){ onLoad(){


+ 1
- 1
pages_order/order/createOrder.vue View File

@ -255,7 +255,7 @@
price -= this.coupon.money price -= this.coupon.money
} }
return Number(price).toFixed(2)
return Number(price).toFixed(3)
}, },
...mapState(['userInfo', 'payOrderProduct']), ...mapState(['userInfo', 'payOrderProduct']),
}, },


+ 1
- 1
pages_order/order/firmOrder.vue View File

@ -182,7 +182,7 @@
price += n.price * (n.selectNum || 1) price += n.price * (n.selectNum || 1)
} }
}) })
return Number(price).toFixed(2)
return Number(price).toFixed(3)
}, },
}, },
onLoad(options) { onLoad(options) {


+ 2
- 2
pages_order/order/voiceOrder.vue View File

@ -462,9 +462,9 @@
if (size < 1024) { if (size < 1024) {
this.audioSize = size + 'B'; this.audioSize = size + 'B';
} else if (size < 1024 * 1024) { } else if (size < 1024 * 1024) {
this.audioSize = (size / 1024).toFixed(2) + 'KB';
this.audioSize = (size / 1024).toFixed(3) + 'KB';
} else { } else {
this.audioSize = (size / (1024 * 1024)).toFixed(2) + 'MB';
this.audioSize = (size / (1024 * 1024)).toFixed(3) + 'MB';
} }
}, },


Loading…
Cancel
Save