This commit is contained in:
parent
154c7f5ffd
commit
6883d1cfbd
@ -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>
|
||||
|
||||
@ -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
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