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 {