|
@ -196,7 +196,7 @@ new Vue({
|
|
|
consultingAPI.sendMessage(vm.sessionId, {data: params}).then(function(res){
|
|
|
console.log(res);
|
|
|
vm.count++;
|
|
|
if(vm.count==1 && JSON.parse(window.localStorage.getItem('wlyyAgent')).level=="1"){//level:1 专科医生 (只记录第一条数据)
|
|
|
if(vm.count==1){//level:1 专科医生 (只记录第一条数据)
|
|
|
var messages = res.messages[0];
|
|
|
var guidanceParams = {
|
|
|
messageId:messages.id,//消息id
|
|
@ -204,9 +204,7 @@ new Vue({
|
|
|
planDetailId:vm.planDetailId,//服务项目id
|
|
|
contentType:messages.content_type//消息类型
|
|
|
}
|
|
|
debugger
|
|
|
consultingAPI.saveGuidanceMessage(guidanceParams).then(function(rs){
|
|
|
debugger
|
|
|
if(rs.status==200){
|
|
|
|
|
|
}else{
|
|
@ -278,7 +276,11 @@ new Vue({
|
|
|
if(reply.content_type == 18 || reply.content_type == 19){//居民名片、聊天记录
|
|
|
content = "暂不支持此类信息";
|
|
|
}else{
|
|
|
content = JSON.parse(reply.content);
|
|
|
if(vm.isString(reply.content)){
|
|
|
content = reply.content;
|
|
|
}else{
|
|
|
content = JSON.parse(reply.content);
|
|
|
}
|
|
|
}
|
|
|
}catch(e){
|
|
|
if(reply.content_type == 12){ //视频文件
|
|
@ -303,6 +305,9 @@ new Vue({
|
|
|
}
|
|
|
return html;
|
|
|
},
|
|
|
isString:function(str){
|
|
|
return (typeof str=='string')&&str.constructor==String;
|
|
|
},
|
|
|
showWarningMsg:function(msg){
|
|
|
toastr.warning(msg)
|
|
|
}
|