From 0b157621ca586e50232e095a9add38aee1e3eb2d Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Mon, 13 Jun 2022 14:31:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppBroadcast1/LiveBroadcast.vue | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/apps/AppBroadcast1/LiveBroadcast.vue b/src/apps/AppBroadcast1/LiveBroadcast.vue index 8baa569b..60742e98 100644 --- a/src/apps/AppBroadcast1/LiveBroadcast.vue +++ b/src/apps/AppBroadcast1/LiveBroadcast.vue @@ -123,9 +123,15 @@ this.y = close.offsetTop this.w = close.clientWidth this.h = close.clientHeight + + document.body.addEventListener('touchmove', this.bindEvent, { passive: false }) }) }, + destroyed () { + document.body.removeEventListener('touchmove', this.bindEvent) + }, + onLoad () { this.innerAudioContext = uni.createInnerAudioContext() this.innerAudioContext.autoplay = true @@ -147,6 +153,10 @@ }, methods: { + bindEvent (e) { + e.preventDefault() + }, + onLongtap () { if (!this.equipmentList.length) { return this.$u.toast('请选择播发设备') @@ -374,6 +384,8 @@ image { width: 96px; height: 96px; + pointer-events: none; + user-select: none; } } @@ -587,6 +599,7 @@ height: 128px; margin-bottom: 16px; pointer-events: none; + user-select: none; } p {