| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -190,9 +190,9 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								// 获取元素距离父级元素顶部的距离
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								let offsetTop  = $('.msg-list-item.active').position().top | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$(".msg-list").animate({ scrollTop: offsetTop - 20}, 1) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$(".msg-list").animate({ scrollTop: offsetTop - 20}, 2000) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$(".msg-chat-list").animate({ scrollTop: $(".msg-chat-list")[0].scrollHeight - $('.msg-chat-list').height() + 200 }, 1) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$(".msg-chat-list").animate({ scrollTop: $(".msg-chat-list")[0].scrollHeight - $('.msg-chat-list').height() + 600 }, 2000) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$('.msg-image').on('click', function (e) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									$('.image').click(); | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -218,7 +218,7 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											templateHtml = templateHtml.replace('#contents', imgDoc) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											templateHtml = templateHtml.replace('#times', msgTime) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											$(".msg-chat-list").append(templateHtml) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											$(".msg-chat-list").animate({ scrollTop: $(".msg-chat-list")[0].scrollHeight - $('.msg-chat-list').height() + 200 }, 1) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											$(".msg-chat-list").animate({ scrollTop: $(".msg-chat-list")[0].scrollHeight - $('.msg-chat-list').height() + 600 }, 2000) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										}, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										error: function (error) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											console.log(error) | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |