效果图:
说明:点击删除按钮可以删除图片,点击图片可以预览图片。
<view class="img-box flex flex-wrap">
<view class="img" v-for="(item, index) in imgList">
<image class="pic" :src="item" mode="aspectFill" @click="lookImg(index)"></image>
<image @click="delImg(index)" class="close" src="../../../static/image/close-circle.png