index_1.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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: 1,
  45. target: target
  46. }))
  47. redirectUrl = profileServer+'/gateway/authentication/oauth/sso?response_type=token&client_id=P7dIRS0FvX&state='
  48. +state+'&scope=read&redirect_uri='+profileServer+'/profile/app/mprofile/html/signin.html?idCardNo='+idCard+'&user=tourists'
  49. location.replace(redirectUrl)
  50. }
  51. function queryInit(){
  52. getReqPromise("patient/baseinfo", {}, 'json', 'post').then(function(res){
  53. if(res.status == 200) {
  54. idCard = res.data && res.data.idcardAll
  55. redirect()
  56. } else {
  57. dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:res.msg}).show();
  58. }
  59. }).catch(function(e) {
  60. console && console.error(e)
  61. })
  62. }
  63. </script>
  64. </html>