index_0.html 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>就诊记录</title>
  6. <meta name="format-detection" content="telephone=no"/>
  7. <meta name="viewport"
  8. content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
  9. <meta name="apple-mobile-web-app-capable" content="yes"/>
  10. <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
  11. <link rel="stylesheet" href="../../../css/cross.css" type="text/css"/>
  12. <link rel="stylesheet" href="../../../css/cross.ui.css" type="text/css"/>
  13. <link rel="stylesheet" type="text/css" href="../../../css/ss-style.css">
  14. <link rel="stylesheet" type="text/css" href="../../../iconfont/iconfont.css" />
  15. </head>
  16. <body>
  17. </body>
  18. <script type="text/javascript" src="../../../js/jquery/2.1.3/jquery.js"></script>
  19. <script type="text/javascript" src="../../../js/app.js" ></script>
  20. <script type="text/javascript" src="../../../js/mui.min.js" ></script>
  21. <script type="text/javascript" src="../../../js/common_http.js" ></script>
  22. <script type="text/javascript" src="../../../js/weixin_common.js" ></script>
  23. <link rel="stylesheet" type="text/css" href="../../../widget/artDialog/6.0.5/css/ui-dialog.min.css">
  24. <script src="../../../widget/artDialog/6.0.5/js/dialog-plus.min.js"></script>
  25. <script src="../../../js/underscore.js"></script>
  26. <script src="../../../js/es6-promise.js"></script>
  27. <script type="text/javascript">
  28. var queryParam = GetRequest()
  29. var redirectUrl = ""
  30. var pagetype = 5;
  31. var d = dialog({contentType:'load', skin:'bk-popup'});
  32. var target = "wx", idCard = ""
  33. if(queryParam.target == "app") {
  34. target = queryParam.target
  35. }
  36. if(target == "wx") {
  37. checkUserAgent();
  38. } else {
  39. idCard = queryParam.demographic_id
  40. redirect()
  41. }
  42. function redirect() {
  43. var state = encodeURIComponent(JSON.stringify({
  44. itemIndex: 0,
  45. target: target,
  46. filter: "org_code%3D49229004X"
  47. }))
  48. redirectUrl = profileServer+'/gateway/authentication/oauth/sso?response_type=token&client_id=P7dIRS0FvX&state='
  49. +state+'&scope=read&redirect_uri='+profileServer+'/profile/app/mprofile/html/signin.html?idCardNo='+idCard+'&user=tourists'
  50. if(target == "wx") {
  51. location.replace(redirectUrl)
  52. } else {
  53. location.href = redirectUrl
  54. }
  55. }
  56. function queryInit(){
  57. getReqPromise("patient/baseinfo", {}, 'json', 'post').then(function(res){
  58. if(res.status == 200) {
  59. idCard = res.data && res.data.idcardAll
  60. redirect()
  61. } else {
  62. dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:res.msg}).show();
  63. }
  64. }).catch(function(e) {
  65. console && console.error(e)
  66. })
  67. }
  68. </script>
  69. </html>