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