Вместо input phone, на странице about, теперь ввод email
This commit is contained in:
parent
889c5093f6
commit
e07d48c843
|
|
@ -116,12 +116,11 @@ export default {
|
||||||
outerClass: 'field--required',
|
outerClass: 'field--required',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
$formkit: 'maska',
|
$formkit: 'text',
|
||||||
name: 'phone',
|
name: 'email',
|
||||||
maska: { mask: '+7 (###) ###-##-##' },
|
label: 'Электронная почта',
|
||||||
label: 'Контактный телефон',
|
placeholder: 'example@example.com',
|
||||||
placeholder: '+7 (###) ###-##-##',
|
validation: 'required|email',
|
||||||
validation: 'required',
|
|
||||||
outerClass: 'field--required',
|
outerClass: 'field--required',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -142,17 +141,6 @@ export default {
|
||||||
return this.contacts.email;
|
return this.contacts.email;
|
||||||
},
|
},
|
||||||
address() {
|
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;
|
if (!this.contacts.city) false;
|
||||||
return `г. ${this.contacts.city}, ул. ${this.contacts.street}, д. ${this.contacts.house}`;
|
return `г. ${this.contacts.city}, ул. ${this.contacts.street}, д. ${this.contacts.house}`;
|
||||||
},
|
},
|
||||||
|
|
@ -161,11 +149,9 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
console.log(this.contacts?.phone);
|
|
||||||
app.getSupportInfo().then((responce) => {
|
app.getSupportInfo().then((responce) => {
|
||||||
console.log(responce);
|
console.log([...responce]);
|
||||||
this.contacts = { ...responce };
|
this.contacts = { ...responce };
|
||||||
console.log(this.contacts);
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue