From c0e2ff2fe0beb70337d094ab97fbd9c0fd4b0903 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Sat, 11 Jun 2022 12:12:44 +0800 Subject: [PATCH] bug --- src/apps/AppBroadcast1/LiveBroadcast.vue | 11 ++++++++--- src/apps/AppBroadcast1/selectEquipment.vue | 23 ++++++++++++++-------- 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/src/apps/AppBroadcast1/LiveBroadcast.vue b/src/apps/AppBroadcast1/LiveBroadcast.vue index e4909828..85e2d42e 100644 --- a/src/apps/AppBroadcast1/LiveBroadcast.vue +++ b/src/apps/AppBroadcast1/LiveBroadcast.vue @@ -129,8 +129,9 @@ this.innerAudioContext.autoplay = true this.innerAudioContext.onEnded(() => { if (this.currIndex > -1) { - this.$set(this.recordList[this.currIndex], 'isPlay', false) - // this.innerAudioContext.destroy() + this.recordList.forEach((v, index) => { + this.$set(this.recordList[index], 'isPlay', false) + }) this.currIndex = -1 } }) @@ -139,7 +140,6 @@ }) uni.$on('chooseEquipment', e => { - console.log(e) this.equipmentList = e.equipmentList }) }, @@ -203,6 +203,10 @@ }, play (url, index) { + this.innerAudioContext.destroy() + this.recordList.forEach((v, index) => { + this.$set(this.recordList[index], 'isPlay', false) + }) this.currIndex = index this.$nextTick(() => { @@ -240,6 +244,7 @@ serialNo: this.equipmentList.map(v => v.serialNo).join(',') }).then(res => { if (res.code === 0) { + !this.broadcastId && (this.broadcastId = res.data.broadcastId) this.$u.toast('播发成功') this.recordList.push({ src: (window.URL || webkitURL).createObjectURL(blob), diff --git a/src/apps/AppBroadcast1/selectEquipment.vue b/src/apps/AppBroadcast1/selectEquipment.vue index 789151d4..136d2dba 100644 --- a/src/apps/AppBroadcast1/selectEquipment.vue +++ b/src/apps/AppBroadcast1/selectEquipment.vue @@ -14,8 +14,8 @@
- - + +
@@ -129,27 +129,34 @@ export default { .item { width: 100%; display: flex; + align-items: center; + height: 110rpx; border-bottom: 1px solid #ddd; + &:last-child { + border: none; + } + .check-img { width: 44px; height: 44px; - margin: 32px 32px 0 0; + margin-right: 32px; } .voice-img { - width: 48px; - height: 48px; - margin: 28px 16px 0 0; + width: 44px; + height: 44px; + margin-right: 32px; } .info { - width: calc(100% - 160px); - padding: 18px 0; + flex: 1; line-height: 44px; + padding-right: 32px; font-size: 34px; display: flex; justify-content: space-between; + align-items: center; .text { p {