Большая картинка
This commit is contained in:
1 parent
2ccf8903f8
commit
aae4df5a04
4 files changed
+61
-4
No files matched your search
@@ -15,6 +15,7 @@
|
||||
width="92%"
|
||||
class="mx-auto"
|
||||
cover
|
||||
@click="openOneImg(news.link)"
|
||||
/>
|
||||
<v-list-item class="w-100 ">
|
||||
<div class="justify-self-start mt-1">
|
||||
@@ -101,6 +102,7 @@
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -119,7 +121,7 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
setup(props){
|
||||
setup(props, {emit}){
|
||||
const burl = baseURL.slice(0,-1)
|
||||
|
||||
const limitText=(text)=> {
|
||||
@@ -141,12 +143,17 @@ export default {
|
||||
|
||||
}
|
||||
|
||||
const openOneImg = () => {
|
||||
emit('openOneImg')
|
||||
}
|
||||
|
||||
return {
|
||||
accountStore,
|
||||
burl,
|
||||
limitText,
|
||||
splitname,
|
||||
toggleIncrementLike
|
||||
toggleIncrementLike,
|
||||
openOneImg
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-title>
|
||||
<my-helper :pretext="newsFull"/>
|
||||
|
||||
<!-- -->
|
||||
<v-img
|
||||
:src="`${burl}${newsFull.link}`"
|
||||
|
||||
@@ -8,6 +8,42 @@
|
||||
class="pb-1 pt-0"
|
||||
>
|
||||
<news-card :news="x"/>
|
||||
|
||||
|
||||
<v-dialog
|
||||
v-model="dialogfotoOne"
|
||||
width="w-100"
|
||||
height="900"
|
||||
class="flex-column "
|
||||
>
|
||||
<v-card class="pa-4 h-100 flex-column d-flex">
|
||||
<v-row class="flex-grow-0 justify-end">
|
||||
<v-col class="pa-0 flex-grow-0">
|
||||
<v-btn
|
||||
density="compact"
|
||||
variant="text"
|
||||
icon="mdi-close"
|
||||
@click="dialogfotoOne = false"
|
||||
|
||||
|
||||
/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
|
||||
<v-col class="flex-column h_cards pa-0">
|
||||
<v-img
|
||||
class="d-flex"
|
||||
:src="`${burl}${galleryimges}`"
|
||||
/>
|
||||
|
||||
</v-col>
|
||||
|
||||
</v-row>
|
||||
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-divider class="mt-3"/>
|
||||
@@ -48,6 +84,8 @@ export default {
|
||||
const page = ref(1)
|
||||
const countpage = ref(8)
|
||||
const route = useRoute()
|
||||
const galleryimges=ref('')
|
||||
const dialogfotoOne = ref(false)
|
||||
|
||||
const loadNewsAll = () => {
|
||||
axiosApiInstance.get( `api/navigation/newscrossroad/?name=${route.path}&page=${page.value-1}&countpage=${countpage.value}`).then(result => {
|
||||
@@ -59,12 +97,22 @@ export default {
|
||||
|
||||
loadNewsAll()
|
||||
|
||||
const openOneImg = (idimg) => {
|
||||
dialogfotoOne.value = true
|
||||
galleryimges.value = idimg
|
||||
console.log(idimg);
|
||||
|
||||
}
|
||||
|
||||
return {
|
||||
newsAll,
|
||||
countetnews,
|
||||
page,
|
||||
countpage,
|
||||
loadNewsAll,
|
||||
galleryimges,
|
||||
dialogfotoOne,
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,7 +71,9 @@
|
||||
</v-row>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</v-container>
|
||||
</template>
|
||||
|
||||
Reference in new issue
Block a user