Merge branch 'bx-1047-main' into dev
Deploy / build_and_push_images (push) Successful in 1m32s Details
Deploy / deploy_to_server_dev (push) Successful in 6m22s Details

This commit is contained in:
Kseninia Mikhaylova 2024-07-24 13:31:59 +03:00
commit 47199cf48e
6 changed files with 15 additions and 12 deletions

View File

@ -23,7 +23,6 @@ const cameraStat = reactive({
})
const pointLight = ref()
const pointLight2 = ref()
const loadAll = async () => {
const { scene: light } = await useGLTF('/models_light/zabor_so_svetom.glb')
pointLight.value = light.children[2]
@ -35,7 +34,7 @@ const loadAll = async () => {
pointLight.value.shadow.mapSize.x = 512 * j
pointLight.value.shadow.mapSize.y = 512 * j
const k = 5
const k = 3
pointLight.value.position.x = pointLight.value.position.x * k
pointLight.value.position.y = pointLight.value.position.y * k
pointLight.value.position.z = pointLight.value.position.z * k

View File

@ -136,11 +136,6 @@ watch(() => form_state, changeParametres, { deep: true })
const isModalOpen = useState('modal_open', () => false)
const toggleModal = () => {
isModalOpen.value = !isModalOpen.value
if (isModalOpen.value == true) {
document.body.classList.add('modal-opened')
} else {
document.body.classList.remove('modal-opened')
}
}
const goal = (target: string, params: object) => {
const nuxtApp = useNuxtApp()

View File

@ -63,7 +63,7 @@ onMounted(() => {
Загрузка 3D модели
</div>
</template>
<TresCanvas height="600">
<TresCanvas height="600" preset="realistic">
<TresPerspectiveCamera :position="[-7, 2, 4]" ref="camera" />
<OrbitControls v-bind="controlsState" ref="controls" make-default />
<Suspense>

View File

@ -36,7 +36,7 @@ const modal_data = reactive<modalDataType>({
email: undefined,
phone: undefined,
name: undefined,
policy: true
policy: false
})
const modal_form = reactive({
@ -75,6 +75,13 @@ const validate = () => {
}
}
watch(modal_data, validate)
watch(isModalOpen, () => {
if (isModalOpen.value == true) {
document.body.classList.add('modal-opened')
} else {
document.body.classList.remove('modal-opened')
}
})
const submit = async (e: any) => {
goal('submit_form', modal_data)
@ -216,7 +223,8 @@ const policy = () => {
@keypress="validateInput" />
<div class="flex gap-4 justify-between items-center">
<input type="checkbox" id="policy" v-model="modal_data.policy" />
<label for="policy">Нажимая кнопку "Отправить" Вы также даете согласие на <NuxtLink to="policy" @click="policy">обработку персональных
<label for="policy">Нажимая кнопку "Отправить" Вы также даете согласие на <NuxtLink to="policy"
@click="policy">обработку персональных
данных</NuxtLink>.
</label>
</div>

View File

@ -53,6 +53,7 @@ const instanced_lamelle_material = props.models.lamelle.children[0].material
const instanced_lamelle_count = 24
const instanced_v = [instanced_lamelle_geometry, instanced_lamelle_material, instanced_lamelle_count]
watch([instanced_lamelle, fence_section, extra_section, lamelles_count, extra], () => {
// console.log(props.index, instanced_v, instanced_lamelle.value)
for (let i = 0; i < instanced_lamelle_count; i++) {
if (instanced_lamelle.value) {
const scale_x = (((extra.value as number) || fence_section.value) * 10)

View File

@ -16,5 +16,5 @@ export const use_section_count = () => useState('section_count', () => n)
export const use_extra_section = () => useState('extra_section', () => 0)
export const use_total_length = () => useState('total_length', () => (((min + 104) * n) + 104) * 0.001)
export const use_min_length = () => useState('min_length', () => 700)
export const use_max_size = () => useState<number>('max_size', () => 40)
export const use_max_size = () => useState<number>('max_size', () => 20)
export const use_explosion_state = () => useState<boolean>('explosion_state', () => false)