This commit is contained in:
2024-04-14 20:18:44 +08:00
parent 13fd77f13b
commit 877469ab43
12 changed files with 98 additions and 22 deletions

View File

@@ -161,8 +161,9 @@ const addShoppingCart = () => {
const placeOrder = () => {
showSkuDialog((e: GoodsBean) => {
console.log(e);
const orderBean = {
totalPrice: e.price * e.checkedStock.count,
totalPrice: (e.consumePrice * e.checkedStock.count).toFixed(2),
orderGoods: [e]
};
goPath(`/pages/mall/subs/order/order-confirm?orderBean=${encodeURIComponent(JSON.stringify(orderBean))}`);