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