From e07d48c84389e781a3bef5b02a9ef6139a890151 Mon Sep 17 00:00:00 2001 From: Norbaev Date: Thu, 4 Jul 2024 15:33:16 +0500 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=BC=D0=B5=D1=81=D1=82=D0=BE=20input=20?= =?UTF-8?q?phone,=20=D0=BD=D0=B0=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D1=86=D0=B5=20about,=20=D1=82=D0=B5=D0=BF=D0=B5=D1=80=D1=8C=20?= =?UTF-8?q?=D0=B2=D0=B2=D0=BE=D0=B4=20email?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/views/contacts.vue | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/client/src/views/contacts.vue b/client/src/views/contacts.vue index ad86588..5296bd5 100644 --- a/client/src/views/contacts.vue +++ b/client/src/views/contacts.vue @@ -116,12 +116,11 @@ export default { outerClass: 'field--required', }, { - $formkit: 'maska', - name: 'phone', - maska: { mask: '+7 (###) ###-##-##' }, - label: 'Контактный телефон', - placeholder: '+7 (###) ###-##-##', - validation: 'required', + $formkit: 'text', + name: 'email', + label: 'Электронная почта', + placeholder: 'example@example.com', + validation: 'required|email', outerClass: 'field--required', }, { @@ -142,17 +141,6 @@ export default { return this.contacts.email; }, address() { - // const adressParts = []; - // if (this.contacts.city) { - // adressParts.push(`г. ${this.contacts.city}`); - // } - // if (this.contacts.street) { - // adressParts.push(`ул. ${this.contacts.street}`); - // } - // if (this.contacts.house) { - // adressParts.push(`д. ${this.contacts.house}`); - // } - // return adressParts.join(', '); if (!this.contacts.city) false; return `г. ${this.contacts.city}, ул. ${this.contacts.street}, д. ${this.contacts.house}`; }, @@ -161,11 +149,9 @@ export default { }, }, created() { - console.log(this.contacts?.phone); app.getSupportInfo().then((responce) => { - console.log(responce); + console.log([...responce]); this.contacts = { ...responce }; - console.log(this.contacts); }); }, methods: {