乡村相册优化
This commit is contained in:
@@ -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')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user