Commit ce61e7bc by zujiaozhang

'修改聊天添加医助发图片、链接的展示'

parent 552ba942
...@@ -431,16 +431,12 @@ define([ 'zepto', 'medtap','mui'], function($, medtap,mui) { ...@@ -431,16 +431,12 @@ define([ 'zepto', 'medtap','mui'], function($, medtap,mui) {
'<p class="chat_from_name">' + '<p class="chat_from_name">' +
chat.helperName + chat.helperName +
'</p>' + '</p>' +
'<div class="chat_message chat_message_from chat_message_helper">' + '<div class="chat_message chat_message_from">' +
chat.record[i].content + chat.record[i].content +
'</div>' + '</div>' +
'</div>' + '</div>' +
'</div>' + '</div>' +
'</div>'; '</div>';
if(chat.record[i].content.includes('http')){
var html1 = '<a href="'+chat.record[i].content+'">'+chat.record[i].content+'</a>'
$('.chat_list .chat_message_helper').html(html1)
}
} }
} else if (type == 10) { } else if (type == 10) {
var content = JSON.parse(chat.record[i].content); var content = JSON.parse(chat.record[i].content);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment