Для показа
This commit is contained in:
1 parent
70243dd690
commit
6076bffc45
3 files changed
+38
-48
No files matched your search
@@ -160,9 +160,9 @@ export default {
|
|||||||
|
|
||||||
function dayformat(days) {
|
function dayformat(days) {
|
||||||
const d = new Date(days)
|
const d = new Date(days)
|
||||||
const mess= 'сегодня'
|
let mess= 'сегодня'
|
||||||
if (d.getFullYear() != '1970'){
|
if (d.getFullYear() != '1970'){
|
||||||
mess = d.getDate()
|
mess = `${d.getDate()} число`
|
||||||
}
|
}
|
||||||
|
|
||||||
// if d.getFullYear() == '1970': {
|
// if d.getFullYear() == '1970': {
|
||||||
|
|||||||
@@ -4,52 +4,42 @@
|
|||||||
<v-row class=" flex-grow-1 d-flex h-0 overflow-auto">
|
<v-row class=" flex-grow-1 d-flex h-0 overflow-auto">
|
||||||
<v-col class="pa-0 ">
|
<v-col class="pa-0 ">
|
||||||
<v-card
|
<v-card
|
||||||
class=" rounded-0"
|
class=" rounded-0"
|
||||||
|
v-for="(x, i) in newss.result" :key=i
|
||||||
|
>
|
||||||
v-for="(x, i) in newss.result" :key=i>
|
<v-card-title class="pt-0 pb-1">
|
||||||
|
{{x.title}}
|
||||||
<v-list-item class="w-100 pl-4 py-2 pt-3">
|
</v-card-title>
|
||||||
|
<v-img
|
||||||
<template v-slot:prepend>
|
:src="`${burl}${x.link}`"
|
||||||
<v-avatar
|
height="350px"
|
||||||
|
width="96%"
|
||||||
color="loading_avatar"
|
class="mx-auto"
|
||||||
:image="checkremote( `${spravURL}${x.author.login}.jpg`)"></v-avatar>
|
cover
|
||||||
</template>
|
/>
|
||||||
|
<v-list-item class="w-100">
|
||||||
<v-list-item-title>{{x.author.fio}}</v-list-item-title>
|
<template v-slot:prepend>
|
||||||
|
<v-avatar
|
||||||
<!-- <v-list-item-subtitle>Участник</v-list-item-subtitle> -->
|
color="loading_avatar"
|
||||||
<!-- <my-helper :pretext="route.path == '/news' && 'id' in route.query"/> -->
|
:image="checkremote( `${spravURL}${x.author.login}.jpg`)"
|
||||||
</v-list-item>
|
size="25"
|
||||||
|
>
|
||||||
<v-card-title class="pt-0 pb-1">
|
</v-avatar>
|
||||||
{{x.title}}
|
<v-list-item-title class="text-caption">{{splitname(x.author)}}</v-list-item-title>
|
||||||
</v-card-title>
|
</template>
|
||||||
<v-img
|
<template v-slot:append>
|
||||||
:src="`${burl}${x.link}`"
|
<div class="justify-self-end">
|
||||||
height="350px"
|
<v-icon class="me-1" :icon="x.scores.filter(e=> e.user==accountStore.user.login && e.score == true).length>0?'mdi-thumb-up':'mdi-thumb-up-outline'" @click="toggleIncrementLike(x.id, true)"></v-icon>
|
||||||
width="96%"
|
<span class="subheading me-2">{{x.scores.filter(e=> e.score==true).length}}</span>
|
||||||
class="mx-auto"
|
<span class="me-1">·</span>
|
||||||
cover
|
<v-icon class="me-1" :icon="x.scores.filter(e=> e.user==accountStore.user.login && e.score == false).length>0?'mdi-thumb-down':'mdi-thumb-down-outline'" @click="toggleIncrementLike(x.id, false)"/>
|
||||||
/>
|
<span class="subheading me-2">{{x.scores.filter(e=> e.score==false).length}}</span>
|
||||||
|
<span class="me-1">·</span>
|
||||||
<v-list-item class="w-100">
|
<v-icon class="me-1" icon="mdi-message-text-outline" @click="openComent(x.id)"/>
|
||||||
|
<span @click="x.showComment=!x.showComment" class="pointer subheading">{{ x.comment.length }}</span>
|
||||||
<template v-slot:append>
|
</div>
|
||||||
<div class="justify-self-end">
|
</template>
|
||||||
<v-icon class="me-1" :icon="x.scores.filter(e=> e.user==accountStore.user.login && e.score == true).length>0?'mdi-thumb-up':'mdi-thumb-up-outline'" @click="toggleIncrementLike(x.id, true)"></v-icon>
|
</v-list-item>
|
||||||
<span class="subheading me-2">{{x.scores.filter(e=> e.score==true).length}}</span>
|
|
||||||
<span class="me-1">·</span>
|
|
||||||
<v-icon class="me-1" :icon="x.scores.filter(e=> e.user==accountStore.user.login && e.score == false).length>0?'mdi-thumb-down':'mdi-thumb-down-outline'" @click="toggleIncrementLike(x.id, false)"/>
|
|
||||||
<span class="subheading me-2">{{x.scores.filter(e=> e.score==false).length}}</span>
|
|
||||||
<span class="me-1">·</span>
|
|
||||||
<v-icon class="me-1" icon="mdi-message-text-outline" @click="openComent(x.id)"/>
|
|
||||||
<span @click="x.showComment=!x.showComment" class="pointer subheading">{{ x.comment.length }}</span>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
</v-list-item>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Reference in new issue
Block a user