макет для галереи

This commit is contained in:
iriska-gri committed 2023-12-07 10:14:50 +03:00
1 parent 5520169b0d
commit e147d4b5e5
1 file changed
+79 -33
+79 -33
View File
@@ -240,10 +240,80 @@
</v-col>
</v-row>
</v-col>
<v-col class="flex-column d-flex">
<v-row v-if="gallery">
<v-col class="d-flex flex-column ">
<v-card
<v-col class="flex-column d-flex overflow-auto overflow-x-hidden " style="height:94vh"
>
<v-row class="d-flex flex-column ma-0"
v-if="gallery"
>
<v-col class="d-flex flex-column bg-red">
<div class="flex-column d-flex"
v-for="x in 2"
>
<v-row style="height:150px">
<v-col class="bg-yellow">1</v-col>
<v-col class="bg-grey">2</v-col>
<v-col class="bg-blue">3</v-col>
<v-col class="bg-black">4</v-col>
</v-row>
<v-row style="height:350px">
<v-col class="bg-black d-flex flex-column">
<v-row>
<v-col>
5
</v-col>
</v-row>
<v-row>
<v-col class="bg-blue">
6
</v-col>
</v-row>
</v-col>
<v-col class="bg-yellow">7</v-col>
<v-col class="bg-grey d-flex flex-column">
<v-row>
<v-col>
8
</v-col>
</v-row>
<v-row>
<v-col class="bg-blue">
9
</v-col>
</v-row>
</v-col>
</v-row>
<v-row style="height:200px">
<v-col lg=5 class="bg-grey">10</v-col>
<v-col class="bg-yellow">11</v-col>
<v-col class="bg-blue">12</v-col>
<v-col>13</v-col>
</v-row>
<v-row style="height:250px">
<v-col lg=2>14</v-col>
<v-col class="bg-blue flex-column d-flex">
<v-row>
<v-col class="bg-green">15</v-col>
</v-row>
<v-row>
<v-col>16</v-col>
</v-row>
</v-col>
<v-col lg=3>17</v-col>
<v-col class="bg-black flex-column d-flex">
<v-row>
<v-col class="bg-green ">18</v-col>
</v-row>
<v-row>
<v-col>19</v-col>
</v-row>
</v-col>
</v-row>
</div>
<!-- <v-card
class="h-100 flex-column d-flex"
@@ -301,37 +371,13 @@
</v-col>
</v-row>
<!-- <v-img
class="w-100 h-100 pointer"
:src="`${burl}${n.img}`"
@click="openImg(n.id)"
/>
<div class="font-weight-light text-grey">
For the perfect meal
</div> -->
</v-card-text>
</v-card>
<!-- <v-row class="flex-grow-1 align-self-center d-flex placeIt">
<v-col class="pa-0">
<v-btn
density="compact"
variant="text"
:color="heartIco()?'red':'black'"
:icon= "heartIco()?'mdi-heart':'mdi-heart-outline'"
@click = toggleLike(n.id)
/>
</v-col>
<v-col class="pa-0 text-overline">
{{n.likes.length}}
</v-col>
</v-row> -->
</v-col>
</v-row>
@@ -342,9 +388,11 @@
</v-card-text>
</v-col>
</v-row>
</v-card>
</v-card> -->
</v-col>
</v-row>
<v-row v-else>
<v-col class="">
<v-card
@@ -742,9 +790,7 @@ export default {
}
const toggleLikeAll = (idimage) => {
console.log(idimage, 'idimage');
console.log(newss.value.result[0].gallery.filter(e=>e.id ==idimage).likes,'newss.value.result[0].gallery');
axiosApiInstance.post(`api/navigation/gallery/`, {image: idimage}).then(result => {
newss.value.result[0].gallery.filter(e=>e.id ==idimage)[0].likes = result.data