|
@ -1,21 +1,54 @@
|
|
<!DOCTYPE html>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<html>
|
|
<head>
|
|
<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>
|
|
</head>
|
|
<body>
|
|
<body>
|
|
<script src="../../../js/jquery/2.1.3/jquery.js"></script>
|
|
<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/weixin_common.js" ></script>
|
|
<script type="text/javascript" src="../../../js/common_http.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>
|
|
<script>
|
|
var pagetype = 51;
|
|
var pagetype = 51;
|
|
$(function(){
|
|
$(function(){
|
|
|
|
var loading = dialog({
|
|
|
|
contentType: 'load',
|
|
|
|
skin: 'bk-popup',
|
|
|
|
});
|
|
var userAgent = window.localStorage.getItem(agentName);
|
|
var userAgent = window.localStorage.getItem(agentName);
|
|
if(userAgent){
|
|
if(userAgent){
|
|
var jsonstr = $.parseJSON(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{
|
|
}else{
|
|
checkUserAgent();
|
|
checkUserAgent();
|
|
}
|
|
}
|