|
|
@@ -33,7 +33,7 @@ |
|
|
|
<view class="dialog-block" v-for="(dialog,i) in dialogList" :key="i">
|
|
|
|
<view :id="'dialog'+i" class="fileName">录音文件</view>
|
|
|
|
<view class="text" :id="'dialog'+csdFileindex+'text'+item.bg"
|
|
|
|
:class="{active: item.bg < playNow && item.ed > playNow && i==0}"
|
|
|
|
:class="{active: item.bg < playNow && item.ed > playNow && i==0}"
|
|
|
|
v-for="(item,index) in dialog.message" :key="index" :data-speaker="item.speaker">
|
|
|
|
<view class="avatar">
|
|
|
|
<view v-if="item.speaker == 1" style="color: #60CBEC;">
|
|
|
@@ -1137,7 +1137,9 @@ |
|
|
|
currentTime,
|
|
|
|
duration
|
|
|
|
} = this.innerAudioContext;
|
|
|
|
console.log(currentTime, 'TimeUpdate, currentTime')
|
|
|
|
this.playNow = parseInt(currentTime * 1000)
|
|
|
|
console.log(this.playNow)
|
|
|
|
if (this.dialogList.length == 0) {
|
|
|
|
return
|
|
|
|
} else {
|
|
|
@@ -1763,6 +1765,7 @@ |
|
|
|
}else{
|
|
|
|
this.dialogList.push(this.newluyinList[data.data.data.index])
|
|
|
|
}
|
|
|
|
console.log(e.detail,'1233333333333333333333333333333333333333333333333333333333333')
|
|
|
|
const currTimeStr = this.formatTime(e.detail.value)
|
|
|
|
this.currentTimeStr = currTimeStr
|
|
|
|
this.innerAudioContext.seek(e.detail.value);
|
|
|
@@ -1781,6 +1784,7 @@ |
|
|
|
this.$forceUpdate()
|
|
|
|
let platetime=item.bg;
|
|
|
|
let newtime=item.bg/1000;
|
|
|
|
console.log(newtime, 'newTime')
|
|
|
|
this.dialogList=[]
|
|
|
|
uni.request({
|
|
|
|
url: config.service.fastForward + '?corpusId=' + this.luyinList[this.csdFileindex].id+"&bg="+platetime, //仅为示例,并非真实接口地址。
|
|
|
@@ -1794,6 +1798,7 @@ |
|
|
|
this.toptextindex=data.data.data.index;
|
|
|
|
this.dialogList.push(this.newluyinList[data.data.data.index])
|
|
|
|
const currTimeStr = this.formatTime(newtime)
|
|
|
|
console.log(currTimeStr, 'currTimeStr')
|
|
|
|
this.currentTimeStr = currTimeStr
|
|
|
|
this.innerAudioContext.seek(newtime);
|
|
|
|
this.innerAudioContext.play();
|
|
|
|