BUG 优化
parent
0923bb456d
commit
57324bccdd
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue