|
@@ -74,7 +74,7 @@ import {apiVoiceList,apiVoiceSectionList,apiVoicePlayRecord,apiVoiceDel} from '@
|
|
|
import {apiGetSceneToParams} from '@/api/common'
|
|
|
import noAuth from './components/noAuth.vue'
|
|
|
const moment=require('@/utils/moment-with-locales.min')
|
|
|
-let innerAudioContext = uni.createInnerAudioContext();//播放音频实例
|
|
|
+// let innerAudioContext = uni.createInnerAudioContext();//播放音频实例
|
|
|
export default {
|
|
|
components:{
|
|
|
noAuth
|
|
@@ -91,6 +91,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ innerAudioContext:uni.createInnerAudioContext(),//播放音频实例
|
|
|
list:[],
|
|
|
page:1,
|
|
|
pageSize:20,
|
|
@@ -292,7 +293,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
handlePlay(item){
|
|
|
-
|
|
|
+ const innerAudioContext=this.innerAudioContext
|
|
|
//没有初始化时
|
|
|
if(this.temAudio.id==0||this.temAudio.id!=item.BroadcastId){
|
|
|
this.listenAudio()
|
|
@@ -301,6 +302,7 @@ export default {
|
|
|
this.temAudio.curTime=item.VoicePlaySeconds
|
|
|
innerAudioContext.src=item.VoiceUrl
|
|
|
innerAudioContext.play()
|
|
|
+ this.temAudio.paused=false
|
|
|
this.handleVoicePlayRecord(item)
|
|
|
return
|
|
|
}
|
|
@@ -314,6 +316,7 @@ export default {
|
|
|
|
|
|
//音频播放事件
|
|
|
listenAudio(){
|
|
|
+ const innerAudioContext=this.innerAudioContext
|
|
|
innerAudioContext.onPlay(()=>{
|
|
|
console.log('开始播放录音');
|
|
|
this.temAudio.paused=false
|
|
@@ -390,21 +393,31 @@ export default {
|
|
|
.voice-play-page{
|
|
|
|
|
|
.top-filter-box{
|
|
|
- padding-left: 34rpx;
|
|
|
- padding-bottom: 10rpx;
|
|
|
- position: sticky;
|
|
|
- top: 0;
|
|
|
- left: 0;
|
|
|
- z-index: 99;
|
|
|
- background-color: #fff;
|
|
|
+ // padding-left: 34rpx;
|
|
|
+ // padding-bottom: 10rpx;
|
|
|
+ // position: sticky;
|
|
|
+ // top: 0;
|
|
|
+ // left: 0;
|
|
|
+ // z-index: 99;
|
|
|
+ // background-color: #fff;
|
|
|
+ // display: flex;
|
|
|
+ // align-items: center;
|
|
|
display: flex;
|
|
|
- align-items: center;
|
|
|
+ flex: auto;
|
|
|
+ align-items: center;
|
|
|
+ height: 100rpx;
|
|
|
+ background-color: white;
|
|
|
+ position: sticky;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ padding-left: 34rpx;
|
|
|
+ z-index: 99;
|
|
|
image{
|
|
|
width: 34rpx;
|
|
|
height: 34rpx;
|
|
|
}
|
|
|
color: #E3B377;
|
|
|
- font-size: 30rpx;
|
|
|
+ font-size: 28rpx;
|
|
|
}
|
|
|
}
|
|
|
.empty-box{
|