|
|
|
@ -29,7 +29,7 @@ |
|
|
|
|
<image src="/static/copy.png" mode="aspectFill"></image> |
|
|
|
|
<view>复制文案</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="btn" v-if="item.imgs && item.imgs.length > 0" @click="downloadMultipleImages(item.pic)"> |
|
|
|
|
<view class="btn" v-if="item.imgs && item.imgs.length > 0" @click="downloadMultipleImages(item.imgs)"> |
|
|
|
|
<image src="/static/download.png" mode="aspectFill"></image> |
|
|
|
|
<view>下载图片</view> |
|
|
|
|
</view> |
|
|
|
@ -95,6 +95,7 @@ |
|
|
|
|
this.loading = false; |
|
|
|
|
this.finished = false; |
|
|
|
|
this.page = 1; |
|
|
|
|
this.dynamicList = []; |
|
|
|
|
this.getDynamicList(); |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
@ -172,7 +173,11 @@ |
|
|
|
|
downloadMultipleImages(urls) { |
|
|
|
|
let tasks = [] |
|
|
|
|
urls.forEach((url) => { |
|
|
|
|
tasks.push(this.downloadSingleImage(url).then(e => console.log(e))) |
|
|
|
|
tasks.push(this.downloadSingleImage(url.external_url).then(e => { |
|
|
|
|
uni.saveImageToPhotosAlbum({ |
|
|
|
|
filePath: e, |
|
|
|
|
}); |
|
|
|
|
})); |
|
|
|
|
}) |
|
|
|
|
return Promise.all(tasks) |
|
|
|
|
}, |
|
|
|
@ -346,13 +351,13 @@ |
|
|
|
|
display: block; |
|
|
|
|
width: 414rpx; |
|
|
|
|
height: 305rpx; |
|
|
|
|
margin: 0 auto; |
|
|
|
|
margin: 0 auto 20rpx; |
|
|
|
|
pointer-events: none; |
|
|
|
|
} |
|
|
|
|
.publish { |
|
|
|
|
position: fixed; |
|
|
|
|
right: 24rpx; |
|
|
|
|
bottom: 200rpx; |
|
|
|
|
bottom: 140rpx; |
|
|
|
|
width: 100rpx; |
|
|
|
|
height: 100rpx; |
|
|
|
|
background: #F34A40; |
|
|
|
|