|
@ -46,8 +46,8 @@ var ui = {
|
|
areaMsgList: document.querySelector('#msg-list'),
|
|
areaMsgList: document.querySelector('#msg-list'),
|
|
boxSoundAlert: document.querySelector('#sound-alert')
|
|
boxSoundAlert: document.querySelector('#sound-alert')
|
|
};
|
|
};
|
|
|
|
|
|
patientcode = userAgent.uid;
|
|
|
|
|
|
var request = GetRequest();
|
|
|
|
patientcode = request.patientcode;
|
|
|
|
|
|
var patientName = "";
|
|
var patientName = "";
|
|
|
|
|
|
@ -92,8 +92,8 @@ var consulting = {
|
|
doResponse(res);
|
|
doResponse(res);
|
|
// }
|
|
// }
|
|
});
|
|
});
|
|
var userAgent1 = JSON.parse(window.localStorage.getItem(agentName1));
|
|
|
|
patientName = userAgent1.name;
|
|
|
|
|
|
// var userAgent1 = JSON.parse(window.localStorage.getItem(agentName1));
|
|
|
|
// patientName = userAgent1.name;
|
|
},
|
|
},
|
|
bindEvents: bindConsultEvents
|
|
bindEvents: bindConsultEvents
|
|
};
|
|
};
|
|
@ -350,7 +350,7 @@ function submitSuccess(res) {
|
|
//回复单条内容填写
|
|
//回复单条内容填写
|
|
var defaultPhoto = "../../../images/p-default.png";
|
|
var defaultPhoto = "../../../images/p-default.png";
|
|
var doctorDefaultPhoto = "../../../images/d-default.png";
|
|
var doctorDefaultPhoto = "../../../images/d-default.png";
|
|
function addReply(isDoctor, content, time, msgType, doctorName,photo,prepend, isSystem) {
|
|
|
|
|
|
function addReply(isDoctor, content, time, msgType, sender_name,photo,prepend, isSystem) {
|
|
//time = time.substr(10);
|
|
//time = time.substr(10);
|
|
var doctorPhoto = photo ? getImgUrl(photo) : doctorDefaultPhoto;
|
|
var doctorPhoto = photo ? getImgUrl(photo) : doctorDefaultPhoto;
|
|
var $div = $("<dl></dl>");
|
|
var $div = $("<dl></dl>");
|
|
@ -369,14 +369,12 @@ function addReply(isDoctor, content, time, msgType, doctorName,photo,prepend, is
|
|
if (isDoctor == 1) {
|
|
if (isDoctor == 1) {
|
|
$div.addClass('chat-left');
|
|
$div.addClass('chat-left');
|
|
img = doctorPhoto;
|
|
img = doctorPhoto;
|
|
name = doctorName;
|
|
|
|
} else {
|
|
} else {
|
|
$div.addClass('chat-right');
|
|
$div.addClass('chat-right');
|
|
img = photo? getImgUrl(photo):defaultPhoto;
|
|
img = photo? getImgUrl(photo):defaultPhoto;
|
|
defaultPhoto = img;
|
|
defaultPhoto = img;
|
|
name = patientName;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
name = sender_name;
|
|
var temp = '<dt style="height: auto; text-align: center;"><a><img src="' + img + '" class="c-images-cycle" /></a></dt>' +
|
|
var temp = '<dt style="height: auto; text-align: center;"><a><img src="' + img + '" class="c-images-cycle" /></a></dt>' +
|
|
'<div class="c-content"><span class="c-f12 name">' + name + '</span>'
|
|
'<div class="c-content"><span class="c-f12 name">' + name + '</span>'
|
|
switch(parseInt(msgType)) {
|
|
switch(parseInt(msgType)) {
|