订单删除

This commit is contained in:
wwz
2025-03-31 14:08:34 +08:00
parent 10a47abe13
commit e352acbdd0
7 changed files with 521 additions and 66 deletions

View File

@@ -65,9 +65,10 @@ export const useCartStore = defineStore('cart', () => {
}, 0);
cart = cart.toFixed(2)
console.log(parseFloat(cart))
// 向上取整并保留两位小数
// let result = roundUpToTwoDecimals(cart, 'upward')
return cart;
return parseFloat(cart);
});
// 计算商品卷所选择的总价格