bx-935-calc #1

Merged
ksenia_mikhailova merged 15 commits from bx-935-calc into main 2024-07-03 14:57:08 +03:00
2 changed files with 5 additions and 4 deletions
Showing only changes of commit 08a0691a23 - Show all commits

View File

@ -104,10 +104,9 @@ watch([section_count, extra_section], () => {
<ModelParametric /> <ModelParametric />
</Suspense> </Suspense>
</TresGroup> </TresGroup>
<TresMesh receive-shadow :position-y="-3.65" name="ground"> <TresMesh receive-shadow :position-y="-3.65" name="ground">
<TresCircleGeometry :args="[50, 32]" :rotate-x="-Math.PI * 0.5" /> <TresCircleGeometry :args="[50, 32]" :rotate-x="-Math.PI * 0.5" />
<TresShadowMaterial :opacity="0.2"/> <TresShadowMaterial :opacity="0.2" />
</TresMesh> </TresMesh>
<template v-if="pointLight"> <template v-if="pointLight">

View File

@ -19,6 +19,7 @@ const total_length = useState('total_length')
const remove_pillar = useState<boolean>('remove_pillar') const remove_pillar = useState<boolean>('remove_pillar')
const toggleModal = () => { const toggleModal = () => {
modal_data.email = undefined
modal_data.phone = undefined modal_data.phone = undefined
modal_data.name = undefined modal_data.name = undefined
modal_state.show_form = false modal_state.show_form = false
@ -74,6 +75,7 @@ const submit = (e: any) => {
body: JSON.stringify({ body: JSON.stringify({
name: modal_data.name || `ref from site ${new Date}`, name: modal_data.name || `ref from site ${new Date}`,
phone: modal_data.phone, phone: modal_data.phone,
email: modal_data.email,
fence_info: [ fence_info: [
...Object.values(total_txt.value).map(el => el.join('\n')), ...Object.values(total_txt.value).map(el => el.join('\n')),
total_colors.value.join('\n') total_colors.value.join('\n')
@ -82,7 +84,7 @@ const submit = (e: any) => {
}) })
modal_data.phone = undefined modal_data.phone = undefined
modal_data.name = undefined modal_data.name = undefined
isModalOpen.value = false toggleModal()
} }
const roubleSign = new Intl.NumberFormat('ru-RU', { const roubleSign = new Intl.NumberFormat('ru-RU', {
style: 'currency', style: 'currency',