乡村相册优化

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 () { onUnload () {
uni.$off('cropper') uni.$off('cropper')
document.body.removeEventListener('touchmove', this.bindEvent)
}, },
methods: { methods: {
@@ -209,6 +216,10 @@
}) })
}, },
bindEvent (e) {
e.preventDefault()
},
onImgLoad () { onImgLoad () {
const img = document.querySelector('.waterMarker-img') const img = document.querySelector('.waterMarker-img')