修复bug

This commit is contained in:
yanran200730
2022-06-16 10:07:14 +08:00
parent 995c5684e3
commit f8cbc8d5aa

View File

@@ -3,7 +3,7 @@
<div class="photo-wrapper">
<image mode="widthFix" :src="img" @click="preview(img)" />
</div>
<!-- <div class="photo-bottom" :class="[isShow ? 'active' : '']">
<div class="photo-bottom" :class="[isShow ? 'active' : '']">
<div class="top">
<h2>查看图片</h2>
<p>长按图片进行分享给他人</p>
@@ -19,7 +19,7 @@
<span>删除</span>
</div>
</div>
</div> -->
</div>
</div>
</template>
@@ -34,7 +34,7 @@
return {
img: '',
id: '',
isShow: false,
isShow: true,
pageShow: false,
createUserId: ''
}
@@ -62,8 +62,6 @@
},
methods: {
...mapActions(['wxInvoke']),
back () {
uni.navigateBack({
delta: 1
@@ -82,16 +80,6 @@
})
}).catch(() => {
})
},
preview (url) {
if (!this.isShow) return
this.wxInvoke(['previewImage', {
current: url, // 第一张显示的图片链接
urls: [url] // 需要预加载的图片http链接列表预加载后可以滑动浏览这些图片
}, () => {
}])
}
}
}