создаю телегу товаров
All checks were successful
Deploy / build (push) Successful in 54s

This commit is contained in:
alsaze 2025-10-09 18:46:32 +03:00
parent 154c7f5ffd
commit 6883d1cfbd
5 changed files with 34 additions and 3 deletions

View File

@ -49,9 +49,10 @@ const { currentVariantImages } = useCurrentProduct()
grid-template-columns: repeat(2, 1fr);
&__model {
position: absolute;
right: 10px;
top: 10px;
position: fixed;
top: calc(10px + 54px);
right: calc(10px + 350px);
z-index: 1000;
}
}
</style>

View File

@ -27,10 +27,13 @@ import type { IBspb } from '~/server/shared/types/bspb'
import { usePostOrdersCreate } from '~/api/mutations/wp/usePostOrdersCreate'
import { useCart } from '~/composables'
const router = useRouter()
const { cart } = useCart()
const { mutateAsync } = usePostOrdersCreate()
const createOrder = async () => {
router.push(`/order/delivery`)
await mutateAsync({ line_items: cart.value.line_items })
const { data } = await useFetch<IBspb>('/api/bspb')
@ -59,6 +62,7 @@ const createOrder = async () => {
&__items {
display: flex;
flex-direction: column;
gap: 16px;
}
&__create-order {

8
pages/order/contacts.vue Normal file
View File

@ -0,0 +1,8 @@
<template>
</template>
<script lang="ts" setup>
</script>
<style lang="scss"></style>

8
pages/order/delivery.vue Normal file
View File

@ -0,0 +1,8 @@
<template>
</template>
<script lang="ts" setup>
</script>
<style lang="scss"></style>

10
pages/order/summary.vue Normal file
View File

@ -0,0 +1,10 @@
<template>
</template>
<script setup lang="ts">
</script>
<style scoped lang="scss">
</style>