This commit is contained in:
weipengfei 2024-06-19 19:09:26 +08:00
parent 83a8306ea4
commit acebf1a3ac
1 changed files with 2 additions and 2 deletions

View File

@ -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({