wangxiaohua 2 years ago
parent
commit
59193b06ee
10 changed files with 108 additions and 75 deletions
  1. +8
    -1
      pages/center/Piabodata/Customerportrait/Receivedetailabout.vue
  2. +13
    -6
      pages/center/consumer/index.vue
  3. +13
    -6
      pages/center/records/index.vue
  4. +5
    -9
      pages/index/customer.vue
  5. +2
    -2
      pages/index/index.vue
  6. +12
    -6
      pages/learning/Thefulltext/index.vue
  7. +10
    -4
      pages/learning/Thefulltext/index2.vue
  8. +5
    -2
      pages/learning/Thefulltext/search.vue
  9. +26
    -37
      pages/mine/details.vue
  10. +14
    -2
      pages/mine/details2.vue

+ 8
- 1
pages/center/Piabodata/Customerportrait/Receivedetailabout.vue View File

@@ -812,7 +812,14 @@
jsonInfo.forEach(item=>{
item.message=JSON.parse(item.onebest)
item.backindex=this.csdFileindex
item.backindex=this.csdFileindex;
if(info.onebest){
item.message.forEach(che=>{
if(che.onebest==info.onebest){
che.onebest=`<font style='color: red'>${che.onebest}</font>`;
}
})
}
})
this.newluyinList=jsonInfo;
this.dialogList.push(jsonInfo[this.textindex]);


+ 13
- 6
pages/center/consumer/index.vue View File

