Вместо input phone, на странице about, теперь ввод email

This commit is contained in:
Norbaev 2024-07-04 15:33:16 +05:00
parent 889c5093f6
commit e07d48c843
1 changed files with 6 additions and 20 deletions

View File

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