bug
This commit is contained in:
		| @@ -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), | ||||
|   | ||||
| @@ -14,8 +14,8 @@ | ||||
|     </AiTopFixed> | ||||
|     <div class="record"> | ||||
|       <div class="item" v-for="(item, index) in list" :key="index" @click="checkClick(index)"> | ||||
|         <img src="./img/select-blue.png" alt="" class="check-img" v-if="item.isCheck"> | ||||
|         <img src="./img/cir.png" alt="" class="check-img" v-else> | ||||
|         <img src="./img/select-blue.png" mode="aspectFill" alt="" class="check-img" v-if="item.isCheck"> | ||||
|         <img src="./img/cir.png" alt="" mode="aspectFill" class="check-img" v-else> | ||||
|         <img src="./img/lb@2x.png" alt="" class="voice-img"> | ||||
|         <div class="info"> | ||||
|           <div class="text"> | ||||
| @@ -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 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user