修复bug
This commit is contained in:
@@ -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链接列表,预加载后,可以滑动浏览这些图片
|
||||
}, () => {
|
||||
}])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user