@@ -483,7 +483,7 @@ | |||||
this.init({bg: 0, customerId: this.customerId}) | this.init({bg: 0, customerId: this.customerId}) | ||||
}) | }) | ||||
uni.$on('Receivedetailabout', info => { | uni.$on('Receivedetailabout', info => { | ||||
this.init(info) | |||||
this.init(info, 'Receivedetailabout') | |||||
}) | }) | ||||
}, | }, | ||||
@@ -561,11 +561,12 @@ | |||||
}, | }, | ||||
//关键词点击 | //关键词点击 | ||||
tapbadge(item) { | |||||
tapbadge(item) { | |||||
this.Pinspeak = false | |||||
//进搜索页面 | //进搜索页面 | ||||
uni.navigateTo({ | uni.navigateTo({ | ||||
url: '/pages/learning/Keywordsearch?customerId=' + this.customerId + "&keyword=" + item + | url: '/pages/learning/Keywordsearch?customerId=' + this.customerId + "&keyword=" + item + | ||||
"&skpl=" + "2" | |||||
"&skpl=" + "2" + "&UpDateEvent=Receivedetailabout" | |||||
}) | }) | ||||
}, | }, | ||||
recordclick(i) { | recordclick(i) { | ||||
@@ -789,7 +790,7 @@ | |||||
this.$forceUpdate() | this.$forceUpdate() | ||||
}, | }, | ||||
init(info) { | |||||
init(info, type) { | |||||
const parames = { | const parames = { | ||||
pageNum: 1, | pageNum: 1, | ||||
pageSize: 100, | pageSize: 100, | ||||
@@ -810,7 +811,7 @@ | |||||
this.datetiem = res[0].receptionTime; | this.datetiem = res[0].receptionTime; | ||||
this.Alladdtodigest = res[0].status; | this.Alladdtodigest = res[0].status; | ||||
this.getCorpusAnalysis(info) | this.getCorpusAnalysis(info) | ||||
if (info.bg == 0) this.zyAudio() | |||||
if (info.bg == 0 || type == 'Receivedetailabout') this.zyAudio() | |||||
} | } | ||||
}) | }) | ||||
}, | }, | ||||
@@ -249,6 +249,7 @@ | |||||
isPageHide: false, // 是否息屏 | isPageHide: false, // 是否息屏 | ||||
duration: '', // 总时长 | duration: '', // 总时长 | ||||
allTextList: [], // 所有话术列表 | allTextList: [], // 所有话术列表 | ||||
isFirstWords: 0, // 第一个违禁词出现的时间 | |||||
} | } | ||||
}, | }, | ||||
computed: { | computed: { | ||||
@@ -341,7 +342,9 @@ | |||||
} | } | ||||
}) | }) | ||||
this.findTabooWordsList = arr | this.findTabooWordsList = arr | ||||
this.isFirstWords = arr[0].bg | |||||
console.log(this.findTabooWordsList, 'findTabooWordsList') | console.log(this.findTabooWordsList, 'findTabooWordsList') | ||||
}) | }) | ||||
}, | }, | ||||
@@ -438,6 +441,7 @@ | |||||
this.itemobj = item | this.itemobj = item | ||||
this.recordPath = res[0].recordPath | this.recordPath = res[0].recordPath | ||||
uni.setStorageSync("searchobj", item); //写入缓存 | uni.setStorageSync("searchobj", item); //写入缓存 | ||||
console.log('在这里调用的', item) | |||||
this.roleindex = 0; | this.roleindex = 0; | ||||
this.gituserlist() | this.gituserlist() | ||||
this.findTabooWords() | this.findTabooWords() | ||||
@@ -536,7 +540,7 @@ | |||||
// 初始化音频以及页面数据 | // 初始化音频以及页面数据 | ||||
init(info) { | |||||
init(info, type) { | |||||
this.sliderMax = 0; //进度条最大值 | this.sliderMax = 0; //进度条最大值 | ||||
this.timeStr = "00:00"; //总的时间 | this.timeStr = "00:00"; //总的时间 | ||||
const parames = { | const parames = { | ||||
@@ -555,6 +559,7 @@ | |||||
} else { | } else { | ||||
this.kehuyixiangcenterindex = 1; | this.kehuyixiangcenterindex = 1; | ||||
} | } | ||||
if (info.bg != 0) { | if (info.bg != 0) { | ||||
this.luyinList = res; | this.luyinList = res; | ||||
this.recordPath = res[0].recordPath | this.recordPath = res[0].recordPath | ||||
@@ -813,10 +818,11 @@ | |||||
//长按点击播放 | //长按点击播放 | ||||
clickbofang(dialog, item, type) { | clickbofang(dialog, item, type) { | ||||
if (type == 'show') { | if (type == 'show') { | ||||
this.isFirstWords = 0 // 重置为零 | |||||
this.current = 1 | this.current = 1 | ||||
this.infos = item | this.infos = item | ||||
this.audioType = true | this.audioType = true | ||||
this.init(this.infos) | |||||
this.init(this.infos, type) | |||||
return | return | ||||
} else { | } else { | ||||
this.audioType = false | this.audioType = false | ||||
@@ -921,7 +927,7 @@ | |||||
//录音实例 | //录音实例 | ||||
zyAudio() { | |||||
zyAudio(times) { | |||||
let data = [{ | let data = [{ | ||||
src: this.recordPath, | src: this.recordPath, | ||||
title: '录音音频', | title: '录音音频', | ||||
@@ -933,6 +939,12 @@ | |||||
//渲染第一首音频 | //渲染第一首音频 | ||||
this.$zaudio.setRender(0) | this.$zaudio.setRender(0) | ||||
console.log(this.$zaudio) | console.log(this.$zaudio) | ||||
if (this.isFirstWords != 0) { | |||||
setTimeout(() => { | |||||
this.stepPlay(Math.floor(this.isFirstWords/1000)) | |||||
this.isFirstWords = 0 | |||||
}, 1000) | |||||
} | |||||
setTimeout(() => { | setTimeout(() => { | ||||
this.$zaudio.operate() | this.$zaudio.operate() | ||||
}, 150) | }, 150) | ||||
@@ -122,6 +122,11 @@ | |||||
this.$u.post("/corpus/findByPage", parames).then(res => { | this.$u.post("/corpus/findByPage", parames).then(res => { | ||||
if(res[0].merge==0){ | if(res[0].merge==0){ | ||||
let newobj = res[0]; | let newobj = res[0]; | ||||
if (this.tipsFncName) { | |||||
uni.$emit(this.tipsFncName, item) | |||||
uni.navigateBack() | |||||
return | |||||
} | |||||
uni.navigateTo({ | uni.navigateTo({ | ||||
url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${'2'}` | url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${'2'}` | ||||
}) | }) | ||||
@@ -661,9 +661,10 @@ | |||||
console.log(item) | console.log(item) | ||||
if (item.selected == 0) { | if (item.selected == 0) { | ||||
console.log(item) | console.log(item) | ||||
this.Pinspeak = false | |||||
uni.navigateTo({ | uni.navigateTo({ | ||||
url: '/pages/mine/ScoringPlaylist?customerId=' + this.customerId + "&id=" + item | url: '/pages/mine/ScoringPlaylist?customerId=' + this.customerId + "&id=" + item | ||||
.keywordsId + "&type=" + 1 | |||||
.keywordsId + "&type=" + 1 + '&UpDateEvent=DETAILS2INIT' | |||||
}) | }) | ||||
} | } | ||||
}, | }, | ||||
@@ -704,9 +705,10 @@ | |||||
clickaudeopal(item) { | clickaudeopal(item) { | ||||
if (item.selected == 0) { | if (item.selected == 0) { | ||||
console.log(item) | console.log(item) | ||||
this.Pinspeak = false | |||||
uni.navigateTo({ | uni.navigateTo({ | ||||
url: '/pages/mine/ScoringPlaylist?customerId=' + this.customerId + "&id=" + item | url: '/pages/mine/ScoringPlaylist?customerId=' + this.customerId + "&id=" + item | ||||
.marketingId + "&type=" + 0 | |||||
.marketingId + "&type=" + 0 + '&UpDateEvent=DETAILS2INIT' | |||||
}) | }) | ||||
} | } | ||||
}, | }, | ||||