|
|
@ -113,7 +113,7 @@ |
|
|
|
<view class="image-list" :key="refreshKey"> |
|
|
|
<view class="image-item" v-for="(element, index) in item.imgList" :key="index"> |
|
|
|
<image :src="element" mode=""></image> |
|
|
|
<u-icon name="close-circle-fill" color="red" class="close" size="36" @click="delImage(index)"> </u-icon> |
|
|
|
<u-icon name="close-circle-fill" color="red" class="close" size="36" @click="delImage(index,item)"> </u-icon> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="image-item image-item1" @click="chooseImage(item)"> |
|
|
@ -373,8 +373,8 @@ function previewImage(index, filePathList) { |
|
|
|
} |
|
|
|
|
|
|
|
// 删除图片 |
|
|
|
function delImage(index) { |
|
|
|
imgList.value.splice(index, 1) |
|
|
|
function delImage(index,item) { |
|
|
|
item.imgList.splice(index, 1) |
|
|
|
} |
|
|
|
|
|
|
|
function chooseImage(dataItem) { |
|
|
|