|
@@ -8,30 +8,29 @@
|
|
|
<v-card-title>
|
|
<v-card-title>
|
|
|
<v-avatar>
|
|
<v-avatar>
|
|
|
<img
|
|
<img
|
|
|
- v-if="x.user"
|
|
|
|
|
- :src="x.user.avatar_large"
|
|
|
|
|
|
|
+ :src="item.avatarUrl"
|
|
|
alt="social"
|
|
alt="social"
|
|
|
>
|
|
>
|
|
|
</v-avatar>
|
|
</v-avatar>
|
|
|
- <span class="text-body-1 font-weight-light">{{ x.user.name }}</span>
|
|
|
|
|
- <span class="text-body-1 font-weight-light">{{ formatTime(x.created_at) }}</span>
|
|
|
|
|
|
|
+ <span class="text-body-1 font-weight-light">{{ item.username }}</span>
|
|
|
|
|
+ <span class="text-body-1 font-weight-light">{{ item.createAt }}</span>
|
|
|
</v-card-title>
|
|
</v-card-title>
|
|
|
|
|
|
|
|
<v-card-text class-name="text-h5 font-weight-bold">
|
|
<v-card-text class-name="text-h5 font-weight-bold">
|
|
|
- <span v-html="formatContent(x.text)" />
|
|
|
|
|
- <v-row>
|
|
|
|
|
|
|
+ <span v-html="formatContent(item.text)" />
|
|
|
|
|
+ <v-row v-if="item.imageUrls.length !== 0">
|
|
|
<v-col
|
|
<v-col
|
|
|
- v-for="y in x.pic_urls"
|
|
|
|
|
- :key="y.thumbnail_pic"
|
|
|
|
|
|
|
+ v-for="imageUrl in item.imageUrls"
|
|
|
|
|
+ :key="imageUrl"
|
|
|
class="d-flex child-flex"
|
|
class="d-flex child-flex"
|
|
|
cols="4"
|
|
cols="4"
|
|
|
>
|
|
>
|
|
|
<v-img
|
|
<v-img
|
|
|
- :src="y.thumbnail_pic"
|
|
|
|
|
- :lazy-src="y.thumbnail_pic"
|
|
|
|
|
|
|
+ :src="imageUrl"
|
|
|
|
|
+ :lazy-src="imageUrl"
|
|
|
aspect-ratio="1"
|
|
aspect-ratio="1"
|
|
|
class="grey lighten-2"
|
|
class="grey lighten-2"
|
|
|
- @click="showImage(y.thumbnail_pic)"
|
|
|
|
|
|
|
+ @click="showImage(item.imageUrls)"
|
|
|
>
|
|
>
|
|
|
<template v-slot:placeholder>
|
|
<template v-slot:placeholder>
|
|
|
<v-row
|
|
<v-row
|
|
@@ -66,7 +65,7 @@ import { mapActions } from 'vuex'
|
|
|
export default {
|
|
export default {
|
|
|
name: 'StatusCard',
|
|
name: 'StatusCard',
|
|
|
props: {
|
|
props: {
|
|
|
- x: {
|
|
|
|
|
|
|
+ item: {
|
|
|
type: Object,
|
|
type: Object,
|
|
|
default: () => {
|
|
default: () => {
|
|
|
}
|
|
}
|
|
@@ -82,10 +81,8 @@ export default {
|
|
|
'setDetailContent'
|
|
'setDetailContent'
|
|
|
]),
|
|
]),
|
|
|
showImage(imgs) {
|
|
showImage(imgs) {
|
|
|
- const arr = []
|
|
|
|
|
- arr[0] = imgs
|
|
|
|
|
this.$viewerApi({
|
|
this.$viewerApi({
|
|
|
- images: arr,
|
|
|
|
|
|
|
+ images: imgs,
|
|
|
options: {
|
|
options: {
|
|
|
movable: false,
|
|
movable: false,
|
|
|
fullscreen: false,
|
|
fullscreen: false,
|
|
@@ -94,7 +91,7 @@ export default {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
goDetailContent() {
|
|
goDetailContent() {
|
|
|
- this.setDetailContent(this.x)
|
|
|
|
|
|
|
+ this.setDetailContent(this.item)
|
|
|
this.$router.push({ name: 'detail-content' })
|
|
this.$router.push({ name: 'detail-content' })
|
|
|
},
|
|
},
|
|
|
formatTime(time) {
|
|
formatTime(time) {
|