From f2f4c424625b364a8e88defe30b70b8d4d3a5243 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Wed, 15 Jun 2022 17:26:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B9=A1=E6=9D=91=E7=9B=B8=E5=86=8C=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/saas/AppCountryAlbum/Watermark.vue | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/saas/AppCountryAlbum/Watermark.vue b/src/saas/AppCountryAlbum/Watermark.vue index 36c6e46e..a0068ae5 100644 --- a/src/saas/AppCountryAlbum/Watermark.vue +++ b/src/saas/AppCountryAlbum/Watermark.vue @@ -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')