1
0
mirror of https://github.com/robonen/metr.git synced 2026-03-20 10:54:41 +00:00

Catalog filters

This commit is contained in:
2022-06-01 20:47:42 +07:00
parent e41ff264c1
commit bac23e1df8
3 changed files with 80 additions and 20 deletions

View File

@@ -58,7 +58,7 @@
<h4>Адрес: {{ offer.location }}</h4>
<h4>Кол-во комнат: {{ offer.rooms }}</h4>
<h4>Кол-во комнат: {{ roomType }}</h4>
<h4>Общая площадь: {{ offer.space }} м²</h4>
</div>
@@ -127,6 +127,14 @@ export default {
'House': 'Дом',
'Land': 'Участок',
}[this.offer.type];
},
roomType() {
return {
'Studio': 'Студия',
'Room1': '1 комната',
'Room2': '2 комнаты',
'Room3More': '3 комнаты и больше',
}[this.offer.rooms]
}
},
async mounted() {