Files
PORTAL_COD2/src/front/src/components/about_inspection/contacts/ContactInfo.vue
T

105 lines
4.7 KiB
Vue

<template>
<v-row lg="12" class="mt-10 ml-13">
<v-col lg="5" no-gutters class="d-flex justify-end align-start">
<v-card :width="640" :height="600" :elevation="5">
<div style="width:640px;height:600px; ">
<l-map :zoom="13" :min-zoom="13" :center="[55.83451, 37.40848]">
<l-tile-layer :url="`${baseURL}media/Tiles/{z}/{x}/{y}.png`"></l-tile-layer>
<l-marker :lat-lng="[55.83451, 37.40848]" :icon="icon_cod"> </l-marker>
<l-marker :lat-lng="[55.83309, 37.39933]" :icon="icon_mcd"> </l-marker>
<l-marker :lat-lng="[55.83463, 37.38335]" :icon="icon_metro"> </l-marker>
<l-marker :lat-lng="[55.83213, 37.38247]" :icon="icon_mcd"> </l-marker>
<l-marker :lat-lng="[55.82741, 37.43715]" :icon="icon_metro"> </l-marker>
<l-marker :lat-lng="[55.82705, 37.4411]" :icon="icon_mcd"> </l-marker>
<l-marker :lat-lng="[55.8496, 37.43925]" :icon="icon_metro"> </l-marker>
<l-marker :lat-lng="[55.8252, 37.3853]" :icon="icon_metro"> </l-marker>
</l-map>
</div>
</v-card>
</v-col>
<v-col lg="6" no-gutters class="d-flex flex-column ml-16">
<v-row lg="12" class="pt-3">
<v-card :elevation="5">
<v-card-title class="text-h6 d-flex justify-center bg-teal-lighten-5 text-teal-darken-4">
Способ проезда
</v-card-title>
<v-card-text class="pt-15">
<v-list>
<v-list-item class="text-subtitle-2" v-for="(address_path, i) in address_pathes" :key="i">
{{ address_path.path }}
</v-list-item>
</v-list>
</v-card-text>
</v-card>
</v-row>
<v-row lg="12">
<v-card :elevation="5" class="w-100 mb-2 mt-2">
<v-card-title class="text-h6 d-flex justify-center bg-teal-lighten-5 text-teal-darken-4">
Адрес
</v-card-title>
<v-card-text class="text-h6 d-flex justify-center pt-10">
{{ address.building }}
</v-card-text>
<v-card-text class="text-h6 d-flex justify-center">
<p>{{ address.phone }}</p>
</v-card-text>
</v-card>
</v-row>
</v-col>
</v-row>
</template>
<script>
import { baseURL } from '@/utils/axios-api'
import "leaflet/dist/leaflet.css";
import { LMap, LTileLayer, LMarker } from "@vue-leaflet/vue-leaflet";
import { L, icon } from "leaflet"
export default {
components: {
LMap,
LTileLayer,
LMarker,
L,
icon
},
setup() {
return {
icon_cod: icon({
iconUrl: `${baseURL}media/map_icons/fns.png`,
iconSize: [30, 30],
iconAnchor: [16, 40]
}),
icon_mcd: icon({
iconUrl: `${baseURL}media/map_icons/mcd_d2.png`,
iconSize: [32, 18],
iconAnchor: [10, 20]
}),
icon_metro: icon({
iconUrl: `${baseURL}media/map_icons/mos_metro.png`,
iconSize: [30, 25],
iconAnchor: [10, 20]
}),
address: {
"building": "125373, Москва, Походный проезд, двл.3, стр 1",
"phone": "Телефон: 8(495) 198-53 - 12"
},
address_pathes: [
{ "path": "От станции метро «Волоколамская», 837 автобусом до остановки «Таксомоторный парк», или маршрутным такси № 441" },
{ "path": "От станции метро «Сходненская», 1-й вагон из центра, маршрутное такси № 368, последний вагон из центра, автобусы № 678, № 199" },
{ "path": "От станции метро «Тушинская», последний вагон из центра, автобусы № 2, № 266 до остановки «пл. Трикотажная», автобусы № 88, №177 до остановки «17 Таксомоторный парк»" }
],
baseURL,
}
}
}
</script>
<style>
.leaflet-control-attribution {
display: none;
}
</style>