فهرست منبع

没有绑定就诊卡禁止预约挂号、预约记录

lulihong 6 سال پیش
والد
کامیت
1505a41a0a
3فایلهای تغییر یافته به همراه75 افزوده شده و 9 حذف شده
  1. 1 1
      html/grzx/html/my-detail.html
  2. 37 4
      html/wdyy/html/yuyueguahao.html
  3. 37 4
      html/wdyy/html/yuyuejilu.html

+ 1 - 1
html/grzx/html/my-detail.html

@ -20,7 +20,7 @@
			<div class="div-head-content">
				<img id="photo" src="" width="60" height="60" class="portrait-img" />
				<div>
					<div class="c-f18 c-fff mt25" id="name">张三</div>
					<div class="c-f18 c-fff mt25" id="name"></div>
					<img src="../images/01weixin_icon.png" width="20" height="20" class="mt5 weixing-icon" />
				</div>
				<img src="../images/qiehuanjiaren_icon.png" width="33" height="33" class="qiehuan-jiaren" onclick="goPage('../../grzx/html/change-login.html')" />

+ 37 - 4
html/wdyy/html/yuyueguahao.html

@ -1,21 +1,54 @@
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="renderer" content="webkit">
		<meta http-equiv="Cache-Control" content="no-siteapp">
		<meta http-equiv="X-UA-Compatible" content="IE=Edge">
		<title>预约挂号</title>
		<link rel="stylesheet" type="text/css" href="../../../widget/artDialog/6.0.5/css/ui-dialog.min.css">
	</head>
	<body>
		<script src="../../../js/jquery/2.1.3/jquery.js"></script> 
        <script type="text/javascript" src="../../../js/weixin_common.js" ></script>
        <script type="text/javascript" src="../../../js/common_http.js" ></script>
        <script type="text/javascript" src="../../../js/app.js" ></script>
        <script src="../../../widget/artDialog/6.0.5/js/dialog-plus.js"></script>
        <script type="text/javascript" src="../../../js/app.js" ></script> 
		<script>
			var pagetype = 51;
			$(function(){
				var loading = dialog({
					contentType: 'load',
					skin: 'bk-popup',
				});
				var userAgent = window.localStorage.getItem(agentName);
				if(userAgent){
					var jsonstr = $.parseJSON(userAgent);
					top.location.href = registrationServer+"/apiweb/tp.html?point=department&hospitalId="+hospitalId+"&thirdPartyUserId=" + jsonstr.uid + "&appId="+yuYueAppId+"&sourceType=1";
					loading.showModal();
					sendPost("patient/card/getCardList", {patient:jsonstr.uid}, "json", "get",function(){
					 	loading.close();
				    	dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'请求失败'}).show();
				       }, function(res){
				       	 loading.close();
				        if(res.status == 200){ 
				        	if(res.data.length>0){
				        		top.location.href = registrationServer+"/apiweb/tp.html?point=department&hospitalId="+hospitalId+"&thirdPartyUserId=" + jsonstr.uid + "&appId="+yuYueAppId+"&sourceType=1";
				        	}else{//未绑定就诊卡
				        		dialog({
						            content: "请先绑定就诊卡,再预约挂号", 
						            okValue: '确定',
						            ok: function(){
						                window.location.href='../../payment/html/patientIDCards.html';
						            },
//						            cancelValue: '我再看看',
//						            cancel: function(){}
						        }).showModal()
				        	}
				        }else{
				          dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'数据获取失败'}).show();
				        }
				    })
				}else{
					checkUserAgent();
				}

+ 37 - 4
html/wdyy/html/yuyuejilu.html

@ -1,21 +1,54 @@
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="renderer" content="webkit">
		<meta http-equiv="Cache-Control" content="no-siteapp">
		<meta http-equiv="X-UA-Compatible" content="IE=Edge">
		<title>预约记录</title>
		<link rel="stylesheet" type="text/css" href="../../../widget/artDialog/6.0.5/css/ui-dialog.min.css">
	</head>
	<body>
		<script src="../../../js/jquery/2.1.3/jquery.js"></script> 
        <script type="text/javascript" src="../../../js/weixin_common.js" ></script>
        <script type="text/javascript" src="../../../js/common_http.js" ></script>
        <script type="text/javascript" src="../../../js/app.js" ></script>
        <script src="../../../widget/artDialog/6.0.5/js/dialog-plus.js"></script>
        <script type="text/javascript" src="../../../js/app.js" ></script> 
		<script>
			var pagetype = 52;
			$(function(){
				var loading = dialog({
					contentType: 'load',
					skin: 'bk-popup',
				});
				var userAgent = window.localStorage.getItem(agentName);
				if(userAgent){
					var jsonstr = $.parseJSON(userAgent);
					top.location.href = registrationServer+"/apiweb/tp.html?point=ghjl&thirdPartyUserId=" + jsonstr.uid + "&appId="+yuYueAppId+"&sourceType=1";
					loading.showModal();
					sendPost("patient/card/getCardList", {patient:jsonstr.uid}, "json", "get",function(){
					 	loading.close();
				    	dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'请求失败'}).show();
				       }, function(res){
				       	 loading.close();
				        if(res.status == 200){ 
				        	if(res.data.length>0){
				        		top.location.href = registrationServer+"/apiweb/tp.html?point=ghjl&thirdPartyUserId=" + jsonstr.uid + "&appId="+yuYueAppId+"&sourceType=1"
				        	}else{//未绑定就诊卡
				        		dialog({
						            content: "请先绑定就诊卡,再看预约记录", 
						            okValue: '确定',
						            ok: function(){
						                window.location.href='../../payment/html/patientIDCards.html';
						            },
//						            cancelValue: '我再看看',
//						            cancel: function(){}
						        }).showModal()
				        	}
				        }else{
				          dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'数据获取失败'}).show();
				        }
				    })
				}else{
					checkUserAgent();
				}