Browse Source

修改咨询语音和视频无法播放问题

lulihong 6 years ago
parent
commit
70b8798c4b
1 changed files with 11 additions and 10 deletions
  1. 11 10
      app/consulting/js/consulting.js

+ 11 - 10
app/consulting/js/consulting.js

@ -273,8 +273,17 @@ new Vue({
		        }
		        var content = '';
		        try{
		        	if(reply.content_type == 18 || reply.content_type == 19){//居民名片、聊天记录
		        	  if(reply.content_type == 18 || reply.content_type == 19){//居民名片、聊天记录
		            	content = "暂不支持此类信息";
		            }else if(reply.content_type == 3){ //语音
		                content = {};
		                content.path = JSON.parse(reply.content).path;
		            }else if(reply.content_type == 12){ //视频文件
		                var arr = reply.content.split(",");
		                content = {};
		                content.img = arr[0];
		                content.path = arr[1];
		                content.time = arr[2];
		            }else{
		            	if(vm.isString(reply.content)){
		            		content = reply.content;
@ -283,15 +292,7 @@ new Vue({
		            	}
		        	}
		        }catch(e){
		            if(reply.content_type == 12){ //视频文件
		                var arr = reply.content.split(",");
		                content = {};
		                content.img = arr[0];
		                content.path = arr[1];
		                content.time = arr[2];
		            }else{
		                content = reply.content;
		            }
		            
		        }
		        var obj = {
		            isSelf: isSelf,