Browse Source

修改指导留言

lulihong 6 years ago
parent
commit
f9ccb44343

+ 1 - 0
app/consulting/html/consulting.html

@ -9,6 +9,7 @@
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="favicon.ico">
    <link rel="stylesheet" type="text/css" href="../../../css/style.min.css"/>
    <link href="../../../css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="../../../css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="../../../css/animate.min.css" rel="stylesheet">

+ 9 - 4
app/consulting/js/consulting.js

@ -196,7 +196,7 @@ new Vue({
		    consultingAPI.sendMessage(vm.sessionId, {data: params}).then(function(res){
		        console.log(res);
		        vm.count++;
		        if(vm.count==1 && JSON.parse(window.localStorage.getItem('wlyyAgent')).level=="1"){//level:1 专科医生 (只记录第一条数据)
		        if(vm.count==1){//level:1 专科医生 (只记录第一条数据)
			        var messages = res.messages[0];
			        var guidanceParams = {
			        	messageId:messages.id,//消息id
@ -204,9 +204,7 @@ new Vue({
			        	planDetailId:vm.planDetailId,//服务项目id
			        	contentType:messages.content_type//消息类型
			        }
			        debugger
			        consultingAPI.saveGuidanceMessage(guidanceParams).then(function(rs){
			        	debugger
				        	if(rs.status==200){
				        		
				        	}else{
@ -278,7 +276,11 @@ new Vue({
		        	if(reply.content_type == 18 || reply.content_type == 19){//居民名片、聊天记录
		            	content = "暂不支持此类信息";
		            }else{
		        		 content = JSON.parse(reply.content);
		            	if(vm.isString(reply.content)){
		            		content = reply.content;
		            	}else{
		            		content = JSON.parse(reply.content);
		            	}
		        	}
		        }catch(e){
		            if(reply.content_type == 12){ //视频文件
@ -303,6 +305,9 @@ new Vue({
		    }
		    return html;
		},
		isString:function(str){
			return (typeof str=='string')&&str.constructor==String; 
		},
		showWarningMsg:function(msg){
			toastr.warning(msg)
		}

+ 9 - 4
app/rehabilitation/html/service_item_content.html

@ -35,8 +35,8 @@
			.icon-check{background-image: url(../images/icon/zhankai_btn.png);}
			.icon-16{width: 16px;height: 16px;}
			.icon-18{width: 18px;height: 18px;}
			.record-list{max-height: 0;overflow: hidden;transition: all .3s linear;}
			.record-list.active{max-height: 500px;}
			.record-list{/*max-height: 0;*/overflow: hidden;transition: all .3s linear;}
			.record-list.active{/*max-height: 500px;*/height: auto;}
			.record-item{background-color: #f5f5fa;margin-bottom: 10px;padding: 10px;}
			.service-top{font-size: 0;line-height: 1;font-weight: 500;}
			.service-name span{vertical-align: middle;font-size: 16px;}
@ -113,7 +113,7 @@
			      						{{item.createTime}}
			      					</div>
			      				</div>
			      				<div class="f14 c-333">{{item.content}}f</div>
			      				<div class="f14 c-333">{{item.content}}</div>
		      				</div>
	      				</div>
		      			<div class="flex-box btns-group">
@ -219,6 +219,7 @@
							this.loadSocket(planid);
						},
						zdly:function(data){
							var vm = this
							var loginDoctor = JSON.parse(window.localStorage.getItem('wlyyAgent'));
							var otherCode,otherName;
							var planDetailId=data.planDetaiId;
@ -239,7 +240,11 @@
							  maxmin: true,
							  closeBtn:1,
							  shift: 5,
							  content: '../../consulting/html/consulting.html?otherCode='+otherCode+'&otherName='+encodeURI(otherName)+'&planDetailId='+planDetailId
							  shadeClose: false, //点击遮罩关闭层
							  content: '../../consulting/html/consulting.html?otherCode='+otherCode+'&otherName='+encodeURI(otherName)+'&planDetailId='+planDetailId,
							  end:function(){ // 未点击确定按钮,点击关闭按钮  
						      vm.getServiceItemList();
						    }
							});
						},
						loadSocket:function(planid){