@@ -182,15 +182,22 @@
freeList:[],
userInfo:{},
findKeywordsList:[],
isnorefresh:''
}
},
onLoad(options) {
this.isnorefresh=options.refresh;
},
onShow() {
this.buildingID = uni.getStorageSync('buildingID').id;
this.nextPage=1;
this.recordList=[]
this.getMyCustom()
this.getFreeList()
this.getfindKeywordsList()
if(this.isnorefresh=='refresh'){
this.buildingID = uni.getStorageSync('buildingID').id;
this.nextPage=1;
this.recordList=[]
this.getMyCustom()
this.getFreeList()
this.getfindKeywordsList()
this.isnorefresh='';
}
},
onReachBottom() {
if(this.totalRecord==this.nextPage){


+ 13
- 6
pages/center/records/index.vue View File

@@ -168,15 +168,22 @@
nextPage:1,
totalRecord:"",
staTime:'',
endtime:''
endtime:'',
isnorefresh:'',
}
},
onLoad(options) {
this.isnorefresh=options.refresh;
},
onShow() {
this.buildingID = uni.getStorageSync('buildingID').id;
this.recordList=[];
this.nextPage=1;
this.getMyCustom()
this.getFreeList();
if(this.isnorefresh=='refresh'){
this.buildingID = uni.getStorageSync('buildingID').id;
this.recordList=[];
this.nextPage=1;
this.getMyCustom()
this.getFreeList();
this.isnorefresh='';
}
},
onReachBottom() {
if(this.totalRecord==this.nextPage){


+ 5
- 9
pages/index/customer.vue View File

@@ -98,15 +98,17 @@
customerId: item.id,
}
}
var item={
var itemsd={
bg:0,
customerId:item.id,
id:'',
onebest:''
}
this.$u.post("/corpus/findByPage", parames).then(res => {
if(res){
let newobj = res[0];
uni.navigateTo({
url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(item)}&stateisshow=${"1"}`
url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(itemsd)}&stateisshow=${"1"}`
})
}else{
uni.showToast({
@@ -122,13 +124,7 @@
queryHaveDept() {
return new Promise((resolve, reject) => {
this.$u.get("/user/queryHaveDept?houseId="+this.buildingID).then(res => {
this.isAdd=res;
// if(this.isAdd == 0 && (this.dataCode!=6||(dataCode==6&&addAccount==0))){
// }
this.isAdd=res;
resolve();
})
})


+ 2
- 2
pages/index/index.vue View File

@@ -427,7 +427,7 @@
});
} else if (item == '接待记录') {
uni.navigateTo({
url: '/pages/center/records/index'
url: '/pages/center/records/index?refresh='+'refresh'
});
} else if (item == '值班顾问') {
uni.navigateTo({
@@ -439,7 +439,7 @@
});
} else {
uni.navigateTo({
url: '/pages/center/consumer/index'
url: '/pages/center/consumer/index?refresh='+'refresh'
});
}
},


+ 12
- 6
pages/learning/Thefulltext/index.vue View File

@@ -1,10 +1,10 @@
<template>
<view class="translation" @click="changeEditing(false)">
<view style="width: 690rpx;height: 64rpx;margin: 0 auto;margin-top: 30rpx;background: #F2F2F2;border-radius: 32rpx;
<!-- <view style="width: 690rpx;height: 64rpx;margin: 0 auto;margin-top: 30rpx;background: #F2F2F2;border-radius: 32rpx;
display: flex;align-items: center;" @tap="toKeywordsearch()">
<image style="width: 28rpx;height: 28rpx;margin-left: 30rpx;" src="/static/images/search.png" mode=""></image>
<text style="margin-left: 10rpx;color: #999999;font-size: 24rpx;">请输入关键字</text>
</view>
</view> -->
<view class="top" style="margin-top: 30rpx;">
<view class="title">
<view class="call_record_time">{{date}}</view>
@@ -496,11 +496,10 @@
this.timeStr = this.getTime(res[index].recordDuration)
this.date = res[index].receptionTime;
this.isshowFile = false;
this.getCorpusAnalysis();
this.getCorpusAnalysis(info);
this.creatAudio()
var itc=parseInt(info.bg/1000)
this.adasdasdasd(itc)
this.adasdasdasd(itc)
}
})
}else{
@@ -524,7 +523,7 @@
this.innerAudioContext.play();
},
// 获取转义后的对话结果
getCorpusAnalysis(){
getCorpusAnalysis(info){
this.dialogList = [];
uni.showLoading({
title: '加载中'
@@ -544,6 +543,13 @@
}, 2000);
}else{
const jsonInfo = JSON.parse(data.data.data.audioContent);
// if(info.onebest){
// jsonInfo.forEach(che=>{
// if(che.onebest==info.onebest){
// che.onebest=`<font style='color: red'>${che.onebest}</font>`;
// }
// })
// }
this.dialogList.push({
message: jsonInfo
});


+ 10
- 4
pages/learning/Thefulltext/index2.vue View File

@@ -252,7 +252,7 @@
var info = currPage.data.info;
}
console.log(info)
console.log(info,656456546)
this.innerAudioContext = uni.createInnerAudioContext();
this.innerAudioContext.autoplay = false;
this.innerAudioContext.title = '音频';
@@ -506,12 +506,18 @@
//下拉标记点
this.toptextindex=data.data.data.index;
console.log(info.onebest+":66666666666666666666666666666")
jsonInfo.forEach(item=>{
item.message=JSON.parse(item.onebest)
item.backindex=this.csdFileindex
item.backindex=this.csdFileindex;
if(info.onebest){
item.message.forEach(che=>{
if(che.onebest==info.onebest){
che.onebest=`<font style='color: red'>${che.onebest}</font>`;
}
})
}
})
console.log(jsonInfo)
this.newluyinList=jsonInfo;
this.dialogList.push(jsonInfo[this.textindex]);
var itc=parseInt(info.bg/1000)


+ 5
- 2
pages/learning/Thefulltext/search.vue View File

@@ -86,6 +86,7 @@
item.customerId=this.customerId;
item.id=id;
item.index=index;
if(this.skpl==2){
this.infostust(item)
}else{
@@ -105,7 +106,8 @@
var itemobjhh={
bg:d[0].bg,
customerId:d[0].customerId,
id:''
id:'',
onebest:d[0].onebest,
}
const parames = {
pageNum: 1,
@@ -114,6 +116,7 @@
customerId: this.customerId,
}
}
console.log(item)
this.$u.post("/corpus/findByPage", parames).then(res => {
if(res[0].merge==0){
let newobj = res[0];
@@ -123,7 +126,7 @@
}else{
let newobj = res[0];
uni.navigateTo({
url: `/pages/learning/Thefulltext/index1?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(itemobjhh)}&stateisshow=${'2'}`
url: `/pages/learning/Thefulltext/index?customerId=${newobj.customerId}&status=${newobj.status}&itemobj=${JSON.stringify(itemobjhh)}&stateisshow=${'2'}`
})
}
})


+ 26
- 37
pages/mine/details.vue View File

@@ -1,10 +1,10 @@
<template>
<view class="translation">
<view style="width: 690rpx;height: 64rpx;margin: 0 auto;margin-top: 30rpx;background: #F2F2F2;border-radius: 32rpx;
<!-- <view style="width: 690rpx;height: 64rpx;margin: 0 auto;margin-top: 30rpx;background: #F2F2F2;border-radius: 32rpx;
display: flex;align-items: center;" @tap="toKeywordsearch()">
<image style="width: 28rpx;height: 28rpx;margin-left: 30rpx;" src="/static/images/search.png" mode=""></image>
<text style="margin-left: 10rpx;color: #999999;font-size: 24rpx;">请输入关键字</text>
</view>
</view> -->
<view class="top" style="margin-top: 30rpx;">
<view class="title">
<view class="call_record_time">{{date}}</view>
@@ -229,7 +229,7 @@
if(this.stateisshow==2){
if(this.stateisshow==1){
var info =this.itemobj;
}else{
var pages = getCurrentPages();
@@ -240,7 +240,7 @@
this.innerAudioContext = uni.createInnerAudioContext();
this.innerAudioContext.autoplay = false;
this.innerAudioContext.title = '音频';
console.log(this.itemobj)
this.onPlay()
this.onPause()
this.onCanplay()
@@ -249,6 +249,7 @@
this.onSeeked()
this.TimeUpdate()
this.init(info)
},
// 在组件实例被从页面节点树移除时执行
destroyed: function() {
@@ -368,6 +369,15 @@
this.creatAudio()
var itc=parseInt(info.bg/1000)
this.adasdasdasd(itc)
}else{
this.recordPath = res[0].recordPath
this.sliderMax = this.getTime(res[0].recordDuration)
this.timeStr = this.getTime(res[0].recordDuration)
this.date = res[0].receptionTime
this.innerAudioContext.src = this.recordPath;
this.changePlayState()
this.luyinList = res;
this.getCorpusAnalysis(info)
}
})
}else{
@@ -378,7 +388,7 @@
this.innerAudioContext.src = this.recordPath;
this.changePlayState()
this.luyinList = res;
this.getCorpusAnalysis()
this.getCorpusAnalysis(info)
}
}
})
@@ -846,38 +856,17 @@
}, 2000);
} else {
const jsonInfo = JSON.parse(data.data.data.audioContent);
console.log(jsonInfo)
if(this.luyinList[this.csdFileindex].recordDuration>360){
//拿到总条数
var stusnum=jsonInfo.length;
this.dialogList.push({
message: jsonInfo.splice(0,80),
backindex:this.csdFileindex
});
var auth_timetimer = setInterval(() => {
stusnum-=100;
console.log("还剩下"+stusnum)
if (stusnum <= 0) {
console.log("停止")
clearInterval(auth_timetimer);
}else{
console.log("添加")
var newlistwang=[];
newlistwang=jsonInfo.splice(0,100);
console.log("新数组",newlistwang)
newlistwang.forEach(item=>{
this.dialogList[0].message.push(item)
})
}
}, 1000);
}else{
this.dialogList.push({
message: jsonInfo,
backindex:this.csdFileindex
});
}
// if(info.onebest){
// jsonInfo.forEach(che=>{
// if(che.onebest==info.onebest){
// che.onebest=`<font style='color: red'>${che.onebest}</font>`;
// }
// })
// }
this.dialogList.push({
message: jsonInfo,
backindex:this.csdFileindex
});
this.dialogList.forEach((asd, idx) => {
asd.message.forEach((qwe, inde) => {
qwe.isshow = false;


+ 14
- 2
pages/mine/details2.vue View File

@@ -421,6 +421,8 @@
var currPage = pages[pages.length - 1]; //当前页面
var info = currPage.data.info;
}
console.log(info)
this.innerAudioContext = uni.createInnerAudioContext();
this.innerAudioContext.autoplay = false;
@@ -1226,6 +1228,8 @@
success: (data) => {
this.tablist=[];
let jsonInfo = JSON.parse(data.data.data.audioContent);
for(var i=0;i<=data.data.data.speakerNum;i++){
if(i==0){
this.tablist.push({
@@ -1314,9 +1318,17 @@
jsonInfo.forEach(item=>{
item.message=JSON.parse(item.onebest)
item.backindex=this.csdFileindex
item.backindex=this.csdFileindex;
if(info.onebest){
item.message.forEach(che=>{
if(che.onebest==info.onebest){
che.onebest=`<font style='color: red'>${che.onebest}</font>`;
}
})
}
})
console.log(jsonInfo)
this.newluyinList=jsonInfo;
this.dialogList.push(jsonInfo[this.textindex]);


Loading…
Cancel
Save