@@ -2,12 +2,12 @@ | |||||
* 小程序配置文件 | * 小程序配置文件 | ||||
*/ | */ | ||||
// 此处主机域名修改成腾讯云解决方案分配的域名 | // 此处主机域名修改成腾讯云解决方案分配的域名 | ||||
var host = 'http://121.42.63.138:9091/autoSR/api'; // 测试站 | |||||
// var host = 'http://121.42.63.138:9091/autoSR/api'; // 测试站 | |||||
// var host = 'http://192.168.31.169:8080/autoSR/api'; // 长龙 | // var host = 'http://192.168.31.169:8080/autoSR/api'; // 长龙 | ||||
// var host = 'http://192.168.31.134:8080/autoSR/api'; // 佳豪 | // var host = 'http://192.168.31.134:8080/autoSR/api'; // 佳豪 | ||||
// var host = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏 | // var host = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏 | ||||
// var host = 'https://zkgj.quhouse.com/api'; // 质控正式 | // var host = 'https://zkgj.quhouse.com/api'; // 质控正式 | ||||
// var host = 'https://hfju.com/api'; // 数智正式 | |||||
var host = 'https://hfju.com/api'; // 数智正式 | |||||
var iMServiceHost = 'https://im.quhouse.com/'; //IM的后端地址正式 | var iMServiceHost = 'https://im.quhouse.com/'; //IM的后端地址正式 | ||||
@@ -183,31 +183,35 @@ | |||||
query: { | query: { | ||||
customerId: item.id, | customerId: item.id, | ||||
} | } | ||||
} | |||||
var item={ | |||||
bg:0, | |||||
customerId:item.id, | |||||
} | |||||
uni.setStorageSync("searchobj", item); //写入缓存 | |||||
this.$u.post("/corpus/findByPage", parames).then(res => { | |||||
if(res==null){ | |||||
uni.showToast({ | |||||
icon: "none", | |||||
title: "暂无音频" | |||||
}) | |||||
return | |||||
}else{ | |||||
let newobj = res[0]; | |||||
if(res[0].merge==0){ | |||||
uni.navigateTo({ | |||||
url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"2"}` | |||||
} | |||||
this.$u.post("/customer/prohibitedMatch", {customerId:item.id}).then(res => { | |||||
let newweijin=res[0]; | |||||
newweijin.transferContent=JSON.parse(newweijin.transferContent) | |||||
var item={ | |||||
bg:newweijin.transferContent.bg, | |||||
customerId:newweijin.corpusId, | |||||
} | |||||
uni.setStorageSync("searchobj", item); //写入缓存 | |||||
this.$u.post("/corpus/findByPage", parames).then(res => { | |||||
if(res==null){ | |||||
uni.showToast({ | |||||
icon: "none", | |||||
title: "暂无音频" | |||||
}) | }) | ||||
return | |||||
}else{ | }else{ | ||||
uni.navigateTo({ | |||||
url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"1"}` | |||||
}) | |||||
let newobj = res[0]; | |||||
if(res[0].merge==0){ | |||||
uni.navigateTo({ | |||||
url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"2"}` | |||||
}) | |||||
}else{ | |||||
uni.navigateTo({ | |||||
url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"2"}` | |||||
}) | |||||
} | |||||
} | } | ||||
} | |||||
}) | |||||
}) | }) | ||||
} | } | ||||
@@ -274,19 +274,14 @@ | |||||
this.Menulistisshow=true; | this.Menulistisshow=true; | ||||
} | } | ||||
}) | }) | ||||
this.buildingID = uni.getStorageSync('buildingID').id; | this.buildingID = uni.getStorageSync('buildingID').id; | ||||
this.userInfo = uni.getStorageSync('weapp_session_userInfo_data'); | this.userInfo = uni.getStorageSync('weapp_session_userInfo_data'); | ||||
if (this.userInfo.dataCode == 6) { | if (this.userInfo.dataCode == 6) { | ||||
this.jiaoseshow = false | this.jiaoseshow = false | ||||
} | } | ||||
if(this.stateisshow==2){ | if(this.stateisshow==2){ | ||||
var info =this.itemobj; | var info =this.itemobj; | ||||
console.log(info) | |||||
}else{ | }else{ | ||||
var pages = getCurrentPages(); | var pages = getCurrentPages(); | ||||
var currPage = pages[pages.length - 1]; //当前页面 | var currPage = pages[pages.length - 1]; //当前页面 | ||||
@@ -405,7 +400,7 @@ | |||||
url: '/pages/learning/Keywordsearch?customerId='+this.customerId +"&status="+this.status +"&skpl="+"1" | url: '/pages/learning/Keywordsearch?customerId='+this.customerId +"&status="+this.status +"&skpl="+"1" | ||||
}) | }) | ||||
}, | }, | ||||
onPlay(){ | |||||
onPlay(){ | |||||
this.innerAudioContext.onPlay(() => { | this.innerAudioContext.onPlay(() => { | ||||
// 播放监听 | // 播放监听 | ||||
console.log('播放!'); | console.log('播放!'); | ||||
@@ -466,6 +461,7 @@ onPlay(){ | |||||
currentTime, | currentTime, | ||||
duration | duration | ||||
} = this.innerAudioContext; | } = this.innerAudioContext; | ||||
console.log(duration) | |||||
this.playNow = parseInt(currentTime * 1000) | this.playNow = parseInt(currentTime * 1000) | ||||
if (this.dialogList.length == 0) { | if (this.dialogList.length == 0) { | ||||
@@ -484,7 +480,6 @@ onPlay(){ | |||||
this.currentTimeStr = currTimeStr; | this.currentTimeStr = currTimeStr; | ||||
//进度条最大值 | //进度条最大值 | ||||
this.sliderMax = this.luyinList[this.csdFileindex].recordDuration; | this.sliderMax = this.luyinList[this.csdFileindex].recordDuration; | ||||
console.log(duration) | |||||
this.$forceUpdate() | this.$forceUpdate() | ||||
}); | }); | ||||
}, | }, | ||||
@@ -509,7 +504,8 @@ onPlay(){ | |||||
this.alltimeStr = this.getTime(alltime) | this.alltimeStr = this.getTime(alltime) | ||||
if(info){ | if(info){ | ||||
res.forEach((item,index) => { | res.forEach((item,index) => { | ||||
if(item.id==info.id){ | |||||
if(item.id==info.customerId){ | |||||
console.log(item.id) | |||||
this.luyinList = res; | this.luyinList = res; | ||||
this.csdFileindex=index; | this.csdFileindex=index; | ||||
this.recordPath = res[index].recordPath | this.recordPath = res[index].recordPath | ||||
@@ -520,8 +516,7 @@ onPlay(){ | |||||
this.isshowFile = false; | this.isshowFile = false; | ||||
this.getCorpusAnalysis(info); | this.getCorpusAnalysis(info); | ||||
this.creatAudio() | this.creatAudio() | ||||
var itc=parseInt(info.bg/1000) | |||||
this.adasdasdasd(itc) | |||||
} | } | ||||
}) | }) | ||||
}else{ | }else{ | ||||
@@ -533,7 +528,7 @@ onPlay(){ | |||||
// if(uni.getStorageSync('entrance')==2){ | // if(uni.getStorageSync('entrance')==2){ | ||||
// this.changePlayState() | // this.changePlayState() | ||||
// } | // } | ||||
console.log("11111111111111111111111") | |||||
this.luyinList = res; | this.luyinList = res; | ||||
this.getCorpusAnalysis() | this.getCorpusAnalysis() | ||||
} | } | ||||
@@ -542,14 +537,12 @@ onPlay(){ | |||||
}, | }, | ||||
//搜索跳转 | //搜索跳转 | ||||
adasdasdasd(e) { | adasdasdasd(e) { | ||||
console.log(e) | |||||
const currTimeStr = this.formatTime(e) | const currTimeStr = this.formatTime(e) | ||||
this.currentTimeStr = currTimeStr | this.currentTimeStr = currTimeStr | ||||
this.innerAudioContext.seek(e); | this.innerAudioContext.seek(e); | ||||
// if(uni.getStorageSync('entrance')==1){ | |||||
// return | |||||
// }else{ | |||||
// this.innerAudioContext.play(); | |||||
// } | |||||
this.innerAudioContext.play(); | |||||
}, | }, | ||||
//下一页 | //下一页 | ||||
ltolower() { | ltolower() { | ||||
@@ -983,6 +976,7 @@ onPlay(){ | |||||
// 获取转义后的对话结果 | // 获取转义后的对话结果 | ||||
getCorpusAnalysis(info) { | getCorpusAnalysis(info) { | ||||
// let cc=JSON.parse(this.userlistobj.sensitiveWords)[0] | |||||
this.dialogList = []; | this.dialogList = []; | ||||
uni.showLoading({ | uni.showLoading({ | ||||
title: '加载中' | title: '加载中' | ||||
@@ -1002,7 +996,6 @@ onPlay(){ | |||||
}, 2000); | }, 2000); | ||||
} else { | } else { | ||||
const jsonInfo = JSON.parse(data.data.data.audioContent); | const jsonInfo = JSON.parse(data.data.data.audioContent); | ||||
console.log(jsonInfo) | |||||
if(this.luyinList[this.csdFileindex].recordDuration>360){ | if(this.luyinList[this.csdFileindex].recordDuration>360){ | ||||
//拿到总条数 | //拿到总条数 | ||||
var stusnum=jsonInfo.length; | var stusnum=jsonInfo.length; | ||||
@@ -1039,6 +1032,9 @@ onPlay(){ | |||||
qwe.isshow = false; | qwe.isshow = false; | ||||
}) | }) | ||||
}) | }) | ||||
var itc=parseInt(info.bg/1000) | |||||
this.adasdasdasd(itc) | |||||
console.log("999999999999999999999") | |||||
setTimeout(function() { | setTimeout(function() { | ||||
uni.hideLoading(); | uni.hideLoading(); | ||||
}, 2000); | }, 2000); | ||||
@@ -1064,6 +1060,14 @@ onPlay(){ | |||||
} | } | ||||
}); | }); | ||||
}, | }, | ||||
//替换方法 | |||||
brightKeyword(val,cc) { | |||||
if (val.indexOf(cc) !== -1) { | |||||
return val.replace(cc, `<font style='color: red'>${cc}</font>`); | |||||
} else { | |||||
return val; | |||||
} | |||||
}, | |||||
getTime(time) { | getTime(time) { | ||||
return util.formatSecond(time) | return util.formatSecond(time) | ||||
}, | }, | ||||
@@ -542,6 +542,7 @@ | |||||
var currPage = pages[pages.length - 1]; //当前页面 | var currPage = pages[pages.length - 1]; //当前页面 | ||||
var info = currPage.data.info; | var info = currPage.data.info; | ||||
} | } | ||||
this.gituserlist() | |||||
this.innerAudioContext = uni.createInnerAudioContext(); | this.innerAudioContext = uni.createInnerAudioContext(); | ||||
this.innerAudioContext.autoplay = false; | this.innerAudioContext.autoplay = false; | ||||
this.innerAudioContext.title = '音频'; | this.innerAudioContext.title = '音频'; | ||||
@@ -561,14 +562,14 @@ | |||||
//暂停 | //暂停 | ||||
// this.innerAudioContext.pause() | // this.innerAudioContext.pause() | ||||
// 销毁 | // 销毁 | ||||
// this.innerAudioContext.destroy(); | |||||
this.innerAudioContext.destroy(); | |||||
}, | }, | ||||
// 销毁实例 | // 销毁实例 | ||||
onUnload: function() { | onUnload: function() { | ||||
//暂停 | //暂停 | ||||
// this.innerAudioContext.pause() | // this.innerAudioContext.pause() | ||||
// 销毁 | // 销毁 | ||||
// this.innerAudioContext.destroy(); | |||||
this.innerAudioContext.destroy(); | |||||
}, | }, | ||||
methods: { | methods: { | ||||
argece(item){ | argece(item){ | ||||
@@ -1025,27 +1026,27 @@ | |||||
// 播放监听 | // 播放监听 | ||||
console.log('播放!'); | console.log('播放!'); | ||||
this.audioPlay = true; | this.audioPlay = true; | ||||
// wx.enableAlertBeforeUnload({ | |||||
// message: "是否确认退出详情页面?", | |||||
// success: function (res) { | |||||
// console.log("方法注册成功:", res); | |||||
// }, | |||||
// fail: function (errMsg) { | |||||
// console.log("方法注册失败:", errMsg); | |||||
// }, | |||||
// }); | |||||
wx.enableAlertBeforeUnload({ | |||||
message: "是否确认退出详情页面?", | |||||
success: function (res) { | |||||
console.log("方法注册成功:", res); | |||||
}, | |||||
fail: function (errMsg) { | |||||
console.log("方法注册失败:", errMsg); | |||||
}, | |||||
}); | |||||
}); | }); | ||||
}, | }, | ||||
onPause(){ | onPause(){ | ||||
this.innerAudioContext.onPause(() => { | this.innerAudioContext.onPause(() => { | ||||
// wx.disableAlertBeforeUnload({ | |||||
// success:function(res){ | |||||
// console.log(res) | |||||
// }, | |||||
// fail:function(e){ | |||||
// console.log(e) | |||||
// } | |||||
// }); | |||||
wx.disableAlertBeforeUnload({ | |||||
success:function(res){ | |||||
console.log(res) | |||||
}, | |||||
fail:function(e){ | |||||
console.log(e) | |||||
} | |||||
}); | |||||
// 暂停监听 | // 暂停监听 | ||||
console.log('暂停播放!'); | console.log('暂停播放!'); | ||||
this.audioPlay = false | this.audioPlay = false | ||||
@@ -1076,7 +1077,7 @@ | |||||
}, | }, | ||||
TimeUpdate(){ | TimeUpdate(){ | ||||
this.innerAudioContext.onTimeUpdate(() => { | this.innerAudioContext.onTimeUpdate(() => { | ||||
var pages = getCurrentPages(); if(pages[pages.length-1].route!="pages/mine/details2"){ this.innerAudioContext.destroy(); } | |||||
// var pages = getCurrentPages(); // if(pages[pages.length-1].route!="pages/mine/details2"){ // this.innerAudioContext.destroy(); // } | |||||
const { | const { | ||||
currentTime, | currentTime, | ||||
duration | duration | ||||
@@ -1,10 +1,10 @@ | |||||
const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站 | |||||
// const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站 | |||||
// const baseUrl = 'http://192.168.31.169:8080/autoSR/api'; // 长龙 | // const baseUrl = 'http://192.168.31.169:8080/autoSR/api'; // 长龙 | ||||
// const baseUrl = 'http://192.168.31.134:8080/autoSR/api'; // 佳豪 | // const baseUrl = 'http://192.168.31.134:8080/autoSR/api'; // 佳豪 | ||||
// const baseUrl = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏 | // const baseUrl = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏 | ||||
// const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 | // const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 | ||||
// const baseUrl = 'https://hfju.com/api'; // 数智正式 | |||||
const baseUrl = 'https://hfju.com/api'; // 数智正式 | |||||
const install = (Vue, vm) => { | const install = (Vue, vm) => { | ||||
Vue.prototype.$u.http.setConfig({ | Vue.prototype.$u.http.setConfig({ | ||||