|  | @ -12,6 +12,8 @@
 | 
	
		
			
				|  |  | 		<link rel="stylesheet" href="../../../common/cross/css/cross.css" type="text/css" />
 | 
	
		
			
				|  |  | 		<link rel="stylesheet" href="../../../common/cross/css/cross.ui.css" type="text/css" />
 | 
	
		
			
				|  |  | 		<link rel="stylesheet" type="text/css" href="../../../common/css/jy-style.css">
 | 
	
		
			
				|  |  | 		<link rel="stylesheet" type="text/css" href="../iconfont/iconfont.css">
 | 
	
		
			
				|  |  | 		<link rel="stylesheet" href="../css/td-style.css" />
 | 
	
		
			
				|  |  | 		<style type="text/css">
 | 
	
		
			
				|  |  | 			.jkzx-td{
 | 
	
		
			
				|  |  | 				position: absolute;
 | 
	
	
		
			
				|  | @ -171,12 +173,12 @@
 | 
	
		
			
				|  |  | 			<li class="checked" data-name="健康咨询">
 | 
	
		
			
				|  |  | 				<img src="../images/checked_blue.png"><label>健康咨询</label>
 | 
	
		
			
				|  |  | 			</li>
 | 
	
		
			
				|  |  | 			<li class="" data-name="公共咨询">
 | 
	
		
			
				|  |  | 			<!--<li class="" data-name="公共咨询">
 | 
	
		
			
				|  |  | 				<img src="../images/checked_blue.png"><label>公共咨询</label>
 | 
	
		
			
				|  |  | 			</li>
 | 
	
		
			
				|  |  | 			<li class="" data-name="续方咨询" id="xfzx" style="display: none;">
 | 
	
		
			
				|  |  | 				<img src="../images/checked_blue.png"><label>续方咨询</label>
 | 
	
		
			
				|  |  | 			</li>
 | 
	
		
			
				|  |  | 			</li>-->
 | 
	
		
			
				|  |  | 		</ul>
 | 
	
		
			
				|  |  | 		<!--下拉选择-->
 | 
	
		
			
				|  |  | 		
 | 
	
	
		
			
				|  | @ -184,22 +186,33 @@
 | 
	
		
			
				|  |  | 			<div class="h45">
 | 
	
		
			
				|  |  | 				<div class="demo-comtop">
 | 
	
		
			
				|  |  | 					<a class="mui-action-back" href="../../home/html/xiaoxi.html"></a>
 | 
	
		
			
				|  |  | 					<h1><span class="jkzx-title">健康咨询</span><label class="lin-down-arrow"></label></h1>
 | 
	
		
			
				|  |  | 					<a data-href="../../zdzx/html/tuanduitongji.html" class="jkzx-td" style="display: none;font-size: 16px;">团队统计</a>
 | 
	
		
			
				|  |  | 					<h1><span class="jkzx-title">健康咨询</span><!--<label class="lin-down-arrow"></label>--></h1>
 | 
	
		
			
				|  |  | 					<!--<a data-href="../../zdzx/html/tuanduitongji.html" class="jkzx-td" style="display: none;font-size: 16px;">团队统计</a>-->
 | 
	
		
			
				|  |  | 				</div>
 | 
	
		
			
				|  |  | 			</div>
 | 
	
		
			
				|  |  | 			<div style="position: fixed;top: 45px;left: 0;right: 0;bottom:0" id='con1'></div>
 | 
	
		
			
				|  |  | 			<div style="display:none;position: fixed;top: 45px;left: 0;right: 0;bottom:0" id='con2'></div>
 | 
	
		
			
				|  |  | 			<ul class="td-tit">
 | 
	
		
			
				|  |  | 				<!--总的回复情况-->
 | 
	
		
			
				|  |  | 			</ul>
 | 
	
		
			
				|  |  | 			<div style="position: fixed;top: 145px;left: 0;right: 0;bottom:0" id='con1'></div>
 | 
	
		
			
				|  |  | 			<div style="display:none;position: fixed;top: 145px;left: 0;right: 0;bottom:0" id='con2'></div>
 | 
	
		
			
				|  |  | 		</div>
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 	</body>
 | 
	
		
			
				|  |  | 	<script type="text/javascript" src="../../../js/jquery/2.1.3/jquery.js"></script>
 | 
	
		
			
				|  |  | 	<script src="../../../js/mui.min.js"></script>
 | 
	
		
			
				|  |  | 	<script src="../../js/common.js"></script>
 | 
	
		
			
				|  |  | 	<script src="../../../js/template.js" type="text/javascript" charset="utf-8"></script>
 | 
	
		
			
				|  |  | 	<script src="../../../js/common_http.js" type="text/javascript" charset="utf-8"></script>
 | 
	
		
			
				|  |  | 	<script type="text/html" id="totalReply">
 | 
	
		
			
				|  |  | 		<li><div class="wait-num">{{data.totalUnReply}}</div><div>未回复</span></li>
 | 
	
		
			
				|  |  | 		<li><div class="ok-num">{{data.totalReply}}</div><div>已回复</span></li>
 | 
	
		
			
				|  |  | 		<li><div class="con-num">{{data.totalConsult}}</div><div>咨询量</span></li>
 | 
	
		
			
				|  |  | 	</script>
 | 
	
		
			
				|  |  | 	<script type="text/javascript">
 | 
	
		
			
				|  |  | 		var self;
 | 
	
		
			
				|  |  | 		var zdwv, ggwv,xfwv;
 | 
	
		
			
				|  |  | 		var $linMask = $('.lin-mask'),
 | 
	
		
			
				|  |  | 		var $tdTit = $('.td-tit'),
 | 
	
		
			
				|  |  | 			$linMask = $('.lin-mask'),
 | 
	
		
			
				|  |  | 			$linSelGroup = $('.lin-sel-group'),
 | 
	
		
			
				|  |  | 			$linSelGroupChilds = $linSelGroup.children(),
 | 
	
		
			
				|  |  | 			$jkzxTitle = $('.jkzx-title');
 | 
	
	
		
			
				|  | @ -208,22 +221,26 @@
 | 
	
		
			
				|  |  | 		mui.plusReady(function() {
 | 
	
		
			
				|  |  | 			docInfo = JSON.parse(plus.storage.getItem("docInfo"));
 | 
	
		
			
				|  |  | 			teamInfo = JSON.parse(plus.storage.getItem("teamInfo"));
 | 
	
		
			
				|  |  | 			
 | 
	
		
			
				|  |  | 			getTotalData()
 | 
	
		
			
				|  |  | 			
 | 
	
		
			
				|  |  | 			
 | 
	
		
			
				|  |  | 			var wvStyle = {
 | 
	
		
			
				|  |  | 				top: "45px",
 | 
	
		
			
				|  |  | 				top: "145px",
 | 
	
		
			
				|  |  | 				bottom: "0px"
 | 
	
		
			
				|  |  | 			};
 | 
	
		
			
				|  |  | 			self = plus.webview.currentWebview();
 | 
	
		
			
				|  |  | 			zdwv = plus.webview.create("../../zdzx/html/zhidingzixun.html",
 | 
	
		
			
				|  |  | 				"zhidingzixun", wvStyle);
 | 
	
		
			
				|  |  | 			ggwv = plus.webview.create("../../ggzx/html/gonggongzixun.html",
 | 
	
		
			
				|  |  | 				"gonggongzixun", wvStyle);
 | 
	
		
			
				|  |  | 			xfwv = plus.webview.create("../../prescription/html/xufangzixun.html",
 | 
	
		
			
				|  |  | 				"xufangzixun", wvStyle); 
 | 
	
		
			
				|  |  | //			ggwv = plus.webview.create("../../ggzx/html/gonggongzixun.html",
 | 
	
		
			
				|  |  | //				"gonggongzixun", wvStyle);
 | 
	
		
			
				|  |  | //			xfwv = plus.webview.create("../../prescription/html/xufangzixun.html",
 | 
	
		
			
				|  |  | //				"xufangzixun", wvStyle); 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 			ggwv.hide();
 | 
	
		
			
				|  |  | 			xfwv.hide();
 | 
	
		
			
				|  |  | 			self.append(xfwv);
 | 
	
		
			
				|  |  | 			self.append(ggwv);  
 | 
	
		
			
				|  |  | //			ggwv.hide();
 | 
	
		
			
				|  |  | //			xfwv.hide();
 | 
	
		
			
				|  |  | //			self.append(xfwv);
 | 
	
		
			
				|  |  | //			self.append(ggwv);  
 | 
	
		
			
				|  |  | 			self.append(zdwv);  
 | 
	
		
			
				|  |  | 			plus.nativeUI.closeWaiting();
 | 
	
		
			
				|  |  | 			
 | 
	
	
		
			
				|  | @ -245,94 +262,111 @@
 | 
	
		
			
				|  |  | 			}	
 | 
	
		
			
				|  |  | 		})
 | 
	
		
			
				|  |  | 		
 | 
	
		
			
				|  |  | 		$('.jkzx-td').on( 'click', function () {
 | 
	
		
			
				|  |  | 			mui.openWindow({
 | 
	
		
			
				|  |  | 				id: 'jkzx-td',
 | 
	
		
			
				|  |  | 				url: $(this).attr('data-href'),
 | 
	
		
			
				|  |  | 				waiting:{
 | 
	
		
			
				|  |  | 					autoShow:false
 | 
	
		
			
				|  |  | 				},
 | 
	
		
			
				|  |  | 				extras:{}
 | 
	
		
			
				|  |  | 			})
 | 
	
		
			
				|  |  | 		});
 | 
	
		
			
				|  |  | 		
 | 
	
		
			
				|  |  | 		mui("#menulab").on("tap", "li", function() {
 | 
	
		
			
				|  |  | 			$("#menulab li").removeClass("hit");
 | 
	
		
			
				|  |  | 			$(this).addClass("hit");
 | 
	
		
			
				|  |  | 			var dval = this.getAttribute("data-val");
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 			if(dval == "1")  {
 | 
	
		
			
				|  |  | 				mui.fire(zdwv, 'refresh');
 | 
	
		
			
				|  |  | 				plus.webview.show(zdwv);
 | 
	
		
			
				|  |  | 				plus.webview.hide(ggwv);
 | 
	
		
			
				|  |  | 			} else if(dval == "0") {
 | 
	
		
			
				|  |  | 				mui.fire(ggwv, "refresh");
 | 
	
		
			
				|  |  | 				plus.webview.show(ggwv);
 | 
	
		
			
				|  |  | 				plus.webview.hide(zdwv);
 | 
	
		
			
				|  |  | 		//获取团队回复情况总量
 | 
	
		
			
				|  |  | 		function getTotalData () {
 | 
	
		
			
				|  |  | //			var lastTeamId = docInfo.adminTeamCode;
 | 
	
		
			
				|  |  | //			sendGet('im_new/consult/getTeamData',{adminTeamCode:lastTeamId},null,getDocInfoListSucc);
 | 
	
		
			
				|  |  | 			sendGet('im_new/consult/getDoctorData',{},null,getDocInfoListSucc);
 | 
	
		
			
				|  |  | 		}
 | 
	
		
			
				|  |  | 		function getDocInfoListSucc (data) {
 | 
	
		
			
				|  |  | 			if (data.status === 200) {
 | 
	
		
			
				|  |  | 				if (data.data.doctors.length > 0) {
 | 
	
		
			
				|  |  | 					var totalReplyHtml = template('totalReply', {data: data.data});
 | 
	
		
			
				|  |  | 					$tdTit.html(totalReplyHtml);
 | 
	
		
			
				|  |  | 				}
 | 
	
		
			
				|  |  | 			} else {
 | 
	
		
			
				|  |  | 				mui.toast(data.msg);
 | 
	
		
			
				|  |  | 			}
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 		});
 | 
	
		
			
				|  |  | 		}
 | 
	
		
			
				|  |  | 		
 | 
	
		
			
				|  |  | //		$('.jkzx-td').on( 'click', function () {
 | 
	
		
			
				|  |  | //			mui.openWindow({
 | 
	
		
			
				|  |  | //				id: 'jkzx-td',
 | 
	
		
			
				|  |  | //				url: $(this).attr('data-href'),
 | 
	
		
			
				|  |  | //				waiting:{
 | 
	
		
			
				|  |  | //					autoShow:false
 | 
	
		
			
				|  |  | //				},
 | 
	
		
			
				|  |  | //				extras:{}
 | 
	
		
			
				|  |  | //			})
 | 
	
		
			
				|  |  | //		});
 | 
	
		
			
				|  |  | 		
 | 
	
		
			
				|  |  | //		mui("#menulab").on("tap", "li", function() {
 | 
	
		
			
				|  |  | //			$("#menulab li").removeClass("hit");
 | 
	
		
			
				|  |  | //			$(this).addClass("hit");
 | 
	
		
			
				|  |  | //			var dval = this.getAttribute("data-val");
 | 
	
		
			
				|  |  | //
 | 
	
		
			
				|  |  | //			if(dval == "1")  {
 | 
	
		
			
				|  |  | //				mui.fire(zdwv, 'refresh');
 | 
	
		
			
				|  |  | //				plus.webview.show(zdwv);
 | 
	
		
			
				|  |  | //				plus.webview.hide(ggwv);
 | 
	
		
			
				|  |  | //			} else if(dval == "0") {
 | 
	
		
			
				|  |  | //				mui.fire(ggwv, "refresh");
 | 
	
		
			
				|  |  | //				plus.webview.show(ggwv);
 | 
	
		
			
				|  |  | //				plus.webview.hide(zdwv);
 | 
	
		
			
				|  |  | //			}
 | 
	
		
			
				|  |  | //
 | 
	
		
			
				|  |  | //		});
 | 
	
		
			
				|  |  | 		//显示下拉框
 | 
	
		
			
				|  |  | 		$('.demo-comtop h1').on('click', function () {
 | 
	
		
			
				|  |  | 			ggwv.hide();
 | 
	
		
			
				|  |  | 			zdwv.hide();
 | 
	
		
			
				|  |  | 			xfwv.hide();
 | 
	
		
			
				|  |  | 			$linMask.show();
 | 
	
		
			
				|  |  | 			$linSelGroup.show();
 | 
	
		
			
				|  |  | 		});
 | 
	
		
			
				|  |  | //		$('.demo-comtop h1').on('click', function () {
 | 
	
		
			
				|  |  | //			ggwv.hide();
 | 
	
		
			
				|  |  | //			zdwv.hide();
 | 
	
		
			
				|  |  | //			xfwv.hide();
 | 
	
		
			
				|  |  | //			$linMask.show();
 | 
	
		
			
				|  |  | //			$linSelGroup.show();
 | 
	
		
			
				|  |  | //		});
 | 
	
		
			
				|  |  | 		//选择选下拉选项
 | 
	
		
			
				|  |  | 		$linSelGroupChilds.on( 'click', function () {
 | 
	
		
			
				|  |  | 			var index = $(this).index(),
 | 
	
		
			
				|  |  | 			    dataName = $linSelGroupChilds.eq(index).attr('data-name');
 | 
	
		
			
				|  |  | 		    $jkzxTitle.html(dataName);
 | 
	
		
			
				|  |  | 		    $(this).addClass('checked').siblings().removeClass('checked');
 | 
	
		
			
				|  |  | 		    switch (index) {
 | 
	
		
			
				|  |  | 		    	case 0:
 | 
	
		
			
				|  |  | //					mui.fire(zdwv, 'refresh');
 | 
	
		
			
				|  |  | 					plus.webview.show(zdwv);
 | 
	
		
			
				|  |  | 					plus.webview.hide(ggwv);
 | 
	
		
			
				|  |  | 					plus.webview.hide(xfwv);
 | 
	
		
			
				|  |  | 					
 | 
	
		
			
				|  |  | 		    		break;
 | 
	
		
			
				|  |  | 	    		case 1:
 | 
	
		
			
				|  |  | 					mui.fire(ggwv, "refresh");
 | 
	
		
			
				|  |  | 					plus.webview.show(ggwv);
 | 
	
		
			
				|  |  | 					plus.webview.hide(zdwv);
 | 
	
		
			
				|  |  | 					plus.webview.hide(xfwv);
 | 
	
		
			
				|  |  | 					
 | 
	
		
			
				|  |  | 		    		break;
 | 
	
		
			
				|  |  | 	    		case 2:
 | 
	
		
			
				|  |  | //					mui.fire(xfwv, "refresh");
 | 
	
		
			
				|  |  | 					plus.webview.show(xfwv);
 | 
	
		
			
				|  |  | 					plus.webview.hide(zdwv);
 | 
	
		
			
				|  |  | 					plus.webview.hide(ggwv);
 | 
	
		
			
				|  |  | 					
 | 
	
		
			
				|  |  | 	    		break;
 | 
	
		
			
				|  |  | 		    }
 | 
	
		
			
				|  |  | 			$linMask.hide();
 | 
	
		
			
				|  |  | 			$linSelGroup.hide();
 | 
	
		
			
				|  |  | 		});
 | 
	
		
			
				|  |  | 		$linMask.on( 'click', function () {
 | 
	
		
			
				|  |  | 			var isFirst = $linSelGroupChilds.eq(0).hasClass('checked');
 | 
	
		
			
				|  |  | 			var isSec   = $linSelGroupChilds.eq(1).hasClass('checked');
 | 
	
		
			
				|  |  | 			var isThr   = $linSelGroupChilds.eq(2).hasClass('checked');
 | 
	
		
			
				|  |  | 			if (isFirst) {
 | 
	
		
			
				|  |  | 				plus.webview.show(zdwv);
 | 
	
		
			
				|  |  | 				plus.webview.hide(ggwv);
 | 
	
		
			
				|  |  | 				plus.webview.hide(xfwv);
 | 
	
		
			
				|  |  | 				
 | 
	
		
			
				|  |  | 			}else if(isSec){
 | 
	
		
			
				|  |  | 				plus.webview.show(ggwv);
 | 
	
		
			
				|  |  | 				plus.webview.hide(zdwv);
 | 
	
		
			
				|  |  | 				plus.webview.hide(xfwv);
 | 
	
		
			
				|  |  | 				
 | 
	
		
			
				|  |  | 			}else if(isThr){
 | 
	
		
			
				|  |  | 				plus.webview.show(xfwv);
 | 
	
		
			
				|  |  | 				plus.webview.hide(ggwv);
 | 
	
		
			
				|  |  | 				plus.webview.hide(zdwv);
 | 
	
		
			
				|  |  | 				
 | 
	
		
			
				|  |  | 			}
 | 
	
		
			
				|  |  | 		});
 | 
	
		
			
				|  |  | //		$linSelGroupChilds.on( 'click', function () {
 | 
	
		
			
				|  |  | //			var index = $(this).index(),
 | 
	
		
			
				|  |  | //			    dataName = $linSelGroupChilds.eq(index).attr('data-name');
 | 
	
		
			
				|  |  | //		    $jkzxTitle.html(dataName);
 | 
	
		
			
				|  |  | //		    $(this).addClass('checked').siblings().removeClass('checked');
 | 
	
		
			
				|  |  | //		    switch (index) {
 | 
	
		
			
				|  |  | //		    	case 0:
 | 
	
		
			
				|  |  | ////					mui.fire(zdwv, 'refresh');
 | 
	
		
			
				|  |  | //					plus.webview.show(zdwv);
 | 
	
		
			
				|  |  | //					plus.webview.hide(ggwv);
 | 
	
		
			
				|  |  | //					plus.webview.hide(xfwv);
 | 
	
		
			
				|  |  | //					
 | 
	
		
			
				|  |  | //		    		break;
 | 
	
		
			
				|  |  | //	    		case 1:
 | 
	
		
			
				|  |  | //					mui.fire(ggwv, "refresh");
 | 
	
		
			
				|  |  | //					plus.webview.show(ggwv);
 | 
	
		
			
				|  |  | //					plus.webview.hide(zdwv);
 | 
	
		
			
				|  |  | //					plus.webview.hide(xfwv);
 | 
	
		
			
				|  |  | //					
 | 
	
		
			
				|  |  | //		    		break;
 | 
	
		
			
				|  |  | //	    		case 2:
 | 
	
		
			
				|  |  | ////					mui.fire(xfwv, "refresh");
 | 
	
		
			
				|  |  | //					plus.webview.show(xfwv);
 | 
	
		
			
				|  |  | //					plus.webview.hide(zdwv);
 | 
	
		
			
				|  |  | //					plus.webview.hide(ggwv);
 | 
	
		
			
				|  |  | //					
 | 
	
		
			
				|  |  | //	    		break;
 | 
	
		
			
				|  |  | //		    }
 | 
	
		
			
				|  |  | //			$linMask.hide();
 | 
	
		
			
				|  |  | //			$linSelGroup.hide();
 | 
	
		
			
				|  |  | //		});
 | 
	
		
			
				|  |  | //		$linMask.on( 'click', function () {
 | 
	
		
			
				|  |  | //			var isFirst = $linSelGroupChilds.eq(0).hasClass('checked');
 | 
	
		
			
				|  |  | //			var isSec   = $linSelGroupChilds.eq(1).hasClass('checked');
 | 
	
		
			
				|  |  | //			var isThr   = $linSelGroupChilds.eq(2).hasClass('checked');
 | 
	
		
			
				|  |  | //			if (isFirst) {
 | 
	
		
			
				|  |  | //				plus.webview.show(zdwv);
 | 
	
		
			
				|  |  | //				plus.webview.hide(ggwv);
 | 
	
		
			
				|  |  | //				plus.webview.hide(xfwv);
 | 
	
		
			
				|  |  | //				
 | 
	
		
			
				|  |  | //			}else if(isSec){
 | 
	
		
			
				|  |  | //				plus.webview.show(ggwv);
 | 
	
		
			
				|  |  | //				plus.webview.hide(zdwv);
 | 
	
		
			
				|  |  | //				plus.webview.hide(xfwv);
 | 
	
		
			
				|  |  | //				
 | 
	
		
			
				|  |  | //			}else if(isThr){
 | 
	
		
			
				|  |  | //				plus.webview.show(xfwv);
 | 
	
		
			
				|  |  | //				plus.webview.hide(ggwv);
 | 
	
		
			
				|  |  | //				plus.webview.hide(zdwv);
 | 
	
		
			
				|  |  | //				
 | 
	
		
			
				|  |  | //			}
 | 
	
		
			
				|  |  | //		});
 | 
	
		
			
				|  |  | 	</script>
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | </html>
 |