diff --git a/client/src/components/ymap.vue b/client/src/components/ymap.vue
new file mode 100644
index 0000000..044e0bc
--- /dev/null
+++ b/client/src/components/ymap.vue
@@ -0,0 +1,62 @@
+
+
+
+
+
diff --git a/client/src/views/contacts.vue b/client/src/views/contacts.vue
index d95505e..94fc10d 100644
--- a/client/src/views/contacts.vue
+++ b/client/src/views/contacts.vue
@@ -29,8 +29,8 @@
-
+ -->
+
+
import AppBreadcrumbs from '@/components/app-breadcrumbs.vue';
import SupportBlock from '@/components/support-block.vue';
+import YandexMap from '@/components/ymap.vue';
import { app } from '@/services';
export default {
name: 'contacts',
- components: { SupportBlock, AppBreadcrumbs },
+ components: { SupportBlock, AppBreadcrumbs, YandexMap },
data() {
return {
formData: {},
@@ -162,7 +160,6 @@ export default {
submitHandler() {},
removeNullFields(obj) {
const result = {};
-
for (const key in obj) {
if (obj[key] !== null) {
if (typeof obj[key] === 'object' && !Array.isArray(obj[key])) {
@@ -172,19 +169,15 @@ export default {
}
}
}
-
return result;
},
-
createArrayContacts(dictionary, fields) {
const result = [];
-
for (const key in fields) {
if (dictionary[key]) {
result.push({ title: dictionary[key], data: fields[key] });
}
}
-
return result;
},
formatAddress(contacts) {