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

修改发动态图片问题

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