analysis.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>耀荣康健</title>
  6. <link rel="stylesheet" type="text/css" href="/analysis/css/styles.css">
  7. <link rel="stylesheet" type="text/css" href="/analysis/js/layui/css/layui.css">
  8. <script src="/analysis/js/jquery-3.2.1.min.js"></script>
  9. <script src="/analysis/js/layer.js"></script>
  10. </head>
  11. <body>
  12. <div style="margin: 0 auto; height: 100%; width: 100%; text-align: center">
  13. <div style="display: flex; width: 100%; height: 112px; align-items: center; justify-content: center;background-color: #0044CB; color:#ffffff">
  14. <div style="width: 60%; display: flex; height: 100%; align-items: center">
  15. <a href="/analysis/index.html">
  16. <div style="width:50%; float: left; text-align: left"><img src="/analysis/img/LOGO.png"></div>
  17. </a>
  18. <div style="width:50%;float: right; text-align: right">
  19. <!-- <a href="/index.html" style="text-decoration: none; color: #ffffff; font-size: 24px"><span>主页</span></a>-->
  20. <span>&nbsp;&nbsp;&nbsp;&nbsp;</span>
  21. <!-- <span>个人资料</span>-->
  22. </div>
  23. </div>
  24. </div>
  25. <div style="width:100%; height:730px; display: flex; align-items: center; justify-content: center">
  26. <iframe id="gameIFrame" width="1000" height="600" frameborder="0" scrolling="false"></iframe>
  27. </div>
  28. <div style="font-size:14px; height: 98px; color: #999999; display: flex;
  29. align-items: center; justify-content: center; background: url(/analysis/img/d97f28a59f20114dad3adbeb0dab456f.png) 100% no-repeat;">
  30. 地址:&nbsp;北京市朝阳区东四环中路41号嘉泰国际A座16层1619室&nbsp;&nbsp;&nbsp;&nbsp;联系电话:400-086-1638<br/>
  31. 湘ICP备2024059687号-3
  32. </div>
  33. </div>
  34. <script>
  35. $(function () {
  36. // alert("aa")
  37. // layer.msg('hello')
  38. // layer.alert('酷毙了', {icon: 1});
  39. // layer.open({
  40. // skin: 'demo-class',
  41. // title: '在线调试',
  42. // content: '配置各种参数,试试效果aa',
  43. // end: function () {
  44. // alert("aa")
  45. // }
  46. // // ,offset:'rb'
  47. // });
  48. // layer.alert('cece', {icon: 2},function () {
  49. // layer.closeAll()
  50. // });
  51. checkLogin()
  52. })
  53. function checkLogin() {
  54. $.ajax({
  55. url: '/analysis/login/checkLogin',
  56. type: 'POST',
  57. dataType: 'json',
  58. success: function (res) {
  59. // console.log('成功:', res.code);
  60. if (res.code == 0) {
  61. // isLogin = true
  62. // docheck()
  63. // alert("aa")
  64. loadGame(res.data)
  65. } else {
  66. isLogin = false
  67. LAYER_ID = layer.open({
  68. // icon: 2,
  69. type: 2,
  70. title: ["请先登录", "font-size:18px"],
  71. // title: false,
  72. content: '/analysis/login.html',
  73. scrollbar: false,
  74. area: ['800px', '500px'],
  75. // offset:'100px',
  76. anim: 0,
  77. closeBtn: 0
  78. });
  79. }
  80. },
  81. error: function (xhr, status, error) {
  82. console.error('错误:', error);
  83. layer.alert("服务器繁忙,请稍后重试!", {icon: 2});
  84. }
  85. });
  86. }
  87. function afterLogin(data) {
  88. loadGame(data)
  89. }
  90. function loadGame(data) {
  91. // const url = '/game/index.html?view=web&phone='+data.phone
  92. const param = encodeURIComponent("view=web&phone=" + data.phone + "&hospitalId=&hospitalName=测试医院")
  93. // console.log(param)
  94. $("#gameIFrame").attr('src', '/analysis/game/index.html?' + param)
  95. }
  96. </script>
  97. </body>
  98. </html>