BUG 优化
parent
0923bb456d
commit
57324bccdd
|
@ -62,7 +62,12 @@
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<view class="grid col-4 grid-square flex-sub">
|
<view class="grid col-4 grid-square flex-sub">
|
||||||
<view class="bg-img" v-for="(item,index) in liveImgs" :key="index">
|
<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">
|
<view class="cu-tag bg-red" @tap.stop="DelImg(index)" data-type="0">
|
||||||
<text class='cuIcon-close'></text>
|
<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) {
|
DelImg(index) {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
|
|
Loading…
Reference in New Issue