diff --git a/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue b/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue
index 42a8ae7..7f50b31 100644
--- a/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue
+++ b/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue
@@ -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=`${che.onebest}`;
+ }
+ })
+ }
})
this.newluyinList=jsonInfo;
this.dialogList.push(jsonInfo[this.textindex]);
diff --git a/pages/center/consumer/index.vue b/pages/center/consumer/index.vue
index a10629e..7c7b575 100644
--- a/pages/center/consumer/index.vue
+++ b/pages/center/consumer/index.vue
@@ -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){
diff --git a/pages/center/records/index.vue b/pages/center/records/index.vue
index 9263a0f..9e770f9 100644
--- a/pages/center/records/index.vue
+++ b/pages/center/records/index.vue
@@ -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){
diff --git a/pages/index/customer.vue b/pages/index/customer.vue
index 6a91beb..2e8149a 100644
--- a/pages/index/customer.vue
+++ b/pages/index/customer.vue
@@ -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();
})
})
diff --git a/pages/index/index.vue b/pages/index/index.vue
index b6c9989..ba8e7ce 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -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'
});
}
},
diff --git a/pages/learning/Thefulltext/index.vue b/pages/learning/Thefulltext/index.vue
index c7788c3..655bab6 100644
--- a/pages/learning/Thefulltext/index.vue
+++ b/pages/learning/Thefulltext/index.vue
@@ -1,10 +1,10 @@
-
请输入关键字
-
+ -->
{{date}}
@@ -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=`${che.onebest}`;
+ // }
+ // })
+ // }
this.dialogList.push({
message: jsonInfo
});
diff --git a/pages/learning/Thefulltext/index2.vue b/pages/learning/Thefulltext/index2.vue
index d309406..2d4157f 100644
--- a/pages/learning/Thefulltext/index2.vue
+++ b/pages/learning/Thefulltext/index2.vue
@@ -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=`${che.onebest}`;
+ }
+ })
+ }
})
- console.log(jsonInfo)
-
this.newluyinList=jsonInfo;
this.dialogList.push(jsonInfo[this.textindex]);
var itc=parseInt(info.bg/1000)
diff --git a/pages/learning/Thefulltext/search.vue b/pages/learning/Thefulltext/search.vue
index 6adbda9..c7ae88c 100644
--- a/pages/learning/Thefulltext/search.vue
+++ b/pages/learning/Thefulltext/search.vue
@@ -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'}`
})
}
})
diff --git a/pages/mine/details.vue b/pages/mine/details.vue
index 9c06f9f..8c88322 100644
--- a/pages/mine/details.vue
+++ b/pages/mine/details.vue
@@ -1,10 +1,10 @@
-
请输入关键字
-
+ -->
{{date}}
@@ -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=`${che.onebest}`;
+ // }
+ // })
+ // }
+ this.dialogList.push({
+ message: jsonInfo,
+ backindex:this.csdFileindex
+ });
this.dialogList.forEach((asd, idx) => {
asd.message.forEach((qwe, inde) => {
qwe.isshow = false;
diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue
index 42d805a..d6db868 100644
--- a/pages/mine/details2.vue
+++ b/pages/mine/details2.vue
@@ -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=`${che.onebest}`;
+ }
+ })
+ }
+
})
- console.log(jsonInfo)
+
this.newluyinList=jsonInfo;
this.dialogList.push(jsonInfo[this.textindex]);