|
|
@@ -269,7 +269,7 @@ |
|
|
this.stateisshow = option.stateisshow; |
|
|
this.stateisshow = option.stateisshow; |
|
|
this.itemobj = uni.getStorageSync('searchobj'); |
|
|
this.itemobj = uni.getStorageSync('searchobj'); |
|
|
if (option.isMerge) this.isMerge = option.isMerge |
|
|
if (option.isMerge) this.isMerge = option.isMerge |
|
|
this.$zaudio.autoPlay = false |
|
|
|
|
|
|
|
|
this.$zaudio.autoPlay = true |
|
|
|
|
|
|
|
|
//注意: 不同的回调方法, 相同的业务函数方法名, 不会相互影响; |
|
|
//注意: 不同的回调方法, 相同的业务函数方法名, 不会相互影响; |
|
|
this.$zaudio.on('stop', this.ACTION, () => { |
|
|
this.$zaudio.on('stop', this.ACTION, () => { |
|
|
@@ -295,8 +295,11 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
onShow() { |
|
|
onShow() { |
|
|
|
|
|
this.scrollId = '' |
|
|
//实时渲染当前的播放状态 |
|
|
//实时渲染当前的播放状态 |
|
|
this.$zaudio.syncRender() |
|
|
|
|
|
|
|
|
if (this.current == 1) { |
|
|
|
|
|
this.$zaudio.syncRender() |
|
|
|
|
|
} |
|
|
this.permissions = uni.getStorageSync('weapp_session_Menu_data') // 权限 |
|
|
this.permissions = uni.getStorageSync('weapp_session_Menu_data') // 权限 |
|
|
|
|
|
|
|
|
this.roleindex = 0; |
|
|
this.roleindex = 0; |
|
|
@@ -320,12 +323,8 @@ |
|
|
this.$zaudio.off('seek', this.ACTION); |
|
|
this.$zaudio.off('seek', this.ACTION); |
|
|
this.$zaudio.off('stop', this.ACTION); |
|
|
this.$zaudio.off('stop', this.ACTION); |
|
|
this.$zaudio.off('playing', this.ACTION); |
|
|
this.$zaudio.off('playing', this.ACTION); |
|
|
this.$zaudio.setAudio([{ |
|
|
|
|
|
src: '', |
|
|
|
|
|
title: '', |
|
|
|
|
|
singer: '', |
|
|
|
|
|
coverImgUrl: '' |
|
|
|
|
|
}]) |
|
|
|
|
|
|
|
|
// this.$zaudio.setAudio([]) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
@@ -395,7 +394,6 @@ |
|
|
this.customerId = res.results[0].id; |
|
|
this.customerId = res.results[0].id; |
|
|
this.current = 0 |
|
|
this.current = 0 |
|
|
uni.setStorageSync('nextPageObj', JSON.stringify(this.nextPageObj)) |
|
|
uni.setStorageSync('nextPageObj', JSON.stringify(this.nextPageObj)) |
|
|
this.$zaudio.resetDatas() |
|
|
|
|
|
this.resetAudioParams() |
|
|
this.resetAudioParams() |
|
|
this.prohibitedMatch() |
|
|
this.prohibitedMatch() |
|
|
}).catch(e => { |
|
|
}).catch(e => { |
|
|
@@ -445,7 +443,7 @@ |
|
|
this.roleindex = 0; |
|
|
this.roleindex = 0; |
|
|
this.gituserlist() |
|
|
this.gituserlist() |
|
|
this.findTabooWords() |
|
|
this.findTabooWords() |
|
|
this.zyAudio() |
|
|
|
|
|
|
|
|
// this.zyAudio() |
|
|
} else { |
|
|
} else { |
|
|
uni.showToast({ |
|
|
uni.showToast({ |
|
|
icon: "none", |
|
|
icon: "none", |
|
|
@@ -566,14 +564,14 @@ |
|
|
this.sliderMax = this.getTime(res[0].recordDuration) |
|
|
this.sliderMax = this.getTime(res[0].recordDuration) |
|
|
this.timeStr = this.getTime(res[0].recordDuration) |
|
|
this.timeStr = this.getTime(res[0].recordDuration) |
|
|
this.date = res[0].receptionTime; |
|
|
this.date = res[0].receptionTime; |
|
|
this.getCorpusAnalysis(info); |
|
|
|
|
|
|
|
|
this.getCorpusAnalysis(info, type); |
|
|
} else { |
|
|
} else { |
|
|
this.luyinList = res; |
|
|
this.luyinList = res; |
|
|
this.recordPath = res[0].recordPath |
|
|
this.recordPath = res[0].recordPath |
|
|
this.sliderMax = this.getTime(res[0].recordDuration) |
|
|
this.sliderMax = this.getTime(res[0].recordDuration) |
|
|
this.timeStr = this.getTime(res[0].recordDuration) |
|
|
this.timeStr = this.getTime(res[0].recordDuration) |
|
|
this.date = res[0].receptionTime; |
|
|
this.date = res[0].receptionTime; |
|
|
this.getCorpusAnalysis(info); |
|
|
|
|
|
|
|
|
this.getCorpusAnalysis(info, type); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
@@ -585,7 +583,7 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 获取转义后的对话结果 |
|
|
// 获取转义后的对话结果 |
|
|
getCorpusAnalysis(info) { |
|
|
|
|
|
|
|
|
getCorpusAnalysis(info, type) { |
|
|
this.dialogList = []; |
|
|
this.dialogList = []; |
|
|
this.newluyinList = [] |
|
|
this.newluyinList = [] |
|
|
uni.request({ |
|
|
uni.request({ |
|
|
@@ -659,8 +657,10 @@ |
|
|
this.newluyinList = jsonInfo; |
|
|
this.newluyinList = jsonInfo; |
|
|
this.dialogList.push(jsonInfo[0]); |
|
|
this.dialogList.push(jsonInfo[0]); |
|
|
console.log(this.dialogList, '12312321') |
|
|
console.log(this.dialogList, '12312321') |
|
|
var itc = parseInt(info.bg / 1000) |
|
|
|
|
|
this.adasdasdasd(itc) |
|
|
|
|
|
|
|
|
if (type == 'show') { |
|
|
|
|
|
var itc = parseInt(info.bg / 1000) |
|
|
|
|
|
this.adasdasdasd(itc) |
|
|
|
|
|
} |
|
|
this.$forceUpdate() |
|
|
this.$forceUpdate() |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
@@ -810,6 +810,7 @@ |
|
|
// 选中下标 |
|
|
// 选中下标 |
|
|
change(index) { |
|
|
change(index) { |
|
|
this.current = index; |
|
|
this.current = index; |
|
|
|
|
|
this.scrollId = '' |
|
|
if (index == 1) { |
|
|
if (index == 1) { |
|
|
this.zyAudio() |
|
|
this.zyAudio() |
|
|
} |
|
|
} |
|
|
@@ -823,6 +824,18 @@ |
|
|
this.infos = item |
|
|
this.infos = item |
|
|
this.audioType = true |
|
|
this.audioType = true |
|
|
this.init(this.infos, type) |
|
|
this.init(this.infos, type) |
|
|
|
|
|
let data = [{ |
|
|
|
|
|
src: this.recordPath, |
|
|
|
|
|
title: '录音音频', |
|
|
|
|
|
singer: '', |
|
|
|
|
|
coverImgUrl: '' |
|
|
|
|
|
}] |
|
|
|
|
|
this.$zaudio.setAudio(data) |
|
|
|
|
|
//渲染第一首音频 |
|
|
|
|
|
this.$zaudio.setRender(0) |
|
|
|
|
|
setTimeout(() => { |
|
|
|
|
|
this.adasdasdasd(parseInt(item.bg / 1000)) |
|
|
|
|
|
}, 1500) |
|
|
return |
|
|
return |
|
|
} else { |
|
|
} else { |
|
|
this.audioType = false |
|
|
this.audioType = false |
|
|
@@ -870,7 +883,7 @@ |
|
|
this.scrollId = "dialog" + this.csdFileindex + "text" + message[i].bg; |
|
|
this.scrollId = "dialog" + this.csdFileindex + "text" + message[i].bg; |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
if (i < message.length - 1 && Math.floor(message[i].ed / 1000) < this.playNow && this.playNow < |
|
|
|
|
|
|
|
|
if (i < message.length - 1 && Math.floor(message[i].ed / 1000) <= this.playNow && this.playNow <= |
|
|
Math.floor(message[i + 1].bg / 1000)) { |
|
|
Math.floor(message[i + 1].bg / 1000)) { |
|
|
this.scrollId = "dialog" + this.csdFileindex + "text" + message[i].bg; |
|
|
this.scrollId = "dialog" + this.csdFileindex + "text" + message[i].bg; |
|
|
break; |
|
|
break; |
|
|
|