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