From 3234accae258a623c7fbf30cc3b0603a6302c4aa Mon Sep 17 00:00:00 2001 From: iriska-gri <79623434+iriska-gri@users.noreply.github.com> Date: Fri, 8 Dec 2023 09:38:23 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=BE=D0=B2=D0=B0=D1=8F=20=D0=B3=D0=B0?= =?UTF-8?q?=D0=BB=D0=B5=D1=80=D0=B5=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/front/src/components/news-list-news.vue | 84 +++++++++++---------- 1 file changed, 43 insertions(+), 41 deletions(-) diff --git a/src/front/src/components/news-list-news.vue b/src/front/src/components/news-list-news.vue index 505e4d249..48fd04c74 100644 --- a/src/front/src/components/news-list-news.vue +++ b/src/front/src/components/news-list-news.vue @@ -241,7 +241,7 @@ - @@ -256,8 +256,8 @@ v-for="n in Math.ceil(x.gallery.length/19)" :key=n > - - + + +
- +
- +
- + --> - + - + - -
- - + +
+ + - + - {{x.gallery[(11-1)+(n-1)*19].likes.length}} + {{x.gallery[(e-1)+(n-1)*19].likes.length}}
- + - +
- +
- - - @@ -1143,8 +1144,7 @@ export default { const page = ref(1) const selecnews = ref(2) const route = useRoute() - const colors = ['bg-blue-grey-lighten-5' - ] + const colors = [] let str = `api/navigation/news/?name=${route.path}&page=${page.value-1}&selected=${selecnews.value}` @@ -1162,8 +1162,10 @@ export default { newss.value= result.data if (newss.value.result[0].gallery.length > 0) { - newss.value.result[0].gallery.forEach(e=> - e.bg=colors[Math.floor(Math.random() * colors.length)] + newss.value.result[0].gallery.forEach(e=> + e.bg=colors[Math.floor(Math.random() * colors.length) + + ] ) gallery.value = true