Увеличить главную картинку начало
This commit is contained in:
1 parent
8f86143710
commit
18e8943d25
2 files changed
+33
-31
No files matched your search
@@ -335,17 +335,7 @@
|
||||
class="flex-column "
|
||||
>
|
||||
<v-card class="pa-4 h-100 flex-column d-flex">
|
||||
<v-row class="flex-grow-0 justify-space-between">
|
||||
<v-col class="py-0 flex-grow-0">
|
||||
<v-btn
|
||||
density="compact"
|
||||
variant="text"
|
||||
icon="mdi-cloud-download"
|
||||
@click="downloadimg(galleryimges.img)"
|
||||
|
||||
/>
|
||||
<my-helper :pretext="galleryimges.img"/>
|
||||
</v-col>
|
||||
<v-row class="flex-grow-0 justify-end">
|
||||
<v-col class="pa-0 flex-grow-0">
|
||||
<v-btn
|
||||
density="compact"
|
||||
@@ -360,11 +350,12 @@
|
||||
<v-row>
|
||||
<v-col class="flex-grow-0 align-self-center">
|
||||
<v-btn
|
||||
density="compact"
|
||||
variant="text"
|
||||
icon="mdi-chevron-left"
|
||||
@click = "indximg !=0? indximg -=1:indximg=newsFull.gallery.length-1"
|
||||
/>
|
||||
:disabled="newsFull.gallery.length==1"
|
||||
density="compact"
|
||||
variant="text"
|
||||
icon="mdi-chevron-left"
|
||||
@click = "indximg !=0? indximg -=1:indximg=newsFull.gallery.length-1"
|
||||
/>
|
||||
</v-col>
|
||||
<v-col class="flex-column h_cards pa-0">
|
||||
<v-img
|
||||
@@ -378,10 +369,11 @@
|
||||
<v-row>
|
||||
<v-col class="flex-column d-flex align-end align-self-center">
|
||||
<v-btn
|
||||
density="compact"
|
||||
variant="text"
|
||||
icon="mdi-chevron-right"
|
||||
@click = "indximg !=newsFull.gallery.length-1? indximg +=1:indximg=0"
|
||||
:disabled="newsFull.gallery.length==1"
|
||||
density="compact"
|
||||
variant="text"
|
||||
icon="mdi-chevron-right"
|
||||
@click = "indximg !=newsFull.gallery.length-1? indximg +=1:indximg=0"
|
||||
/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
@@ -390,11 +382,12 @@
|
||||
<v-row class="flex-grow-1 align-self-center d-flex placeIt">
|
||||
<v-col class="pa-0">
|
||||
<v-btn
|
||||
density="compact"
|
||||
variant="text"
|
||||
:color="heartIco()?'red':'black'"
|
||||
:icon= "heartIco()?'mdi-heart':'mdi-heart-outline'"
|
||||
@click = toggleLike(galleryimges.id)
|
||||
|
||||
density="compact"
|
||||
variant="text"
|
||||
:color="heartIco()?'red':'black'"
|
||||
:icon= "heartIco()?'mdi-heart':'mdi-heart-outline'"
|
||||
@click = toggleLike(galleryimges.id)
|
||||
/>
|
||||
</v-col>
|
||||
<v-col class="pa-0 text-overline">
|
||||
@@ -543,14 +536,23 @@ export default {
|
||||
}
|
||||
|
||||
const downloadimg = (idimg) => {
|
||||
console.log(burl+idimg)
|
||||
const link = document.createElement('a');
|
||||
|
||||
// link.href = burl+idimg
|
||||
// link.setAttribute('download', 'file.jpg'); //or any other extension
|
||||
// document.body.appendChild(link);
|
||||
// link.click();
|
||||
|
||||
let link = document.createElement("a")
|
||||
// let link = document.createElement("a")
|
||||
|
||||
link.href = burl+idimg
|
||||
link.download ='img.jpeg'
|
||||
link.click()
|
||||
console.log(burl, idimg,'22222222222222222');
|
||||
link.remove()
|
||||
// link.href = burl+idimg
|
||||
// link.setAttribute("download", "image.jpeg");
|
||||
// document.body.appendChild(link);
|
||||
// link.download ='img.jpeg'
|
||||
// link.download('img.jpeg')
|
||||
// console.log(burl+idimg,'22222222222222222');
|
||||
// link.remove()
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user