This commit is contained in:
parent
83a8306ea4
commit
acebf1a3ac
|
@ -97,8 +97,8 @@
|
||||||
|
|
||||||
const subtotal = computed(() => {
|
const subtotal = computed(() => {
|
||||||
let num = +datas.value.cart_num || 0;
|
let num = +datas.value.cart_num || 0;
|
||||||
let sell = +datas.value.sell || datas.value.price;
|
let sell = +datas.value.sell || +datas.value.price;
|
||||||
return Math.ceil(num * sell * 100) / 100
|
return Number(num * sell * 100 / 100).toFixed(2)
|
||||||
})
|
})
|
||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
|
|
Loading…
Reference in New Issue