bx-935-calc #1
|
@ -27,8 +27,8 @@ const parametric = reactive({
|
||||||
step: 0.5,
|
step: 0.5,
|
||||||
},
|
},
|
||||||
height: {
|
height: {
|
||||||
min: 675,
|
min: 20 + lamelle_height.value * 1000 * 5,
|
||||||
max: 2500,
|
max: 20 + lamelle_height.value * 1000 * 20,
|
||||||
step: lamelle_height.value * 1000,
|
step: lamelle_height.value * 1000,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -27,8 +27,10 @@ const toggleModal = () => {
|
||||||
type modalDataType = {
|
type modalDataType = {
|
||||||
phone?: string
|
phone?: string
|
||||||
name?: string
|
name?: string
|
||||||
|
email?: string
|
||||||
}
|
}
|
||||||
const modal_data = reactive<modalDataType>({
|
const modal_data = reactive<modalDataType>({
|
||||||
|
email: undefined,
|
||||||
phone: undefined,
|
phone: undefined,
|
||||||
name: undefined
|
name: undefined
|
||||||
})
|
})
|
||||||
|
@ -120,7 +122,7 @@ const total_txt = computed(() => {
|
||||||
lam_quad_regular: discountValue * lamelles_block * lam_count * lamelle_height.value * length_m,
|
lam_quad_regular: discountValue * lamelles_block * lam_count * lamelle_height.value * length_m,
|
||||||
lam_quad_extra: discountValue * lamelles_block * lam_count * lamelle_height.value * extra_m,
|
lam_quad_extra: discountValue * lamelles_block * lam_count * lamelle_height.value * extra_m,
|
||||||
}
|
}
|
||||||
console.log(prices)
|
// console.log(prices)
|
||||||
const extra = {
|
const extra = {
|
||||||
pillar: !remove_pillar.value && {
|
pillar: !remove_pillar.value && {
|
||||||
txt: `Дополнительная секция, столб, 1 шт`,
|
txt: `Дополнительная секция, столб, 1 шт`,
|
||||||
|
@ -167,10 +169,10 @@ console.log(prices)
|
||||||
<h2>Оставьте контакты для связи </h2>
|
<h2>Оставьте контакты для связи </h2>
|
||||||
<form @submit.prevent="submit">
|
<form @submit.prevent="submit">
|
||||||
<input type="text" placeholder="Ваше имя" v-model="modal_data.name" @keyup="validate" />
|
<input type="text" placeholder="Ваше имя" v-model="modal_data.name" @keyup="validate" />
|
||||||
<input type="phone" placeholder="ваш номер телефона" v-model="modal_data.phone"
|
<input type="phone" placeholder="Ваш номер телефона" v-model="modal_data.phone"
|
||||||
@keypress="validateInput" @keyup="validate" />
|
|
||||||
<input type="e-mail" placeholder="Ваш e-mail" v-model="modal_data.name"
|
|
||||||
@keypress="validateInput" @keyup="validate" />
|
@keypress="validateInput" @keyup="validate" />
|
||||||
|
<input type="e-mail" placeholder="Ваш e-mail" v-model="modal_data.email" @keypress="validateInput"
|
||||||
|
@keyup="validate" />
|
||||||
{{ total_txt && total_txt.total[0] }}
|
{{ total_txt && total_txt.total[0] }}
|
||||||
<div class="flex gap-4">
|
<div class="flex gap-4">
|
||||||
<button class="not-prose" :disabled="modal_form.disabled" type="submit">Отправить</button>
|
<button class="not-prose" :disabled="modal_form.disabled" type="submit">Отправить</button>
|
||||||
|
|
|
@ -13,7 +13,7 @@ const max_size = use_max_size()
|
||||||
|
|
||||||
const lSize = lamelle_height.value
|
const lSize = lamelle_height.value
|
||||||
const bSize = 0.0235
|
const bSize = 0.0235
|
||||||
const pillar_size = 80 * 0.001
|
const pillar_size = 104 * 0.001
|
||||||
|
|
||||||
const pillar_one_pos = ref(fence_section.value * -0.5 - 0.015)
|
const pillar_one_pos = ref(fence_section.value * -0.5 - 0.015)
|
||||||
const pillar_two_pos = ref(fence_section.value * 0.5 + pillar_size + bSize - 0.01)
|
const pillar_two_pos = ref(fence_section.value * 0.5 + pillar_size + bSize - 0.01)
|
||||||
|
|
Loading…
Reference in New Issue