scale.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>量表明细</title>
  6. <style>
  7. *{
  8. margin: 0;
  9. padding: 0;
  10. }
  11. ul,li{
  12. list-style: none;
  13. }
  14. table{
  15. border-collapse: collapse;
  16. border-spacing: 0;
  17. }
  18. body{
  19. font-size: 14px;
  20. overflow-y: scroll;
  21. font-family: '微软雅黑', '宋体';
  22. background: #dde2ea;
  23. height: 100%;
  24. color: #33475f;
  25. }
  26. .container {
  27. width: 80%;
  28. overflow: hidden;
  29. background: #fff;
  30. margin: 0 auto;
  31. padding: 30px 30px 30px 30px;
  32. }
  33. h1 {
  34. text-align: center;
  35. padding: 20px 0;
  36. }
  37. .groupBox {
  38. border-bottom: 4px solid #EBEBEB;
  39. }
  40. .groupName {
  41. font-weight: bold;
  42. padding: 10px 0;
  43. }
  44. .groupRowName {
  45. line-height: 30px;
  46. }
  47. .groupRowBox {
  48. line-height: 30px;
  49. }
  50. .groupRowRadio {
  51. margin: 0 20px 0 0;
  52. vertical-align: middle;
  53. }
  54. .groupRowRecommend {
  55. color: #267FD7;
  56. margin-left: 5px;
  57. }
  58. .calcu {
  59. text-align: right;
  60. height: 40px;
  61. margin: 10px 0 0 0;
  62. line-height: 40px;
  63. border-top: 1px solid #979797;
  64. }
  65. .allCalcuBox {
  66. text-align: right;
  67. height: 60px;
  68. line-height: 60px;
  69. vertical-align: middle;
  70. position: relative;
  71. padding: 0 80px 0 0;
  72. }
  73. .calcuBtn {
  74. position: absolute;
  75. right: 0;
  76. top: 12px;
  77. display: inline-block;
  78. width: 70px;
  79. height: 36px;
  80. line-height: 36px;
  81. text-align: center;
  82. background: #267FD7;
  83. color: #fff;
  84. border-radius: 4px;
  85. }
  86. .groupRowWrapper {
  87. margin-top: 15px;
  88. }
  89. .noSelect {
  90. border: 1px solid red;
  91. box-sizing: border-box;
  92. }
  93. </style>
  94. </head>
  95. <body>
  96. <div class="container">
  97. <h1></h1>
  98. <div class="content"></div>
  99. </div>
  100. <!-- <script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
  101. <script type="text/javascript">
  102. $(function(){
  103. // 从地址栏获取参数,请求量表内容
  104. function GetQueryString(name){     
  105. var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");     
  106. var r = window.location.search.substr(1).match(reg);     
  107. if(r!=null)return  unescape(r[2]); return null;
  108. }
  109. var scaleInfo;
  110. var id = GetQueryString('id') || 40744;
  111. var name = GetQueryString('name') || "密西根糖尿病周围神经病评分(MDNS)";
  112. var url = "http://192.168.2.236:5050/api/icss/push/pushInner";
  113. // 用GetQueryString方法从地址栏获取参数,暂时写死
  114. var params = {
  115. "age":28,
  116. "featureType":'21',
  117. "scaleId":id,
  118. "scaleName":name,
  119. "sex":1,
  120. "diag": "肺结核(复诊); ",
  121. "lis":[]
  122. }
  123. if(id){
  124. $.ajax({
  125. method:'post',
  126. url:url,
  127. data:JSON.stringify(params),
  128. dataType:'json',
  129. contentType:'application/json',
  130. success:function(res){
  131. if(res.code==0){
  132. scaleInfo = res.data.scale;
  133. console.log('量表数据为:',scaleInfo);
  134. }
  135. },
  136. error:function(err){
  137. console.log('请求失败:',err);
  138. }
  139. })
  140. }
  141. })
  142. </script> -->
  143. </body>
  144. </html>