Commit e640e509 authored by 罗林杰's avatar 罗林杰

修改发动态图片问题

parent 14302ad2
......@@ -194,9 +194,7 @@
//处理动态照片
if (item.pictureId != null){
const urlArray = JSON.parse(item.pictureId)
console.log('urlArray.id:',urlArray.id)
if (urlArray.id.length>0){
console.log('11111111111111')
let arr = []
urlArray.id.forEach(item => {
getOssUrl(item).then(imgRes => {
......@@ -228,7 +226,6 @@
}
})
this.$refs.paging.completeByTotal(list,res.data.total);
console.log('22222222',this.dataList)
})
// 组件加载时会自动触发此方法,因此默认页面加载时会自动触发,无需手动调用
......
......@@ -117,6 +117,7 @@
// 删除图片
deletePic(event) {
this[`fileList${event.name}`].splice(event.index, 1)
this.uploadImgJSON.id.splice(event.index, 1)
},
// 新增图片
afterRead(event) {
......
......@@ -61,7 +61,7 @@
<u-icon
name="close"
color="#ffffff"
size="10"
size="16"
></u-icon>
</view>
</view>
......@@ -452,8 +452,8 @@
top: $u-upload-deletable-top;
right: $u-upload-deletable-right;
background-color: $u-upload-deletable-bgColor;
height: $u-upload-deletable-height;
width: $u-upload-deletable-width;
height: 32rpx;
width: 32rpx;
@include flex;
border-bottom-left-radius: $u-upload-deletable-boder-bottom-left-radius;
align-items: center;
......@@ -463,6 +463,7 @@
&__icon {
position: absolute;
transform: scale(0.7);
line-height: 14px;
top: $u-upload-icon-top;
right: $u-upload-icon-right;
/* #ifdef H5 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment