|
@ -196,7 +196,8 @@ new Vue({
|
|
consultingAPI.sendMessage(vm.sessionId, {data: params}).then(function(res){
|
|
consultingAPI.sendMessage(vm.sessionId, {data: params}).then(function(res){
|
|
console.log(res);
|
|
console.log(res);
|
|
vm.count++;
|
|
vm.count++;
|
|
if(vm.count==1 && JSON.parse(window.localStorage.getItem('wlyyAgent')).doctorType==1 && vm.planDetailId && vm.planDetailId!="undefined"){//level:1 专科医生 (只记录第一条数据)
|
|
|
|
|
|
var doctorInfo = JSON.parse(window.localStorage.getItem('wlyyAgent'))
|
|
|
|
if(vm.count==1 && doctorInfo.doctorType==1 && vm.planDetailId && vm.planDetailId!="undefined"){//level:1 专科医生 (只记录第一条数据)
|
|
var messages = res.messages[0];
|
|
var messages = res.messages[0];
|
|
var guidanceParams = {
|
|
var guidanceParams = {
|
|
messageId:messages.id,//消息id
|
|
messageId:messages.id,//消息id
|