|  | @ -559,12 +559,14 @@ function finish(){
 | 
	
		
			
				|  |  |     dialog({
 | 
	
		
			
				|  |  |         content:'是否确认结束该次咨询?结束后医生将无法回复',
 | 
	
		
			
				|  |  |         ok: function (){
 | 
	
		
			
				|  |  |             d.show();
 | 
	
		
			
				|  |  |             var params = {}
 | 
	
		
			
				|  |  |             params.code = consultCode;                                
 | 
	
		
			
				|  |  |             //发送ajax请求, 查询设备列表信息
 | 
	
		
			
				|  |  |             sendPost("patient/consult/finish", params, "json", "post", submitFailed3,finish_Successs);
 | 
	
		
			
				|  |  |             function finish_Successs(res){
 | 
	
		
			
				|  |  |                 if (res.status == 200) {
 | 
	
		
			
				|  |  |                     d.close();
 | 
	
		
			
				|  |  |                 	localStorage.setItem("evaluate",0);//标志未评价
 | 
	
		
			
				|  |  |                     location.reload();
 | 
	
		
			
				|  |  |                 }
 | 
	
	
		
			
				|  | @ -986,7 +988,8 @@ function bindConsultEvents(){
 | 
	
		
			
				|  |  |     
 | 
	
		
			
				|  |  |     $(".xzzx").on('tap', function(){
 | 
	
		
			
				|  |  |     		//获取患者信息 判断该患者是否已经缴费 若缴费则正常咨询 未缴费提示咨询次数信息
 | 
	
		
			
				|  |  |       	getPatientInfo();
 | 
	
		
			
				|  |  | //    	getPatientInfo();
 | 
	
		
			
				|  |  |         checkDocInWork();
 | 
	
		
			
				|  |  |     })
 | 
	
		
			
				|  |  |     
 | 
	
		
			
				|  |  |     ui.boxMsgSound.addEventListener("touchstart", function(e) {
 | 
	
	
		
			
				|  | @ -1161,7 +1164,7 @@ Date.prototype.format = function(fmt) { //author: meizz
 | 
	
		
			
				|  |  | }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | //未缴费居民限制咨询次数
 | 
	
		
			
				|  |  | function	 limitZxTimes(){
 | 
	
		
			
				|  |  | function limitZxTimes(){
 | 
	
		
			
				|  |  | 	//获取剩余家庭咨询次数
 | 
	
		
			
				|  |  | 	var url = '/patient/consult/remainConsultTimes';
 | 
	
		
			
				|  |  | 	var remainTimes;//剩余咨询次数
 | 
	
	
		
			
				|  | @ -1251,49 +1254,25 @@ function querySignTypeSuccess(res){
 | 
	
		
			
				|  |  | //获取签约医生的工作时间
 | 
	
		
			
				|  |  | function checkDocInWork(type, doctor,docQkInfo){
 | 
	
		
			
				|  |  |     var url = 'patient/consult/isDoctorWorkWhenconsult',
 | 
	
		
			
				|  |  |         params = {doctor:docQkInfo.code,healthDoctor:doctor.code};
 | 
	
		
			
				|  |  |         params = {doctor: request.doctor};
 | 
	
		
			
				|  |  |     sendPost(url, params, 'json', 'post', queryFailed, function(res){
 | 
	
		
			
				|  |  |         if(res.status == 200){
 | 
	
		
			
				|  |  |         	//	data:0-医生不接受咨询/1-医生当前接受咨询/2-全科医生和健管师当前都不在工作时间/3-全科医生当前不在工作时间/4-健管师当前不在工作时间		     健管师当前不在工作时间
 | 
	
		
			
				|  |  | 			if(res.data==2){
 | 
	
		
			
				|  |  | 			if(!(res.data == "1")){
 | 
	
		
			
				|  |  | 				dialog({
 | 
	
		
			
				|  |  | 				    content: '您好,由于您的签约医生工作繁忙,设置了每日回复咨询的时间段,所以,在该时间段外的时间,您的咨询将不会马上获得医生的回复。',
 | 
	
		
			
				|  |  | 				    content: '您好,由于您关注的医生工作繁忙,设置了每日回复咨询的时间段,所以,在该时间段外的时间,您的咨询将不会马上获得医生的回复。',
 | 
	
		
			
				|  |  | 				    okValue:'查看医生工作时间',
 | 
	
		
			
				|  |  | 				    ok: function (){				            		
 | 
	
		
			
				|  |  | 				      	window.location.href = "../../yszx/html/doctor-work-hours.html?doctor=" + docQkInfo.code+"&healthDoctor="+doctor.code;
 | 
	
		
			
				|  |  | 				      	window.location.href = "../../yszx/html/doctor-work-hours.html?doctor=" + request.doctor;
 | 
	
		
			
				|  |  | 				    },
 | 
	
		
			
				|  |  | 				    cancelValue: '继续新增咨询',
 | 
	
		
			
				|  |  | 				    cancel: function () {
 | 
	
		
			
				|  |  | 						window.location.href = "../../yszx/html/add-consult.html?type="+request.type+"&doctorCode=" + request.doctor;
 | 
	
		
			
				|  |  | 				    }
 | 
	
		
			
				|  |  | 		   		 }).showModal();
 | 
	
		
			
				|  |  | 			}else if(res.data==3){
 | 
	
		
			
				|  |  | 				dialog({
 | 
	
		
			
				|  |  | 				    content: '您好,由于您的签约全科医生工作繁忙……,您的咨询将不会马上获得全科医生的回复 。',
 | 
	
		
			
				|  |  | 				    okValue:'查看医生工作时间',
 | 
	
		
			
				|  |  | 				    ok: function (){				            		
 | 
	
		
			
				|  |  | 				      	window.location.href = "../../yszx/html/doctor-work-hours.html?doctor=" + docQkInfo.code+"&healthDoctor="+doctor.code;
 | 
	
		
			
				|  |  | 				    },
 | 
	
		
			
				|  |  | 				    cancelValue: '继续新增咨询',
 | 
	
		
			
				|  |  | 				    cancel: function () {
 | 
	
		
			
				|  |  | 						window.location.href = "../../yszx/html/add-consult.html?type="+request.type+"&doctorCode=" + request.doctor;
 | 
	
		
			
				|  |  | 				    }
 | 
	
		
			
				|  |  | 		   		 }).showModal();
 | 
	
		
			
				|  |  | 			}else if(res.data==4){
 | 
	
		
			
				|  |  | 				dialog({
 | 
	
		
			
				|  |  | 				    content: '您好,由于您的签约健康管理师工作繁忙……,您的咨询将不会马上获得健康管理师的回复 。',
 | 
	
		
			
				|  |  | 				    okValue:'查看医生工作时间',
 | 
	
		
			
				|  |  | 				    ok: function (){				            		
 | 
	
		
			
				|  |  | 				      	window.location.href = "../../yszx/html/doctor-work-hours.html?doctor=" + docQkInfo.code+"&healthDoctor="+doctor.code;
 | 
	
		
			
				|  |  | 				    },
 | 
	
		
			
				|  |  | 				    cancelValue: '继续新增咨询',
 | 
	
		
			
				|  |  | 				    cancel: function () {
 | 
	
		
			
				|  |  | 						window.location.href = "../../yszx/html/add-consult.html?type="+request.type+"&doctorCode=" + request.doctor;
 | 
	
		
			
				|  |  | 						window.location.href = "../../yszx/html/add-consult.html?doctorCode="+request.doctor;
 | 
	
		
			
				|  |  | 				    }
 | 
	
		
			
				|  |  | 		   		 }).showModal();
 | 
	
		
			
				|  |  | 			}else{
 | 
	
		
			
				|  |  |                 //跳转到新增咨询页面
 | 
	
		
			
				|  |  |                 window.location.href = "../../yszx/html/add-consult.html?type="+request.type+"&doctorCode=" + request.doctor;
 | 
	
		
			
				|  |  |                 window.location.href = "../../yszx/html/add-consult.html?doctorCode=" + request.doctor;
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |         }else{
 | 
	
		
			
				|  |  |             queryFailed(res);
 |