BUG 优化

dev
xiepeng 2024-04-30 17:55:25 +08:00
parent 0923bb456d
commit 57324bccdd
1 changed files with 15 additions and 2 deletions

View File

@ -62,7 +62,12 @@
<view class="cu-form-group">
<view class="grid col-4 grid-square flex-sub">
<view class="bg-img" v-for="(item,index) in liveImgs" :key="index">
<image :src="baseImgPath + item.filePath" mode="aspectFill"></image>
<image
:src="baseImgPath + item.filePath"
mode="aspectFill"
@click="clickImg(baseImgPath + item.filePath)"
>
</image>
<!-- 删除图片按钮 -->
<view class="cu-tag bg-red" @tap.stop="DelImg(index)" data-type="0">
<text class='cuIcon-close'></text>
@ -207,7 +212,15 @@
}
});
},
clickImg(url) {
uni.previewImage({
urls: [url],
current: '',
success: function(res) {},
fail: function(res) {},
complete: function(res) {},
})
},
DelImg(index) {
var _this = this;
uni.showModal({