|
@ -46,8 +46,8 @@ var ui = {
|
|
|
areaMsgList: document.querySelector('#msg-list'),
|
|
|
boxSoundAlert: document.querySelector('#sound-alert')
|
|
|
};
|
|
|
|
|
|
patientcode = userAgent.uid;
|
|
|
var request = GetRequest();
|
|
|
patientcode = request.patientcode;
|
|
|
|
|
|
var patientName = "";
|
|
|
|
|
@ -92,8 +92,8 @@ var consulting = {
|
|
|
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
|
|
|
};
|
|
@ -350,7 +350,7 @@ function submitSuccess(res) {
|
|
|
//回复单条内容填写
|
|
|
var defaultPhoto = "../../../images/p-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);
|
|
|
var doctorPhoto = photo ? getImgUrl(photo) : doctorDefaultPhoto;
|
|
|
var $div = $("<dl></dl>");
|
|
@ -369,14 +369,12 @@ function addReply(isDoctor, content, time, msgType, doctorName,photo,prepend, is
|
|
|
if (isDoctor == 1) {
|
|
|
$div.addClass('chat-left');
|
|
|
img = doctorPhoto;
|
|
|
name = doctorName;
|
|
|
} else {
|
|
|
$div.addClass('chat-right');
|
|
|
img = photo? getImgUrl(photo):defaultPhoto;
|
|
|
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>' +
|
|
|
'<div class="c-content"><span class="c-f12 name">' + name + '</span>'
|
|
|
switch(parseInt(msgType)) {
|