2 уровень

This commit is contained in:
iriska-gri committed 2023-12-07 14:23:22 +03:00
1 parent 5f322e1ab7
commit 4d22bd686b
5 files changed
+39 -24

No files matched your search

+39 -24
View File
@@ -260,16 +260,17 @@
<!-- 1.1 -->
<v-col
class=" flex-column d-flex pa-0" v-for="e in 4" :key=e
class=" flex-column d-flex pa-1" v-for="e in 4" :key=e
>
<div v-if="((e-1)+(n-1)*19)<x.gallery.length"
:class="x.gallery[(e-1)+(n-1)*19]['bg']"
class='h-100 w-100 pa-3 flex-column d-flex'
class='h-100 w-100 pa-3 px-1 flex-column d-flex'
>
<v-row >
<v-col class="pa-1 pb-0 ma-auto">
<v-img
aspect-ratio ="2"
class=" pointer"
:src="`${burl}${x.gallery[(e-1)+(n-1)*19].img}`"
@click="openImg(x.gallery[(e-1)+(n-1)*19].id)"
@@ -277,7 +278,7 @@
</v-col>
</v-row>
<v-row class="flex-grow-0 align-self-center ">
<v-col class="pa-0 flex-grow-0">
<v-col class="pa-0 pb-1 flex-grow-0">
<v-btn
density="compact"
variant="text"
@@ -299,16 +300,17 @@
<v-row style="height:350px">
<!-- 5 - 6 -->
<v-col class="flex-column d-flex pa-0">
<v-col class="flex-column d-flex pa-1">
<div v-if="((5)+(n-1)*19)<x.gallery.length"
:class="x.gallery[(5)+(n-1)*19]['bg']"
class='h-100 w-100 pa-3 flex-column d-flex'
class='h-100 w-100 pa-3 px-1 flex-column d-flex'
>
<v-row
>
<v-col class="pa-1 pb-0 ma-auto">
<v-img
<v-col class="pa-1 ma-auto">
<v-img
aspect-ratio ="2"
class=" pointer"
:src="`${burl}${x.gallery[(5)+(n-1)*19].img}`"
@click="openImg(x.gallery[(5)+(n-1)*19].id)"
@@ -316,7 +318,7 @@
</v-col>
</v-row>
<v-row class="flex-grow-0 align-self-center ">
<v-col class="pa-0 flex-grow-0">
<v-col class="pa-0 pb-1 flex-grow-0">
<v-btn
density="compact"
variant="text"
@@ -334,13 +336,14 @@
<div v-if="((6)+(n-1)*19)<x.gallery.length"
:class="x.gallery[(6)+(n-1)*19]['bg']"
class='h-100 w-100 pa-3 flex-column d-flex'
class='h-100 w-100 pa-3 px-1 mt-2 flex-column d-flex'
>
<v-row
>
<v-col class="pa-1 pb-0 ma-auto">
<v-img
aspect-ratio ="2"
class=" pointer"
:src="`${burl}${x.gallery[(6)+(n-1)*19].img}`"
@click="openImg(x.gallery[(6)+(n-1)*19].id)"
@@ -348,7 +351,7 @@
</v-col>
</v-row>
<v-row class="flex-grow-0 align-self-center ">
<v-col class="pa-0 flex-grow-0">
<v-col class="pa-0 pb-1 flex-grow-0">
<v-btn
density="compact"
variant="text"
@@ -367,14 +370,15 @@
<!-- 7 -->
<v-col class=" flex-column d-flex pa-0">
<v-col class=" flex-column d-flex pa-1 ">
<div v-if="((7)+(n-1)*19)<x.gallery.length"
:class="x.gallery[(7)+(n-1)*19]['bg']"
class='h-100 w-100 pa-3 flex-column d-flex'
class='h-100 w-100 pa-3 px-1 flex-column d-flex'
>
<v-row >
<v-col class="pa-1 pb-0 ma-auto">
<v-img
aspect-ratio ="2"
class=" pointer"
:src="`${burl}${x.gallery[(7)+(n-1)*19].img}`"
@click="openImg(x.gallery[(7)+(n-1)*19].id)"
@@ -400,17 +404,18 @@
</v-col>
<!-- 8-9 -->
<v-col class="flex-column d-flex pa-0">
<v-col class="flex-column d-flex pa-1 ">
<div v-if="((8)+(n-1)*19)<x.gallery.length"
:class="x.gallery[(8)+(n-1)*19]['bg']"
class='h-100 w-100 pa-3 flex-column d-flex'
class='h-100 w-100 pa-3 px-1 flex-column d-flex'
>
<v-row
class="d-flex"
>
<v-col class="pa-1 pb-0 ma-auto">
<v-img
class=" pointer"
<v-img
aspect-ratio ="2"
class=" pointer d-flex"
:src="`${burl}${x.gallery[(8)+(n-1)*19].img}`"
@click="openImg(x.gallery[(8)+(n-1)*19].id)"
/>
@@ -435,14 +440,15 @@
<div v-if="((9)+(n-1)*19)<x.gallery.length"
:class="x.gallery[(9)+(n-1)*19]['bg']"
class='h-100 w-100 pa-3 flex-column d-flex'
class='h-100 w-100 pa-3 px-1 mt-2 flex-column d-flex'
>
<v-row
>
<v-col class="pa-1 pb-0 ma-auto">
<v-img
class=" pointer"
<v-col class="pa-1 pb-0 ma-auto d-flex flex-column">
<v-img
aspect-ratio ="2"
class=" pointer d-flex"
:src="`${burl}${x.gallery[(9)+(n-1)*19].img}`"
@click="openImg(x.gallery[(9)+(n-1)*19].id)"
/>
@@ -466,13 +472,22 @@
</div>
</v-col>
</v-row>
<!-- 10-13 -->
<v-row style="height:200px">
<!-- 10 -->
<v-col lg=5 class="bg-grey">10</v-col>
<!-- 11 -->
<v-col class="bg-yellow">11</v-col>
<!-- 12 -->
<v-col class="bg-blue">12</v-col>
<!-- 13 -->
<v-col>13</v-col>
</v-row>
<!-- 14-19 -->
<v-row style="height:250px">
<v-col lg=2>14</v-col>
<v-col class="bg-blue flex-column d-flex">
@@ -821,8 +836,8 @@ export default {
const page = ref(1)
const selecnews = ref(2)
const route = useRoute()
const colors = ['bg-pink-lighten-5','bg-red-lighten-5', 'bg-purple-lighten-5',
'bg-deep-purple-lighten-5','bg-indigo-lighten-5', 'bg-blue-lighten-5'
const colors = ['bg-blue-grey-lighten-5','bg-blue-grey-lighten-4', 'bg-brown-lighten-5',
'bg-brown-lighten-4', 'bg-grey-lighten-4', 'grey-lighten-5'
]
let str = `api/navigation/news/?name=${route.path}&page=${page.value-1}&selected=${selecnews.value}`