乡村相册优化

This commit is contained in:
yanran200730
2022-06-15 17:26:41 +08:00
parent e4538ca973
commit f2f4c42462

View File

@@ -196,8 +196,15 @@
})
},
mounted () {
this.$nextTick(() => {
document.body.addEventListener('touchmove', this.bindEvent, { passive: false })
})
},
onUnload () {
uni.$off('cropper')
document.body.removeEventListener('touchmove', this.bindEvent)
},
methods: {
@@ -209,6 +216,10 @@
})
},
bindEvent (e) {
e.preventDefault()
},
onImgLoad () {
const img = document.querySelector('.waterMarker-img')