This commit is contained in:
parent
154c7f5ffd
commit
6883d1cfbd
@ -49,9 +49,10 @@ const { currentVariantImages } = useCurrentProduct()
|
|||||||
grid-template-columns: repeat(2, 1fr);
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
|
||||||
&__model {
|
&__model {
|
||||||
position: absolute;
|
position: fixed;
|
||||||
right: 10px;
|
top: calc(10px + 54px);
|
||||||
top: 10px;
|
right: calc(10px + 350px);
|
||||||
|
z-index: 1000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -27,10 +27,13 @@ import type { IBspb } from '~/server/shared/types/bspb'
|
|||||||
import { usePostOrdersCreate } from '~/api/mutations/wp/usePostOrdersCreate'
|
import { usePostOrdersCreate } from '~/api/mutations/wp/usePostOrdersCreate'
|
||||||
import { useCart } from '~/composables'
|
import { useCart } from '~/composables'
|
||||||
|
|
||||||
|
const router = useRouter()
|
||||||
const { cart } = useCart()
|
const { cart } = useCart()
|
||||||
const { mutateAsync } = usePostOrdersCreate()
|
const { mutateAsync } = usePostOrdersCreate()
|
||||||
|
|
||||||
const createOrder = async () => {
|
const createOrder = async () => {
|
||||||
|
router.push(`/order/delivery`)
|
||||||
|
|
||||||
await mutateAsync({ line_items: cart.value.line_items })
|
await mutateAsync({ line_items: cart.value.line_items })
|
||||||
|
|
||||||
const { data } = await useFetch<IBspb>('/api/bspb')
|
const { data } = await useFetch<IBspb>('/api/bspb')
|
||||||
@ -59,6 +62,7 @@ const createOrder = async () => {
|
|||||||
&__items {
|
&__items {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
gap: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__create-order {
|
&__create-order {
|
||||||
|
|||||||
8
pages/order/contacts.vue
Normal file
8
pages/order/contacts.vue
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<template>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" setup>
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss"></style>
|
||||||
8
pages/order/delivery.vue
Normal file
8
pages/order/delivery.vue
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<template>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" setup>
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss"></style>
|
||||||
10
pages/order/summary.vue
Normal file
10
pages/order/summary.vue
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<template>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
|
||||||
|
</style>
|
||||||
Loading…
x
Reference in New Issue
Block a user