团购支付
This commit is contained in:
@@ -98,7 +98,7 @@ import { assetsUrl } from '@/utils/assets';
|
||||
import SkuDialog from '@/components/sku-dialog.vue';
|
||||
import { goPath, showToast } from '@/utils';
|
||||
import { getGoodsDetail, getGoodsList } from '@/api/goods';
|
||||
import { GoodsBean, StockBean } from '@/api/goods/types';
|
||||
import { GoodsBean } from '@/api/goods/types';
|
||||
import useShoppingCartStore from '@/store/modules/shoppingcart';
|
||||
|
||||
const shoppingCartStore = useShoppingCartStore();
|
||||
@@ -158,8 +158,12 @@ const addShoppingCart = () => {
|
||||
};
|
||||
|
||||
const placeOrder = () => {
|
||||
showSkuDialog((e: StockBean) => {
|
||||
goPath('/pages/mall/subs/order/order-confirm');
|
||||
showSkuDialog((e: GoodsBean) => {
|
||||
const orderBean = {
|
||||
totalPrice: e.price * e.checkedStock.count,
|
||||
orderGoods: [e]
|
||||
};
|
||||
goPath(`/pages/mall/subs/order/order-confirm?orderBean=${encodeURIComponent(JSON.stringify(orderBean))}`);
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user