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-col class="d-flex flex-column ">
|
||||
<v-img
|
||||
:src="`${burl}${news.link}`"
|
||||
:src="news.link ? `${burl}${news.link}` : defaultImage"
|
||||
height="170px"
|
||||
width="92%"
|
||||
class="mx-auto"
|
||||
@@ -125,6 +125,7 @@ import { axiosApiInstance } from '@/utils/axios-api'
|
||||
import {splitname} from '@/utils/universal_functions'
|
||||
import moment from 'moment'
|
||||
import icoUser from '@/components/UI/fiousercard/icoUser.vue'
|
||||
import defaultImage from '@/assets/emblem.png'
|
||||
|
||||
const accountStore = useAccountStore()
|
||||
|
||||
@@ -179,7 +180,8 @@ export default {
|
||||
splitname,
|
||||
toggleIncrementLike,
|
||||
openOneImg,
|
||||
formatDate
|
||||
formatDate,
|
||||
defaultImage
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<v-col class="flex-column d-flex">
|
||||
<v-row class="flex-grow-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-row>
|
||||
<v-col lg="9" class="pt-4">
|
||||
@@ -58,11 +58,11 @@
|
||||
|
||||
<!-- -->
|
||||
<v-img
|
||||
:src="`${burl}${newsFull.link}`"
|
||||
:src="newsFull.link ? `${burl}${newsFull.link}` : defaultImage"
|
||||
height="450px"
|
||||
width="96%"
|
||||
class="mx-auto"
|
||||
cover
|
||||
contain
|
||||
@click="openOneImg(newsFull.link)"
|
||||
/>
|
||||
</v-card>
|
||||
@@ -446,6 +446,7 @@ import { spravURL } from "@/utils/axios-api";
|
||||
import { useAccountStore } from "@/store/AccountStore";
|
||||
import { format } from "date-fns";
|
||||
import icoUser from "@/components/UI/fiousercard/icoUser.vue";
|
||||
import defaultImage from '@/assets/emblem.png';
|
||||
|
||||
const accountStore = useAccountStore();
|
||||
|
||||
@@ -586,6 +587,7 @@ export default {
|
||||
spravURL,
|
||||
splitname,
|
||||
accountStore,
|
||||
defaultImage,
|
||||
formatText,
|
||||
dateformat,
|
||||
textcomment,
|
||||
|
||||
Reference in new issue
Block a user