feat [P-01]: дефолтные картинки в новости, исправлено обрезание картинок в полной новости
This commit is contained in:
1 parent
0588a55b32
commit
de04c4d7d1
2 files changed
+9
-5
No files matched your search
@@ -11,7 +11,7 @@
|
|||||||
<v-row class="flex-grow-0">
|
<v-row class="flex-grow-0">
|
||||||
<v-col class="d-flex flex-column ">
|
<v-col class="d-flex flex-column ">
|
||||||
<v-img
|
<v-img
|
||||||
:src="`${burl}${news.link}`"
|
:src="news.link ? `${burl}${news.link}` : defaultImage"
|
||||||
height="170px"
|
height="170px"
|
||||||
width="92%"
|
width="92%"
|
||||||
class="mx-auto"
|
class="mx-auto"
|
||||||
@@ -125,6 +125,7 @@ import { axiosApiInstance } from '@/utils/axios-api'
|
|||||||
import {splitname} from '@/utils/universal_functions'
|
import {splitname} from '@/utils/universal_functions'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
import icoUser from '@/components/UI/fiousercard/icoUser.vue'
|
import icoUser from '@/components/UI/fiousercard/icoUser.vue'
|
||||||
|
import defaultImage from '@/assets/emblem.png'
|
||||||
|
|
||||||
const accountStore = useAccountStore()
|
const accountStore = useAccountStore()
|
||||||
|
|
||||||
@@ -179,7 +180,8 @@ export default {
|
|||||||
splitname,
|
splitname,
|
||||||
toggleIncrementLike,
|
toggleIncrementLike,
|
||||||
openOneImg,
|
openOneImg,
|
||||||
formatDate
|
formatDate,
|
||||||
|
defaultImage
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<v-col class="flex-column d-flex">
|
<v-col class="flex-column d-flex">
|
||||||
<v-row class="flex-grow-0">
|
<v-row class="flex-grow-0">
|
||||||
<v-col class="pb-0 pr-0">
|
<v-col class="pb-0 pr-0">
|
||||||
<v-card height="350px" class="rounded-b-0">
|
<v-card class="rounded-b-0">
|
||||||
<v-card-title class="pt-0 pb-1 flex-column d-flex">
|
<v-card-title class="pt-0 pb-1 flex-column d-flex">
|
||||||
<v-row>
|
<v-row>
|
||||||
<v-col lg="9" class="pt-4">
|
<v-col lg="9" class="pt-4">
|
||||||
@@ -58,11 +58,11 @@
|
|||||||
|
|
||||||
<!-- -->
|
<!-- -->
|
||||||
<v-img
|
<v-img
|
||||||
:src="`${burl}${newsFull.link}`"
|
:src="newsFull.link ? `${burl}${newsFull.link}` : defaultImage"
|
||||||
height="450px"
|
height="450px"
|
||||||
width="96%"
|
width="96%"
|
||||||
class="mx-auto"
|
class="mx-auto"
|
||||||
cover
|
contain
|
||||||
@click="openOneImg(newsFull.link)"
|
@click="openOneImg(newsFull.link)"
|
||||||
/>
|
/>
|
||||||
</v-card>
|
</v-card>
|
||||||
@@ -446,6 +446,7 @@ import { spravURL } from "@/utils/axios-api";
|
|||||||
import { useAccountStore } from "@/store/AccountStore";
|
import { useAccountStore } from "@/store/AccountStore";
|
||||||
import { format } from "date-fns";
|
import { format } from "date-fns";
|
||||||
import icoUser from "@/components/UI/fiousercard/icoUser.vue";
|
import icoUser from "@/components/UI/fiousercard/icoUser.vue";
|
||||||
|
import defaultImage from '@/assets/emblem.png';
|
||||||
|
|
||||||
const accountStore = useAccountStore();
|
const accountStore = useAccountStore();
|
||||||
|
|
||||||
@@ -586,6 +587,7 @@ export default {
|
|||||||
spravURL,
|
spravURL,
|
||||||
splitname,
|
splitname,
|
||||||
accountStore,
|
accountStore,
|
||||||
|
defaultImage,
|
||||||
formatText,
|
formatText,
|
||||||
dateformat,
|
dateformat,
|
||||||
textcomment,
|
textcomment,
|
||||||
|
|||||||
Reference in new issue
Block a user