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: {