广场动态问题修复

version/0412
wangdong 9 months ago
parent 9f8396ff9e
commit f512266448
  1. 3
      pages/feedback/list.vue
  2. 13
      pages/squareDynamic/index.vue

@ -109,6 +109,7 @@
.finally(() => this.loading = false)
},
calcContentWidth(cont) {
if (cont) {
let len = 0;
let spliti = 0;
for (var i = 0; i < cont.length; i++) {
@ -119,6 +120,8 @@
}
}
return len > 816;
}
return false;
},
},
};

@ -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;

Loading…
Cancel
Save