1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>就诊记录</title>
- <meta name="format-detection" content="telephone=no"/>
- <meta name="viewport"
- content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
- <meta name="apple-mobile-web-app-capable" content="yes"/>
- <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
- <link rel="stylesheet" href="../../../css/cross.css" type="text/css"/>
- <link rel="stylesheet" href="../../../css/cross.ui.css" type="text/css"/>
- <link rel="stylesheet" type="text/css" href="../../../css/ss-style.css">
- <link rel="stylesheet" type="text/css" href="../../../iconfont/iconfont.css" />
- </head>
- <body>
- </body>
- <script type="text/javascript" src="../../../js/jquery/2.1.3/jquery.js"></script>
- <script type="text/javascript" src="../../../js/app.js" ></script>
- <script type="text/javascript" src="../../../js/mui.min.js" ></script>
- <script type="text/javascript" src="../../../js/common_http.js" ></script>
- <script type="text/javascript" src="../../../js/weixin_common.js" ></script>
- <link rel="stylesheet" type="text/css" href="../../../widget/artDialog/6.0.5/css/ui-dialog.min.css">
- <script src="../../../widget/artDialog/6.0.5/js/dialog-plus.min.js"></script>
- <script src="../../../js/underscore.js"></script>
- <script src="../../../js/es6-promise.js"></script>
- <script type="text/javascript">
- var queryParam = GetRequest()
- var redirectUrl = ""
- var pagetype = 5;
- var d = dialog({contentType:'load', skin:'bk-popup'});
-
- var target = "wx", idCard = ""
- if(queryParam.target == "app") {
- target = queryParam.target
- }
-
- if(target == "wx") {
- checkUserAgent();
- } else {
- idCard = queryParam.demographic_id
- redirect()
- }
-
- function redirect() {
- var state = encodeURIComponent(JSON.stringify({
- itemIndex: 0,
- target: target,
- filter: "org_code%3D49229004X"
- }))
- redirectUrl = profileServer+'/gateway/authentication/oauth/sso?response_type=token&client_id=P7dIRS0FvX&state='
- +state+'&scope=read&redirect_uri='+profileServer+'/profile/app/mprofile/html/signin.html?idCardNo='+idCard+'&user=tourists'
-
- if(target == "wx") {
- location.replace(redirectUrl)
- } else {
- location.href = redirectUrl
- }
-
- }
-
- function queryInit(){
- getReqPromise("patient/baseinfo", {}, 'json', 'post').then(function(res){
- if(res.status == 200) {
- idCard = res.data && res.data.idcardAll
- redirect()
- } else {
- dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:res.msg}).show();
- }
- }).catch(function(e) {
- console && console.error(e)
- })
- }
- </script>
- </html>
|