|
@@ -44,7 +44,7 @@ |
|
|
<text v-else>{{ item.speaker | toCapital }}</text> |
|
|
<text v-else>{{ item.speaker | toCapital }}</text> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="contentInfo"> |
|
|
<view class="contentInfo"> |
|
|
<view class="info"> |
|
|
<view class="info"> |
|
|
<text class="AudioUserName">{{ item.speaker | toCapital }}</text> |
|
|
<text class="AudioUserName">{{ item.speaker | toCapital }}</text> |
|
@@ -238,7 +238,9 @@ |
|
|
sliderValue: 0, //进度条最小值 |
|
|
sliderValue: 0, //进度条最小值 |
|
|
sliderMax: 0, //进度条最大值 |
|
|
sliderMax: 0, //进度条最大值 |
|
|
playNow: 0, // 当前播放时间 |
|
|
playNow: 0, // 当前播放时间 |
|
|
|
|
|
audioType: false, // 音频是否自动播放状态 |
|
|
scrollId: "", // 当前播放滚动到的位置 |
|
|
scrollId: "", // 当前播放滚动到的位置 |
|
|
|
|
|
|
|
|
tagValidShow: false, // 标记弹窗 |
|
|
tagValidShow: false, // 标记弹窗 |
|
|
reasonSrc: '', // 标记无效的原因 |
|
|
reasonSrc: '', // 标记无效的原因 |
|
|
findTabooWordsList: [], // 违禁词列表 |
|
|
findTabooWordsList: [], // 违禁词列表 |
|
@@ -274,7 +276,7 @@ |
|
|
this.gituserlist() |
|
|
this.gituserlist() |
|
|
this.findTabooWords() |
|
|
this.findTabooWords() |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onUnload() { |
|
|
onUnload() { |
|
|
//暂停 |
|
|
//暂停 |
|
|
this.innerAudioContext.pause() |
|
|
this.innerAudioContext.pause() |
|
@@ -285,7 +287,9 @@ |
|
|
methods: { |
|
|
methods: { |
|
|
// 获取违禁词 |
|
|
// 获取违禁词 |
|
|
findTabooWords() { |
|
|
findTabooWords() { |
|
|
this.$u.get('/customer/findTabooWords', { customerId: this.customerId }).then(res => { |
|
|
|
|
|
|
|
|
this.$u.get('/customer/findTabooWords', { |
|
|
|
|
|
customerId: this.customerId |
|
|
|
|
|
}).then(res => { |
|
|
let arr = [] |
|
|
let arr = [] |
|
|
res.map(item => { |
|
|
res.map(item => { |
|
|
if (item.transferContent) { |
|
|
if (item.transferContent) { |
|
@@ -297,7 +301,7 @@ |
|
|
console.log(this.findTabooWordsList, 'findTabooWordsList') |
|
|
console.log(this.findTabooWordsList, 'findTabooWordsList') |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 确认无效标记 setViolatedStatus = 2 |
|
|
// 确认无效标记 setViolatedStatus = 2 |
|
|
inputDone() { |
|
|
inputDone() { |
|
|
if (!this.reasonSrc) { |
|
|
if (!this.reasonSrc) { |
|
@@ -344,6 +348,7 @@ |
|
|
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.resetAudioParams() |
|
|
this.prohibitedMatch() |
|
|
this.prohibitedMatch() |
|
|
}).catch(e => { |
|
|
}).catch(e => { |
|
|
this.nextPageObj = JSON.parse(uni.getStorageSync('nextPageObj')), // 当前页面筛选内容 |
|
|
this.nextPageObj = JSON.parse(uni.getStorageSync('nextPageObj')), // 当前页面筛选内容 |
|
@@ -401,7 +406,7 @@ |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 设置违禁状态 |
|
|
// 设置违禁状态 |
|
@@ -527,6 +532,17 @@ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 重置进度条 |
|
|
|
|
|
resetAudioParams() { |
|
|
|
|
|
this.timeStr = "00:00"; //总的时间 |
|
|
|
|
|
this.currentTimeStr = "00:00" //当前进度的时间 |
|
|
|
|
|
this.recordPath = "", // 录音地址 |
|
|
|
|
|
this.audioPlay = false //当前的播放状态控制 |
|
|
|
|
|
this.sliderValue = 0 //进度条最小值 |
|
|
|
|
|
this.sliderMax = 0 //进度条最大值 |
|
|
|
|
|
this.playNow = 0 // 当前播放时间 |
|
|
|
|
|
this.scrollId = "" // 当前播放滚动到的位置 |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// 获取转义后的对话结果 |
|
|
// 获取转义后的对话结果 |
|
|
getCorpusAnalysis(info) { |
|
|
getCorpusAnalysis(info) { |
|
@@ -631,14 +647,11 @@ |
|
|
const currTimeStr = this.formatTime(parseInt(e.bg / 1000)) |
|
|
const currTimeStr = this.formatTime(parseInt(e.bg / 1000)) |
|
|
this.currentTimeStr = currTimeStr |
|
|
this.currentTimeStr = currTimeStr |
|
|
this.innerAudioContext.seek(parseInt(e.bg / 1000)); |
|
|
this.innerAudioContext.seek(parseInt(e.bg / 1000)); |
|
|
if (uni.getStorageSync('entrance') == 1) { |
|
|
|
|
|
return |
|
|
|
|
|
|
|
|
console.log('我在这里哦') |
|
|
|
|
|
if (this.current == 1) { |
|
|
|
|
|
this.innerAudioContext.play(); |
|
|
} else { |
|
|
} else { |
|
|
if (this.current == 1) { |
|
|
|
|
|
this.innerAudioContext.play(); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.scrollId = "dialog" + this.csdFileindex + "text" + e.bg |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
this.scrollId = "dialog" + this.csdFileindex + "text" + e.bg |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@@ -725,7 +738,7 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 初始化音频方法 |
|
|
// 初始化音频方法 |
|
|
initAudioFnc() { |
|
|
|
|
|
|
|
|
initAudioFnc(inits) { |
|
|
this.innerAudioContext = uni.createInnerAudioContext(); |
|
|
this.innerAudioContext = uni.createInnerAudioContext(); |
|
|
this.innerAudioContext.autoplay = false; |
|
|
this.innerAudioContext.autoplay = false; |
|
|
this.innerAudioContext.title = '音频'; |
|
|
this.innerAudioContext.title = '音频'; |
|
@@ -744,6 +757,12 @@ |
|
|
clickbofang(dialog, item, type) { |
|
|
clickbofang(dialog, item, type) { |
|
|
if (type == 'show') { |
|
|
if (type == 'show') { |
|
|
this.current = 1 |
|
|
this.current = 1 |
|
|
|
|
|
this.infos = item |
|
|
|
|
|
this.audioType = true |
|
|
|
|
|
this.initAudioFnc() |
|
|
|
|
|
return |
|
|
|
|
|
} else { |
|
|
|
|
|
this.audioType = false |
|
|
} |
|
|
} |
|
|
this.innerAudioContext.pause() |
|
|
this.innerAudioContext.pause() |
|
|
this.dialogList.forEach(res => { |
|
|
this.dialogList.forEach(res => { |
|
@@ -969,11 +988,11 @@ |
|
|
font-size: 30rpx; |
|
|
font-size: 30rpx; |
|
|
font-weight: bold; |
|
|
font-weight: bold; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.status { |
|
|
.status { |
|
|
display: flex; |
|
|
display: flex; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.pointer { |
|
|
.pointer { |
|
|
margin: 0 .5em; |
|
|
margin: 0 .5em; |
|
|
width: 12rpx; |
|
|
width: 12rpx; |
|
@@ -982,7 +1001,7 @@ |
|
|
background: #2671E2; |
|
|
background: #2671E2; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.h-b-btm { |
|
|
.h-b-btm { |
|
@@ -1008,8 +1027,8 @@ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.audio { |
|
|
.audio { |
|
|
|
|
|
|
|
|
.headboxbott { |
|
|
.headboxbott { |
|
@@ -1131,29 +1150,30 @@ |
|
|
bottom: -140rpx; |
|
|
bottom: -140rpx; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.contentInfo { |
|
|
.contentInfo { |
|
|
.info { |
|
|
.info { |
|
|
color: #ccc; |
|
|
color: #ccc; |
|
|
font-size: 18rpx; |
|
|
font-size: 18rpx; |
|
|
font-size: 30rpx; |
|
|
font-size: 30rpx; |
|
|
padding: 0 28rpx; |
|
|
padding: 0 28rpx; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.AudioUserName { |
|
|
.AudioUserName { |
|
|
margin-right: 20rpx; |
|
|
margin-right: 20rpx; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.contentMain { |
|
|
.contentMain { |
|
|
display: flex; |
|
|
display: flex; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.content { |
|
|
.content { |
|
|
margin-left: 0; |
|
|
margin-left: 0; |
|
|
margin-right: 30upx; |
|
|
margin-right: 30upx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.play { |
|
|
.play { |
|
|
width: 50rpx; |
|
|
width: 50rpx; |
|
|
height: 50rpx; |
|
|
height: 50rpx; |
|
@@ -1178,7 +1198,7 @@ |
|
|
background: #F6F6F6; |
|
|
background: #F6F6F6; |
|
|
color: #999999; |
|
|
color: #999999; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.contentInfo { |
|
|
.contentInfo { |
|
|
.info { |
|
|
.info { |
|
|
color: #ccc; |
|
|
color: #ccc; |
|
@@ -1187,22 +1207,22 @@ |
|
|
padding: 0 28rpx; |
|
|
padding: 0 28rpx; |
|
|
display: flex; |
|
|
display: flex; |
|
|
flex-direction: row-reverse; |
|
|
flex-direction: row-reverse; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.AudioUserName { |
|
|
.AudioUserName { |
|
|
margin-left: 10rpx; |
|
|
margin-left: 10rpx; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.contentMain { |
|
|
.contentMain { |
|
|
display: flex; |
|
|
display: flex; |
|
|
flex-direction: row-reverse; |
|
|
flex-direction: row-reverse; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.content { |
|
|
.content { |
|
|
margin-left: 0; |
|
|
margin-left: 0; |
|
|
margin-right: 30upx; |
|
|
margin-right: 30upx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.play { |
|
|
.play { |
|
|
width: 50rpx; |
|
|
width: 50rpx; |
|
|
height: 50rpx; |
|
|
height: 50rpx; |
|
|