浏览代码

Merge remote-tracking branch 'origin/testNew' into masterNew

# Conflicts:
#	src/js/cdss.js
zhouna 3 年之前
父节点
当前提交
385c95f309
共有 97 个文件被更改,包括 3853 次插入6451 次删除
  1. 188 155
      src/css/cdss.less
  2. 678 546
      src/css/cdssHorizontal.less
  3. 19 11
      src/css/cdssPlan.less
  4. 123 14
      src/css/common.less
  5. 40 34
      src/css/followUpV.less
  6. 0 536
      src/css/icssIndex.less
  7. 0 314
      src/css/index.css
  8. 0 2
      src/css/index.less
  9. 0 443
      src/css/indexHorizontal.less
  10. 0 410
      src/css/indexVert.less
  11. 1 24
      src/css/informationOut.less
  12. 0 9
      src/css/page.css
  13. 1 4
      src/css/reset.css
  14. 1 0
      src/css/searchStaticList.less
  15. 1 24
      src/css/staticInfo.less
  16. 0 24
      src/css/staticInfoOut.less
  17. 31 21
      src/css/staticSearch.css
  18. 11 14
      src/html/caseWriteStandard.html
  19. 23 16
      src/html/cdss.html
  20. 18 4
      src/html/cdssHorizontal.html
  21. 0 13
      src/html/check.html
  22. 5 5
      src/html/disclaimer.html
  23. 1909 9
      src/html/generalTreat.html
  24. 0 51
      src/html/icssIndex.html
  25. 0 32
      src/html/illness.html
  26. 0 31
      src/html/index.html
  27. 0 39
      src/html/indexHorizontal.html
  28. 0 23
      src/html/page.html
  29. 33 20
      src/html/smartAlert.html
  30. 1 1
      src/html/staticInfo.html
  31. 0 67
      src/html/staticSearch.html
  32. 0 47
      src/html/treatplan.html
  33. 9 24
      src/html/version.html
  34. 二进制
      src/images/arr.png
  35. 二进制
      src/images/check_on.png
  36. 二进制
      src/images/dot.png
  37. 二进制
      src/images/empty.png
  38. 二进制
      src/images/empty2.png
  39. 二进制
      src/images/empty3.png
  40. 二进制
      src/images/g1.png
  41. 二进制
      src/images/go.png
  42. 二进制
      src/images/icon_admin.png
  43. 二进制
      src/images/icon_arrow_down.png
  44. 二进制
      src/images/icon_arrow_up.png
  45. 二进制
      src/images/icon_current.png
  46. 0 13
      src/images/icon_current.svg
  47. 二进制
      src/images/icon_diag_push2.png
  48. 二进制
      src/images/icon_drug_push.png
  49. 二进制
      src/images/icon_lis_push.png
  50. 二进制
      src/images/icon_mark.png
  51. 二进制
      src/images/icon_no.png
  52. 二进制
      src/images/icon_nurse_push.png
  53. 二进制
      src/images/icon_operation_push.png
  54. 二进制
      src/images/icon_pacs_push.png
  55. 二进制
      src/images/icon_scale_push.png
  56. 二进制
      src/images/icon_search.png
  57. 二进制
      src/images/icon_symptom_push.png
  58. 二进制
      src/images/icon_warn1.png
  59. 二进制
      src/images/icon_warning.png
  60. 二进制
      src/images/intelligentDiagnosis.png
  61. 二进制
      src/images/lis.png
  62. 二进制
      src/images/lisStrFront-icon.png
  63. 二进制
      src/images/new.png
  64. 二进制
      src/images/new2.png
  65. 二进制
      src/images/pace.png
  66. 二进制
      src/images/pacsStrFront-icon.png
  67. 二进制
      src/images/right-icon.png
  68. 二进制
      src/images/rock.png
  69. 二进制
      src/images/show2.png
  70. 二进制
      src/images/therapeuticSchedule.png
  71. 二进制
      src/images/tip-bg.png
  72. 二进制
      src/images/writingNorms.png
  73. 二进制
      src/images/zhiliao.png
  74. 1 0
      src/js/caseWriteStandard.js
  75. 428 399
      src/js/cdss.js
  76. 127 81
      src/js/cdssHorizontal.js
  77. 13 21
      src/js/cdssPlan.js
  78. 0 81
      src/js/check.js
  79. 1 1
      src/js/disclaimer.js
  80. 115 98
      src/js/followUp.js
  81. 4 4
      src/js/homeStatic.js
  82. 0 528
      src/js/icssIndex.js
  83. 0 362
      src/js/icssIndexDom.js
  84. 0 173
      src/js/illness.js
  85. 0 223
      src/js/index.js
  86. 0 248
      src/js/indexHorizontal.js
  87. 0 443
      src/js/indexHorizontalDom.js
  88. 0 460
      src/js/indexVertDom.js
  89. 31 21
      src/js/promise.js
  90. 5 5
      src/js/searchStaticList.js
  91. 2 1
      src/js/smartAlert.js
  92. 8 5
      src/js/staticSearch.js
  93. 1 1
      src/js/tcmiss.js
  94. 0 129
      src/js/treatplan.js
  95. 2 1
      src/js/version.js
  96. 0 28
      src/page.js
  97. 23 158
      webpack.config.js

+ 188 - 155
src/css/cdss.less

@@ -5,41 +5,40 @@ body{
     background: #fff;
 }
 .bodyWrap{
-    position: fixed;
-    width: 100%;
-    height: 100%;
+  position: fixed;
+  width: 100%;
+  height: 100%;
+  /*background: @bgcBlue;*/
 }
 .iframeWrap {
-    margin: 0 auto 50px;
-    // padding: 0 20px 20px 20px;
-    min-width: 340px;
-    overflow-y: hidden;
+
 }
 .contentWrapper{
-    position: relative;
-    overflow-y: hidden;
-    // overflow-y: auto;
+  margin-left: 40px;
+  padding:10px 12px 0;
+  overflow-y: auto;
 }
 .responsibility {
     text-align: center;
     font-size: 12px;
-    color: #979797;
+    color: #aaa;
     padding-bottom: 5px;
     position: fixed;
-    left: 0;
+    left: 40px;
     width: 100%;
-    bottom: 23px;
+    bottom: 40px;
     background-color: #fff;
     z-index: 1;
+  text-indent: -40px;
 }
 .disclaimer {
     height: 24px;
     width: 100%;
     line-height: 24px;
-    position: fixed;
+    position: absolute;
     bottom: 0;
     background-color: #EFF1F6;
-    left: 0;
+    left: 40px;
     z-index: 98;
     .version-tip{
         margin-left: 20px;
@@ -53,13 +52,10 @@ body{
             // background-size: 27px;
         }
     }
-    .version-txt,.disclaimerInfoTxt{
+    .version-txt i,.disclaimerInfoTxt{
         font-size: 12px;
         color: #777;
-    }
-    .version-txt:hover{
-        border-bottom: 1px solid #000;
-        font-size: 12px;
+        border-bottom: 1px solid #777;
     }
     .logo {
         // float: left;
@@ -70,7 +66,7 @@ body{
     .disclaimerInfo {
         float: right;
         font-size: 12px;
-        margin-right: 20px;
+        margin-right: 60px;
     }
 }
 
@@ -109,40 +105,29 @@ body{
     background: #D1D1D1;
 }
 
-
-.empty{
+.empty-box{
     position: relative;
-    top: 100px;
+    top: 172px;
+    display: none;
+}
+.empty{
+  display: block;
 }
 .emptyImg{
-    width: 120px;
+    width: 185px;
     position: relative;
     left: 50%;
-    margin-left: -60px;
-}
-.emptyImgSearch{
-    width: 100px;
+    margin-left: -93px;
+    &.small{
+      width: 90px;
+      margin-left: -45px;
+    }
 }
 .emptyTxt{
     text-align: center;
-    color: #AAA;
+    color: #999;
     font-size: 12px;
-    margin-top: 15px;
-}
-// .titleIcon{
-//     width: 16px;
-//     margin: 0px 12px 0 12px;
-//     position: relative;
-//     top: 2px;
-// }
-// .warningbox{
-//     .titleIcon{
-//         width: 16px;
-//         margin: 0px 12px 0 -5px;
-//         position: relative;
-//         top: 2px;
-//     }  
-// }
+}
 .loading{
     position: fixed;
     width: 100%;
@@ -218,24 +203,9 @@ body{
 
 
 // CDSS6.0
-.tab{
-    color: @tabColor;
-    margin-right: 20px;
-    display: inline-block;
-  &:last-child {
-    margin-right: 0;
-  }
-}
-.moduleItem{
-    border: 1px solid #EAEDF1;
-    margin: 0 0 0px 0;
-}
-.longBox,.shortBox{
-    padding: 4px 10px;
-}
 .diag{
     .longBox,.shortBox{
-        padding: 0 10px;
+        padding: 0 10px 8px;
     }
 }
 .longBox{
@@ -243,129 +213,164 @@ body{
 }
 .pushItemBox{
     position: relative;
-    display: inline-block;
-    padding-right: 18px;
+    /*display: inline-block;*/
+}
+.warning .pushItemName .item-name{
+  opacity: .8;
+  filter:alpha(opacity=80);
 }
 .pushItemName{
     position: relative;
     display: inline-block;
-   
+    line-height: 21px;
+    padding-right: 3px;
+    &:hover{
+      .infoImg+.hidden-i{
+        display: none;
+      }
+      .infoImg{
+        display: inline;
+      }
+    }
 }
-.infoImg{
-    width: 15px;
-    position: absolute;
-    top: 2px;
+.infoImg,.hidden-i{
+    width: 12px;
+    /*position: absolute;
+    top: 5px;
+    right: 3px;*/
     cursor: pointer;
     display: none;
-    right: 2px;
+    vertical-align: middle;
 }
-.pushItemBox:hover{
-    .infoImg{
-        display: block;
-    }
+.hidden-i{
+  display: inline-block;
+  width: 12px;
 }
 .showMore,.showLess{
     display: inline-block;
     cursor: pointer;
-    float: right;
     color: #3B9ED0;
+    position: absolute;
+    right: 14px;
+    bottom: 5px;
 }
 .moduleTitle{
-    height: 30px;
-    line-height: 30px;
-    font-size: 14px;
+    height: 35px;
+    line-height: 35px;
+    font-size: 16px;
+    color: @fontClr;
     font-weight: 600;
+    border-radius: 8px 8px 0 0;
+    margin-bottom: 10px;
     .titleIcon{
-        width: 20px;
+        width: 24px;
         position: relative;
         top: 5px;
-        margin: 0 8px;
+        margin: 0 5px 0 14px;
     }
 }
 .casewriting .titleIcon{
     width:14px;
 }
 .iconArrowImg{
-    width: 14px;
+    width: 10px;
     // position: relative;
     // top: 2px;
 }
 .moduleBox{
-    padding: 5px 0;
+  padding:0;
+  .longBox,.shortBox{
+    border-bottom: 1px #E6E6E6 dashed;
+  }
+  &:last-child .longBox,&:last-child  .shortBox{
+    border-bottom: none;
+  }
 }
 .moduleBoxTitle{
-    padding: 0 10px;
-    line-height: 27px;
-    font-weight: 600;
+  color: @fontClr;
+  line-height: 17px;
+  font-weight: 600;
+  padding-left: 3px;
+  margin: 6px 0 6px 14px;
+  border-left:4px solid @suggerColor;
 }
 .iconMark{
-    width: 4px;
+    width: 17px;
     position: absolute;
-    left: 20px;
-    top: 3px;
+    left: 10px;
+    top: 2px;
 }
 .billingPushItem{
-    padding: 0 10px 0 30px;
+    padding: 0 10px 0 24px;
     position: relative;
 }
 .moduleItem{
-    border-radius: 4px;
-    .moduleBox{
-        border-bottom: 1px solid #EAEDF1;
-    }
-    .moduleBox:last-child{
-        border-bottom: 0;
-    }
+    position: relative;
+    border-radius: 8px;
+    box-shadow: 0px 5px 5px 0px @shadowColor;
+    margin-bottom: 10px;
+    padding-bottom: 10px;
+  .longBox,.shortBox{
+    padding: 4px 14px;
+    position: relative;   /****bug8454***/
+  }
 }
 .tabList{
-    line-height: 39px;
   margin-bottom: 8px;
-    padding: 0 20px 0 20px;
-    box-sizing: border-box;
+  position: relative;
+  height: 100%;
+  background: @bgcBlue;
+  .numPop{
+    display: none;
+    position: absolute;
+    top:0;
+    left: 2px;
+    border-radius:8px;
+    width: 17px;
+    height: 17px;
+    background: url("../images/tip-bg.png") no-repeat;
+    font-size: 12px;
+    text-align: center;
+    color: #fff;
+  }
 }
 .tab{
-    font-size:14px;
-    color: #777777;
-    position: relative;
-    cursor: pointer;
-}
+  width: 10px;
+  padding:8px 10px;
+  font-size:14px;
+  cursor: pointer;
+  color: @tabColor;
+  margin-left: 10px;
+  background: @tabBgColor;
+  border-radius: 8px 0px 0px 8px;
+  span{
+  }
+ }
 .activeTab{
-    color:#3B9ED0;
-    font-weight: 600;
-    font-size:16px;
-    .activeLine{
-        display: inline-block;
-        width: 34%;
-        height: 3px;
-        left: 32%;
-        background: #3B9ED0;
-        position: absolute;
-      bottom: 3px;
-    }
+  color:@fontClr;
+  font-weight: 600;
+  font-size:14px;
+  background: @mainBg;
 }
 .moduleWrapper{
     display: none;
 }
 .recommendWrap{
-    position: absolute;
-    box-sizing: border-box;
-    width: 100%;
-    height: 100%;
-    overflow-y: auto;
-    padding: 0 15px 50px 15px;
+
 }
 .staticSearchB ul{
     position: absolute;
     height: 480px;
     // width: 100%;
     /* right: 30px; */
-    left: 0; 
+    left: 40px;
     overflow: auto;
 }
-.warning{
-    background: #FF8042;
+.moduleItem.warning{
+    background: @dangerColor;
     color: #fff;
     padding: 10px 40px;
+    box-shadow: 0 2px 4px 0 #F9BC9F;
 }
 .warningTitImg{
     width: 20px;
@@ -376,25 +381,24 @@ body{
 .warningTitle{
     position: relative;
     margin-right: 15px;
+  font-weight: bold;
 }
 .medicalKonwledgeWrap{
-    padding: 0 30px;
-}
-.titleIcon{
-    width: 20px;
+
 }
 .newIcon{
     width: 27px;
     position: relative;
     top: 2px;
-    display: none;
+    left: 15px;
+    visibility: hidden;
 }
 .new-icon .newIcon{
-    display: inline-block;
+    visibility: visible;
 }
 
 .generalTreatInfo{
-    padding: 0px 10px 0 10px;
+    padding: 0px 24px 0 10px;
     box-sizing: border-box;
     position: relative;
     margin-top: 4px;
@@ -426,7 +430,8 @@ body{
     right: 10px;
     bottom: -1px;
     background: #fff;
-    width: 44px;
+    width: 10px;
+    height: 10px;
     box-sizing: border-box;
     img.more {
         position: absolute;
@@ -440,9 +445,20 @@ body{
     float: right;
     color: #3B9ED0;
 }
-.shortStrBox,.longStrBox{
-    position: relative;
-    padding: 4px 0;
+.tips-cont{
+  border-radius: 8px;
+  box-shadow: 0px 5px 5px 0px @shadowColor;
+  border-bottom: 1px #D8D8D8 solid \9;
+  .moduleBoxTitle{
+    border-color: #FF8042;
+  }
+  .moduleItem{
+    box-shadow: none;
+    border-bottom:1px #E6E6E6 dashed;
+    &:last-child{
+      border-bottom: none;
+    }
+  }
 }
 .longStrBox{
     display: none;
@@ -466,19 +482,24 @@ body{
 }
 .tcm-item {
   display: none;
-  margin: 0 15px 10px;
+  margin: 0 0 10px;
   border: 1px #EEF5FD solid;
   border-radius: 8px;
+  box-shadow: 0px 5px 5px 0px #D3D8D9;
+  &.go-push .title{
+    border-radius: 8px;
+  }
   .title {
-    background: #EEF5FD;
-    height: 30px;
-    line-height: 30px;
+    background: @pushBgColor;
+    height: 35px;
+    line-height: 35px;
     padding: 0 12px;
     border-radius: 8px 8px 0px 0px;
     img {
       vertical-align: middle;
-      width: 24px;
-      height: 24px;
+      width: 20px;
+      height: 20px;
+      margin-right: 3px;
     }
     .h2 {
       font-weight: bold;
@@ -487,9 +508,8 @@ body{
     }
     .go {
       float: right;
-      margin-right: 10px;
-      font-size: 12px;
-      color: #333;
+      font-size: 14px;
+      color: @linkColor;
       text-decoration: none;
       cursor: pointer;
       img {
@@ -518,19 +538,28 @@ body{
   }
   .detail {
     margin: 0 10px;
-    border-top: 1px #E6E6E6 solid;
+    border-top: 1px #E6E6E6 dashed;
     padding-top: 5px;
     /*max-height: 134px;*/
     overflow-y: hidden;
     li {
-      margin: 0 0 6px 10px;
+      margin: 0 34px 6px 10px;
     }
     .label {
       float: left;
-      border-left: 2px solid #267FD7;
+      border-left: 4px solid #267FD7;
       padding-left: 5px;
-      line-height: 12px;
-      margin-top: 4px;
+      line-height: 14px;
+      margin-top: 3px;
+      color: #333;
+    }
+    .go {
+      float: right;
+      margin: -25px 0px 10px 0;
+      font-size: 14px;
+      color: @linkColor;
+      text-decoration: none;
+      cursor: pointer;
     }
     .val {
       margin-left: 65px;
@@ -562,8 +591,8 @@ body{
     .a-link {
       display: inline-block;
       width: 100%;
-      border: 1px #3B9ED0 solid;
-      color: #3B9ED0;
+      border: 1px @linkColor solid;
+      color: @linkColor;
       height: 30px;
       line-height: 30px;
       border-radius: 4px;
@@ -574,8 +603,12 @@ body{
     }
   }
 }
-.evaluationtitle:hover{
-    text-decoration: underline;
-    color: #0000FF;
+.evaluation{
+  .evaluationtitle{
+    color: @linkColor;
     cursor: pointer;
+  }
+  .infoImg,.hidden-i{
+    margin-left: -10px;
+  }
 }

文件差异内容过多而无法显示
+ 678 - 546
src/css/cdssHorizontal.less


+ 19 - 11
src/css/cdssPlan.less

@@ -1,26 +1,38 @@
 @import './common.less';
 body{
-    overflow: hidden;
     position: relative;
     background: #fff;
 }
-.bodyWrap{
+/*.bodyWrap{
     position: fixed;
     width: 100%;
     height: 100%;
+}*/
+.followUpWrap{
+    margin: 0 84px;
+    .btnBox{
+        background: #fff;
+    }
 }
 .operaNameBox {
     padding: 5px 14px;
 }
+.operaNameWrap{
+    position: fixed;
+    /*width: calc(100% - 168px);*/
+    z-index: 1;
+}
+.infoWrap{
+    padding-top: 84px;
+    overflow-y: hidden;
+}
 .iframeWrap {
     margin: 0 auto 50px;
     // padding: 0 20px 20px 20px;
     min-width: 340px;
-    overflow-y: hidden;
 }
 .contentWrapper{
     position: relative;
-    overflow-y: hidden;
     // overflow-y: auto;
 }
 .responsibility {
@@ -118,19 +130,15 @@ body{
     top: 100px;
 }
 .emptyImg{
-    width: 120px;
     position: relative;
     left: 50%;
     margin-left: -60px;
 }
-.emptyImgSearch{
-    width: 100px;
-}
 .emptyTxt{
     text-align: center;
-    color: #AAA;
-    font-size: 12px;
-    margin-top: 15px;
+    color: #999;
+    font-size: 14px;
+    margin-top: 10px;
 }
 // .titleIcon{
 //     width: 16px;

+ 123 - 14
src/css/common.less

@@ -1,27 +1,53 @@
 @import './reset.css';
+@fontClr:#333;//通用字体颜色
+@txtColor:#666;//正文字体颜色
+@mainBg:#fff; //主体背景色
+@tabColor: #fff; // 左侧Tab文字颜色
+@tabBgColor: #1C6EC3; // 左侧Tab背景颜色
+@bgcBlue:#4F9FF3; //背景蓝色
+@dangerColor:#FF7F5B; //警惕
+@shadowColor:#DEDDDD; //阴影颜色
+@linkColor:#1677FF; //链接颜色
+@warnColor:#FF8042;   //错误提示颜色
+@suggerColor:#267FD7; //推送颜色
+@treatColor:#1ECEBD; //治疗颜色
+@pushBgColor:#E3F0FF; //推送title背景颜色
+@markFontColor:#1E1E1E; //着重色
+@hoverBg:#EEF3FF; //鼠标悬浮背景色
 @grayColor:#D1D1D1; //边框
-@bgcBlue:#ECF4FC; //背景蓝色
 @colorBlue:#267FD7;  //hover
-@bgcWaring:#FDF4EE; //病情提示
-@colorWaring:#FF545B; //警惕
-@bgcPlan:#E3FEFE; //治疗
-@bgcMay:#FAEBEC; //疑似,警惕,可能
-@bgcModal:#DFEAFE; //弹窗头
-@tabColor: #777; // 右侧大Tab文字颜色
 @staticMainColor: #2A9BD5; // 静态知识主要颜色
+@colorBlue: #267fd7; //hover
+@bgcWaring: #fdf4ee; //病情提示
+@colorWaring: #FF7836; //警惕
+@bgcPlan: #e3fefe; //治疗
+@bgcMay: #faebec; //疑似,警惕,可能
+@bgcModal: #dfeafe; //弹窗头
+@fontColor: #666;
 .disCopy {
-    -webkit-touch-callout: none;
-    -webkit-user-select: none;
-    -khtml-user-select: none;
-    -moz-user-select: none;
-    -ms-user-select: none;
-    user-select: none;
+  -webkit-touch-callout: none;
+  -webkit-user-select: none;
+  -khtml-user-select: none;
+  -moz-user-select: none;
+  -ms-user-select: none;
+  user-select: none;
 }
 .ellipsis{
     white-space: nowrap;/*强制在一行显示*/
 	text-overflow:ellipsis;/*设置超出内容显示...*/
 	overflow: hidden;/*一定不能少 超出的内容进行隐藏*/
 }
+.clearfix:after {
+  content: "";
+  display: block;
+  height: 0;
+  clear: both;
+  visibility: hidden;
+}
+
+.clearfix {
+  zoom: 1;
+}
 .clearfix:after{
     content: ""; 
     display: block; 
@@ -33,7 +59,12 @@
   .clearfix {
     zoom: 1; 
   }
-
+.fl{
+  float: left;
+}
+.fr{
+  float: right;
+}
 // 文本编辑器返回dom样式
 .ql-align-right {
   text-align: right;
@@ -105,3 +136,81 @@
     margin: 0 0 20px 322px;
   }
 }
+
+/*********免责声明,版本信息*********/
+.disclaimer{
+  h1{
+    background: @bgcBlue;
+    height: 100px;
+    margin-bottom: 30px;
+    span{
+      font-size: 20px;
+      color: #fff;
+      display: inline-block;
+      border-bottom: 2px solid #fff;
+      padding-bottom: 4px;
+      margin-top: 36px;
+
+    }
+  }
+}
+.version .banner{
+  background: @bgcBlue;
+  height: 100px;
+  margin-bottom: 30px;
+  h1{
+    padding-top: 20px;
+    color: #fff;
+    text-align: left;
+    font-size: 20px;
+    margin-bottom: 8px;
+    img{
+      margin: 0 14px 0 45px;
+      vertical-align: middle;
+    }
+    span{
+      font-size: 20px;
+    }
+  }
+  .time{
+    display: inline-block;
+    margin-left: 83px;
+    padding: 0 26px 0 4px;
+    color: @bgcBlue;
+    font-size: 12px;
+    line-height: 20px;
+    background: url("../images/arr.png") #fff 76px center no-repeat;
+  }
+
+}
+/* chrome & safari 浏览器 */
+/*滚动条整体部分,必须要设置*/
+/*滚动条的上下两端的按钮*/
+// .right_content::-webkit-scrollbar-button,
+// ul::-webkit-scrollbar-button {
+//   height: 0;
+//   background-color: #fff;
+// }
+::-webkit-scrollbar{
+  /*滚动条整体样式*/
+  width: 8px;
+  /*高宽分别对应横竖滚动条的尺寸*/
+  height: 8px;
+  background: #fff;
+  -webkit-box-shadow: inset 1px 0 1px rgba(0, 0, 0, 0.2);
+}
+
+::-webkit-scrollbar-thumb{
+  /*滚动条里面小方块*/
+  width: 8px;
+  height: 8px;
+  border-radius: 5px;
+  background: @bgcBlue;
+}
+
+::-webkit-scrollbar-track{
+  /*滚动条里面轨道*/
+  border-radius: 5px;
+  background: #fff;
+  opacity: .2;
+}

+ 40 - 34
src/css/followUpV.less

@@ -1,9 +1,12 @@
+@import "./common.less";
+/*******随访计划*********/
 .operaNameBox{
     background: #EFF1F6;
     line-height: 22px;
-    padding: 0px 14px;
+    padding: 5px 6px 5px 9px;
     font-size: 12px;
-    color: #777777;
+    color: @txtColor;
+    border-radius: 2px;
 }
 .operaNameBold{
     color: #1e1e1e;
@@ -12,27 +15,29 @@
 }
 .btnBox{
     text-align: center;
-    padding: 15px 0;
+    padding: 15px 0  2px;
 }
 .btnName{
     display: inline-block;
     padding: 4px 10px;
-    background:#E7F3F9;
+    background:@pushBgColor;
     font-size: 12px;    
-    color: #3B9ED0;
+    color: @linkColor;
     border-radius: 12px;
     cursor: pointer;
 }
 .infoWrap{
     overflow-y: auto;
-    padding: 0 15px;
 }
 .infoBoxTitle{
-    line-height: 40px;
-    color: #1E1E1E;
+    line-height: 32px;
+    color: @markFontColor;
+    font-weight: bold;
     font-size: 14px;
     position: relative;
     cursor: pointer;
+    margin-top: 8px;
+    text-indent: 3px;
 }
 .historyBox .infoBoxTitle{
     color: #AAAAAA;
@@ -41,66 +46,67 @@
     display: none;
 }
 .lisBox,.pacsBox{
-    padding-left: 68px;
     position: relative;
 }
+.lisBox .itemBoxTitle{
+    background: url("../images/lis.png") 4px 2px no-repeat;
+}
+.pacsBox .itemBoxTitle{
+    background: url("../images/pace.png") 4px 2px no-repeat;
+}
 .circle{
     display: inline-block;
     width: 5px;
     height: 5px;
-    background: #89C5E3;
+    background: #4B96FF;
     border-radius: 50%;
     position: absolute;
     left: 0;
     top: 6px;
 }
 .lisItem,.pacsItem{
-    padding: 0 10px;
+    padding: 0 12px;
     position: relative;
     line-height: 20px;
+    margin:0 0 3px 12px;
 }
 .pacsBox{
     margin-top: 10px;
 }
 
-/*.infoBox:hover{
-    background: #EEEEEE;
-    .title h2 {
-        background: #EEEEEE;
-    }
-}*/
+.infoBox:hover{
+    background: @hoverBg;
+}
 .itemBoxTitle{
-    position: absolute;
-    left: 0;
     display: inline-block;
-    width: 38px;
-    height: 18px;
-    border-radius: 10px;
-    border: 1px solid #3B9ED0;
-    color: #3B9ED0;
-    text-align: center;
-    line-height: 18px;
+    width: 62px;
+    height: 22px;
+    line-height: 22px;
+    text-indent: 24px;
+    border-radius: 4px;
+    border: 1px solid #0078FF;
+    color: #0078FF;
+    margin:0 0 6px 10px;
 }
 .toggleInfo{
-    width: 10px;
+    width: 16px;
     position: absolute;
     right: 10px;
-    top: 15px;
+    top: 10px;
 }
 .childrenBox{
     display: none;
+    padding-bottom: 7px;
 }
 .followUpWrap .emptyBox{
-    margin-top: 80px;
+    margin-top: 162px;
     text-align: center;
 }
+.bodyWrapHorizontal .followUpWrap .emptyBox{
+    margin-top: 16px;
+}
 .followUpWrap .emptyImg{
-    width: 110px;
     position: relative; 
     left: 0; 
     margin-left: 0;
-}
-.followUpWrap .emptyTxt{
-    color: #AAAAAA;
-    font-size: 12px;
 }

+ 0 - 536
src/css/icssIndex.less

@@ -1,536 +0,0 @@
-@import './common.less';
-
-.iframeWrap {
-    margin: 10px auto 50px;
-    padding: 0 20px 20px 20px;
-    min-width: 340px;
-    overflow-y: auto;
-}
-
-.recommendInfoWrapper {
-    border: 1px solid #F2F2F2;
-    margin-bottom: 5px;
-
-    h4 {
-        color: #000;
-        // height: 24px;
-        line-height: 24px;
-        background-color: #FAEBEC;
-        font-size: 16px;
-        font-weight: bold;
-    }
-}
-
-.recommendInfoWrapper h4 i {
-    content: '';
-    width: 18px;
-    height: 18px;
-    float: left;
-    position: relative;
-    top: 3px;
-    margin: 0 12px;
-}
-
-.symptomRecommend,
-.physiExamRecommend,
-.labAndPacsRecommend {
-    h4 {
-        background-color: #ECF4FC;
-    }
-}
-
-.treatRecommend,.knowledgeInfo,.scaleInfo {
-    h4 {
-        background-color: #E3FEFE;
-    }
-}
-.tipsInfo {
-    h4 {
-        background-color: #E3FEFE;
-    }
-}
-
-
-.conditTips {
-    h4 {
-        background-color: #FDF4EE;
-    }
-}
-.warning{
-    background-color: #FF8D54;
-    font-size: 14px;
-    h4 {
-        background-color: #FF8D54;
-        font-size: 14px;
-        color: #fff;
-        line-height: 30px;
-        display: inline-block;
-        margin: 0 20px 0 0;
-        i{
-            margin: 0 12px 0 0;
-        }
-    }
-    .recommendInfoBox{
-        display: inline-block;
-    }
-    .recommendInfoItem{
-        display: inline-block;
-        float: none;
-        color: #fff;
-    }
-}
-
-.recommendInfoBox {
-    padding: 4px 17px;
-}
-
-.treatRecommend h4 i,.knowledgeInfo h4 i,.scaleInfo h4 i {
-    background: url(/images/zhiliao.png) center center no-repeat;
-}
-.tipsInfo h4 i {
-    background: url(/images/zhiliao.png) center center no-repeat;
-}
-
-.conditTips h4 i {
-    background: url(/images/tips.png) center center no-repeat;
-}
-
-.symptomRecommend h4 i {
-    background: url(/images/inquire.png) center center no-repeat;
-}
-
-.physiExamRecommend h4 i {
-    background: url(/images/tgjc.png) center center no-repeat;
-}
-
-.labAndPacsRecommend h4 i {
-    background: url(/images/inspect.png) center center no-repeat;
-}
-
-.warning h4 i {
-    background: url(/images/warings.png) center center no-repeat;
-}
-
-.diagRecommend h4 i {
-    background: url(/images/yszd.png) center center no-repeat;
-}
-
-.recommendInfoItem {
-    padding-right: 15px;
-    float: left;
-    line-height: 21px;
-    position: relative;
-}
-
-.infoMsg,
-.infoMsgOn {
-    position: absolute;
-    top: 4px;
-    right: 0;
-}
-
-.infoMsg,
-.infoMsgOn {
-    display: none;
-    cursor: pointer;
-}
-
-.recommendInfoItemHasInfo:hover,
-.diagNameBox:hover,
-.durgNameBox:hover {
-    color: #267FD7;
-
-    .infoMsg {
-        display: inline-block;
-        width: 14px;
-        height: 14px;
-        background: url(/images/msg1.png) center center no-repeat;
-    }
-
-    .infoMsg:hover {
-        background: url(/images/msg2.png) center center no-repeat;
-    }
-}
-
-// .diagNameBox:hover {
-//     color: #267FD7;
-//     .infoMsg {
-//         display: inline-block;
-//         width: 16px;
-//         height: 16px;
-//         background: url(/images/msg1.png) center center no-repeat;
-//     }
-//     .infoMsg:hover {
-//         background: url(/images/msg2.png) center center no-repeat;
-//     }
-// }
-.diagNameBox,
-.durgNameBox {
-    position: relative;
-    padding-right: 15px;
-    display: inline-block;
-    .infoMsg, .infoMsgOn {
-        top: 6px;
-    }
-}
-.durgName, .diagName{
-    border-bottom: 1px solid #1E1E1E;
-}
-.sriticalinfo {
-    height:30px;
-    background:#F5F5F5;
-    line-height: 30px;
-    margin: 10px 0;
-}
-.recommendInfoBox p {
-    line-height: 21px;
-}
-
-.commonTreatmentbox {
-    padding-bottom: 10px;
-    border-bottom: 1px solid #D1D1D1;
-}
-
-.drugTreatmentbox {
-    padding-top: 10px;
-}
-
-.illnessTable {
-    color: #267FD7;
-    line-height: 21px;
-    cursor: pointer;
-}
-
-.labAndPacsBox {
-    position: relative;
-    line-height: 21px;
-}
-
-.alertModal {
-    position: relative;
-
-    .mayResult {
-        color: #838383;
-        position: relative;
-    }
-
-    .mayResultSelect {
-        line-height: 21px;
-
-        .makesureResult {
-            cursor: pointer;
-            color: @colorBlue;
-        }
-
-        .sanjiao {
-            width: 18px;
-            height: 18px;
-            display: inline-block;
-            position: relative;
-            top: 3px;
-            background: url('../images/select.png') center center no-repeat;
-        }
-    }
-}
-
-.recommendInfoItemBox {
-    position: relative;
-}
-
-.recommendInfoItemBoxLimit {
-    height: 21px;
-    overflow: hidden;
-    position: relative;
-}
-
-.commonTreatmentInfoLimit {
-    height: 75px;
-    overflow: hidden;
-    position: relative;
-}
-
-.slideDown {
-    background-color: #fff;
-    position: absolute;
-    bottom: 0px;
-    right: 0px;
-    color: @colorBlue;
-    height: 21px;
-    line-height: 21px;
-    box-shadow: -2px 0px 15px 0px #fff;
-    cursor: pointer;
-
-    i {
-        width: 10px;
-        height: 7px;
-        display: inline-block;
-        position: relative;
-        // top: -2px;
-        background: url('../images/down.png') center center no-repeat;
-    }
-}
-
-.slideup {
-    background-color: #fff;
-    position: relative;
-    float: right;
-    bottom: 0px;
-    right: 0px;
-    color: @colorBlue;
-    cursor: pointer;
-    height: 21px;
-    line-height: 21px;
-    box-shadow: -2px 0px 15px 0px #fff;
-
-    i {
-        width: 10px;
-        height: 7px;
-        display: inline-block;
-        position: relative;
-        // top: -2px;
-        background: url('../images/up.png') center center no-repeat;
-    }
-}
-
-.responsibility {
-    text-align: center;
-    font-size: 12px;
-    color: #979797;
-    padding-top: 15px;
-    position: fixed;
-    width: 100%;
-    bottom: 30px;
-    background-color: #fff;
-}
-.disclaimer {
-    height: 26px;
-    width: 100%;
-    line-height: 26px;
-    position: fixed;
-    bottom: 0;
-    background-color: #fff;
-    left: 0;
-    z-index: 98;
-    .version-tip{
-        margin-left: 20px;
-        font-size: 12px;
-        padding-right: 34px;
-        cursor: pointer;
-        &.new-icon{
-            background: url(../images/new.png) 100% 0px no-repeat;
-        }
-    }
-    .logo {
-        // float: left;
-        font-size: 12px;
-        margin-left: 15px;
-    }
-    .disclaimerInfo {
-        float: right;
-        font-size: 12px;
-        margin-right: 15px;
-    }
-}
-
-.labAndPacsTitle {
-    border-right: 2px solid #ADADAD;
-    padding-right:5px; 
-    margin-right: 5px;
-}
-.labAndPacsItem {
-    display: inline-block;
-    padding-right: 15px;
-}
-
-.recommendNull,.TipsInfoNull {
-    color: #ADADAD;
-}
-.treatItemTitle {
-    font-weight: bold;
-    padding-bottom: 5px;
-}
-.disclaimerInfo {
-    cursor: pointer;
-}
-.moreInfo {
-    display: inline-block;
-    width:42px;
-    height:20px;
-    border-radius:4px;
-    border:1px solid #267FD7;
-    line-height:20px;
-    color: #267FD7;
-    text-align: center;
-    margin-left: 20px;
-    cursor: pointer;
-}
-.durgNameBox {
-    .medicineWaring {
-        background-color: #f4c051;
-        color: #000;
-        font-size: 12px;
-        border-radius: 4px;
-        border: 1px solid #fff;
-        line-height: 18px;
-      }
-      .medicineWaringDisMsg {
-        background-color: #fff;
-        color: @grayColor;
-        font-size: 12px;
-        border-radius: 4px;
-        line-height: 18px;
-        border: 1px solid @grayColor;
-      }
-      .medicineWaringDisMsg {
-        color: @grayColor;
-      }
-}
-.medicineWaringDis {
-    color: @grayColor;
-    .durgName{
-        border-bottom: 1px solid @grayColor;
-    }
-  }
-.medicineWaringDis:hover {
-    color: @grayColor;
-}
-
-.staticWin {
-    color: #040428;
-    text-decoration: underline;
-    cursor: pointer;
-}
-.line {
-    width: 100%;
-    height: 1px;
-    background: #D1D1D1;
-}
-.diagTitle {
-    color: #3b9ed0;
-    position: relative;
-    margin: 0 0 10px;
-    font-weight: 500;
-    i {
-        position: relative;
-        display: inline-block;
-        width: 4px;
-        height: 4px;
-        background: #3b9ed0;
-        border-radius: 50%;
-        top: -4px;
-        margin-right: 6px;
-    }
-}
-.diagDescription{
-    color: #333;
-    font-weight: 600;
-    margin: 5px 0 10px;
-}
-.treatItemTitle {
-    position: relative;
-    .slideDown {
-        font-weight: normal;
-        bottom: 5px;
-    }
-}
-.empty{
-    position: relative;
-    top: 200px;
-}
-.emptyImg{
-    width: 100px;
-    position: relative;
-    left: 50%;
-    margin-left: -50px;
-}
-.emptyTxt{
-    text-align: center;
-    color: #AAA;
-    font-size: 12px;
-}
-.titleIcon{
-    width: 16px;
-    margin: 0px 12px 0 12px;
-    position: relative;
-    top: 2px;
-}
-.warningbox{
-    .titleIcon{
-        width: 16px;
-        margin: 0px 12px 0 -5px;
-        position: relative;
-        top: 2px;
-    }  
-}
-.loading{
-    position: fixed;
-    width: 100%;
-    height: 100%;
-    left: 0;
-    top: 0;
-    z-index: 100;
-    display: none;
-}
-.loadingMask{
-    position: absolute;
-    width: 100%;
-    height: 100%;
-    background-color: #fff;
-    opacity: 0.5;
-    filter:alpha(opacity=50);
-    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=50);";
-}
-.loadingImg{
-    width: 40px;
-    position: absolute;
-    left: 50%;
-    top: 50%;
-    margin: -20px 0 0 -20px;
-}
-.emergency {
-    position: fixed;
-    right: 20px;
-    top: 0;
-    .disPub {
-        width: 40px;
-        height: 40px;
-        line-height: 40px;
-        position: absolute;
-        left: 0;
-        text-align: center;
-        border-radius: 50%;
-        color: #fff;
-        background-color: #f93333;
-    }
-    .singleDis {
-        left: -25px;
-        display: none;
-    }
-    .allDis {
-        display: none;
-        z-index: 10;
-        moz-user-select: -moz-none;
-        -moz-user-select: none;
-        -o-user-select: none;
-        -webkit-user-select: none;
-        -ms-user-select: none;
-        user-select: none;
-        position: fixed;
-        top: 0;
-        right: 5px;
-        width: auto;
-        height: 40px;
-        line-height: 40px;
-        border-radius: 22px;
-        border: 2px solid #f93333;
-        background-color: #fff;
-        padding-left: 50px;
-        padding-right: 30px;
-        cursor: pointer;
-        .right {
-            position: absolute;
-            right: 5px;
-            top: 9px;
-        }
-    }
-}

+ 0 - 314
src/css/index.css

@@ -1,314 +0,0 @@
-.iframeWrap {
-  margin: 10px auto 50px;
-  padding: 20px;
-  min-width: 340px;
-}
-.iframeWrap .conditionHintPub {
-  border: 1px solid #F2F2F2;
-  margin-bottom: 15px;
-}
-.iframeWrap .conditionHintPub li {
-  padding-right: 18px;
-  float: left;
-  line-height: 25px;
-}
-.iframeWrap .conditionHintPub .conditionMain {
-  padding: 17px;
-}
-.iframeWrap .conditionHintPub .alertModal {
-  position: relative;
-}
-.iframeWrap .conditionHintPub .alertModal .mayResult {
-  color: #838383;
-  position: relative;
-}
-.iframeWrap .conditionHintPub .alertModal .mayResultSelect {
-  line-height: 28px;
-}
-.iframeWrap .conditionHintPub .alertModal .mayResultSelect .makesureResult {
-  cursor: pointer;
-  color: #267FD7;
-}
-.iframeWrap .conditionHintPub .alertModal .mayResultSelect .sanjiao {
-  width: 18px;
-  height: 18px;
-  display: inline-block;
-  position: relative;
-  top: 3px;
-  background: url('../images/select.png') center center no-repeat;
-}
-.iframeWrap .conditionHintPub .treatPlan {
-  font-weight: bold;
-  padding-bottom: 5px;
-}
-.iframeWrap .conditionHintPub .treatPlanWrap {
-  padding-bottom: 10px;
-  border-bottom: 1px solid #D1D1D1;
-}
-.iframeWrap .conditionHintPub .treatMedicine {
-  padding-top: 10px;
-}
-.iframeWrap .conditionHintPub .treatMedicine .medicinePart {
-  margin: 8px 0;
-  position: relative;
-}
-.iframeWrap .conditionHintPub .treatMedicine .medicine {
-  border-bottom: 1px solid #D1D1D1;
-  position: relative;
-}
-.iframeWrap .conditionHintPub .treatMedicine .medicine:hover {
-  color: #267FD7;
-}
-.iframeWrap .conditionHintPub .treatMedicine .medicine:hover a {
-  display: inline-block;
-  right: -20px;
-  background-color: #fff;
-}
-.iframeWrap .conditionHintPub .treatMedicine .medicineDis {
-  color: #D1D1D1;
-  border-bottom: 1px solid #D1D1D1;
-}
-.iframeWrap .conditionHintPub .treatMedicine .medicineWaring {
-  background-color: #f4c051;
-  color: #000;
-  font-size: 12px;
-  border-radius: 4px;
-  border: 1px solid #fff;
-  line-height: 18px;
-}
-.iframeWrap .conditionHintPub .treatMedicine .medicineWaringDis {
-  background-color: #fff;
-  color: #D1D1D1;
-  font-size: 12px;
-  border-radius: 4px;
-  line-height: 18px;
-  border: 1px solid #D1D1D1;
-}
-.iframeWrap .conditionHintPub .treatMedicine .medicineWaringDisMsg {
-  color: #D1D1D1;
-}
-.iframeWrap .conditionHintPub p {
-  line-height: 24px;
-}
-.iframeWrap .conditionHintPub p span {
-  display: inline-block;
-}
-.iframeWrap .conditionHintWz h4 {
-  background-color: #ECF4FC;
-}
-.iframeWrap .conditionHintWz h4 i {
-  background: url("../images/inquire.png") center center no-repeat;
-}
-.iframeWrap .conditionHintTg h4 {
-  background-color: #ECF4FC;
-}
-.iframeWrap .conditionHintTg h4 i {
-  background: url("../images/tgjc.png") center center no-repeat;
-}
-.iframeWrap .conditionHintInspect h4 {
-  background-color: #ECF4FC;
-}
-.iframeWrap .conditionHintInspect h4 i {
-  background: url("../images/inspect.png") center center no-repeat;
-}
-.iframeWrap .conditionHintMay h4 {
-  background-color: #FAEBEC;
-}
-.iframeWrap .conditionHintMay h4 i {
-  background: url("../images/yszd.png") center center no-repeat;
-}
-.iframeWrap .conditionHintWarings {
-  display: none;
-}
-.iframeWrap .conditionHintWarings h4 {
-  color: #FF545B;
-}
-.iframeWrap .conditionHintWarings h4 i {
-  background: url("../images/warings.png") center center no-repeat;
-}
-.iframeWrap .conditionHintWarings li {
-  float: left;
-  line-height: 24px;
-}
-.iframeWrap .conditionHintWarings li:hover {
-  color: #267FD7;
-}
-.iframeWrap .conditionHintKnzd {
-  display: none;
-}
-.iframeWrap .conditionHintKnzd h4 i {
-  background: url("../images/knzd.png") center center no-repeat;
-}
-.iframeWrap .conditionHintKnzd ul li {
-  float: left;
-  line-height: 24px;
-}
-.iframeWrap .conditionHintKnzd ul li:hover {
-  color: #267FD7;
-}
-.iframeWrap .conditionHintZhiliao h4 {
-  background-color: #E3FEFE;
-}
-.iframeWrap .conditionHintZhiliao h4 i {
-  background: url("../images/zhiliao.png") center center no-repeat;
-}
-.iframeWrap .conditionHintTips .mayIllness {
-  padding-bottom: 5px;
-}
-.iframeWrap .conditionHintTips .mayIllness span {
-  position: relative;
-  border-bottom: 1px solid #D1D1D1;
-}
-.iframeWrap .conditionHintTips .mayIllness span .infoMsg {
-  position: relative;
-  border-bottom: 0;
-  float: right;
-}
-.iframeWrap .conditionHintTips .mayIllness span:hover .infoMsg {
-  display: inline-block;
-}
-.iframeWrap .conditionHintTips .mayIllness a {
-  border-bottom: 1px solid #D1D1D1;
-}
-.iframeWrap .conditionHintTips h4 {
-  background-color: #FDF4EE;
-}
-.iframeWrap .conditionHintTips h4 i {
-  background: url("../images/tips.png") center center no-repeat;
-}
-.iframeWrap .illnessTable {
-  color: #267FD7;
-  line-height: 28px;
-  cursor: pointer;
-}
-.iframeWrap h4 {
-  color: #000;
-  height: 40px;
-  line-height: 40px;
-  background-color: #FAEBEC;
-  font-size: 16px;
-  font-weight: bold;
-}
-.iframeWrap h4 i {
-  content: '';
-  width: 40px;
-  height: 40px;
-  float: left;
-}
-.commonTreat,
-.conditionHintKnzdLis,
-.conditionHintWaringsLis,
-.conditionHintWzLis,
-.conditionHintTgLis,
-.conditionHintInspectLis,
-.conditionHintAssistLis {
-  position: relative;
-}
-.conditionHintInspectNull {
-  border-bottom: 1px solid #D1D1D1;
-  padding-bottom: 5px;
-  margin-bottom: 5px;
-}
-.conditionHintZhiliaoNull {
-  display: none;
-}
-.conditionHintAssistLis,
-.conditionHintInspectLis {
-  padding: 5px 0;
-}
-.conditionHintAssistLis .slideDown,
-.conditionHintInspectLis .slideDown {
-  padding: 5px 0 5px 0px;
-}
-.conditionHintAssistLis li:first-child,
-.conditionHintInspectLis li:first-child {
-  padding-right: 5px;
-}
-.pushEmpty {
-  color: #ADADAD;
-}
-.medicinePartLimitHeight {
-  height: 25px;
-  overflow: hidden;
-  position: relative;
-}
-.medicinePartLimitHeightSpec {
-  height: 75px;
-  overflow: hidden;
-  position: relative;
-}
-.slideDown {
-  background-color: #fff;
-  position: absolute;
-  bottom: 0px;
-  right: 0px;
-  color: #267FD7;
-  height: 25px;
-  line-height: 25px;
-  box-shadow: -2px 0px 15px 0px #fff;
-  cursor: pointer;
-}
-.slideDown i {
-  width: 10px;
-  height: 7px;
-  display: inline-block;
-  position: relative;
-  top: -2px;
-  background: url('../images/down.png') center center no-repeat;
-}
-.slideup {
-  background-color: #fff;
-  position: relative;
-  float: right;
-  bottom: 0px;
-  right: 0px;
-  color: #267FD7;
-  cursor: pointer;
-}
-.slideup i {
-  width: 10px;
-  height: 7px;
-  display: inline-block;
-  position: relative;
-  top: -2px;
-  background: url('../images/up.png') center center no-repeat;
-}
-.disclaimer {
-  height: 40px;
-  width: 100%;
-  line-height: 40px;
-  text-align: center;
-  position: fixed;
-  bottom: 0;
-  background-color: #ececec;
-  left: 0;
-  z-index: 98;
-}
-.disclaimer a {
-  display: block;
-}
-.infoMsg {
-  width: 20px;
-  height: 20px;
-  position: absolute;
-  top: 2px;
-  right: 0px;
-  display: none;
-  cursor: pointer;
-  background: url('../images/msg1.png') center center no-repeat;
-}
-.infoMsg:hover {
-  background: url('../images/msg2.png') center center no-repeat;
-}
-.infoMsgParent {
-  position: relative;
-}
-.infoMsgParent:hover .infoMsg {
-  display: block;
-}
-.responsibility {
-  text-align: center;
-  font-size: 12px;
-  color: #979797;
-  padding-top: 15px;
-}

+ 0 - 2
src/css/index.less

@@ -1,2 +0,0 @@
-@import './common.less';
-

+ 0 - 443
src/css/indexHorizontal.less

@@ -1,443 +0,0 @@
-@import './common.less';
- .push .recommendInfoWrapper {
-    line-height: 25px;
-    h4 {
-        float: left;
-    }
-    .showTopTitle {
-        float: none;
-    }
-}
-
-.recommendInfoBox  {
-    margin-left: 100px;
-    position: relative;
-}
-.showTopInfo{
-    margin-left: 100px;
-}
-.topSmallTitle {
-    position: absolute;
-    left: -60px;
-}
-.recommendWrap {
-    height: 250px;
-}
-.labAndPacsWrapper{
-    line-height: 25px;
-}
-.labAndPacsItemBox {
-    float: left;
-}
-.push {
-    margin-top: 10px;
-    width: 52%;
-    float: left;
-    position: relative;
-    padding-right: 2%;
-    border-right: 1px solid #f0efef;
-    box-sizing: border-box;
-}
-.infomationBox {
-    margin-top: 10px;
-    width: 38%;
-    float: left;
-    position: relative;
-    margin-left: 2%;
-}
-.disclaimer {
-    width: 5%;
-    min-width: 40px;
-    float: left;
-    color: #9C9C9C;
-    text-align: center;
-    border-right: 1px solid #f4f3f3;
-    box-sizing: border-box;
-    display: table;
-    p{
-        width:14px;
-        display: table-cell;
-        word-break: break-all;
-        vertical-align: middle;
-        font-size: 12px;
-    }
-    .version{
-        font-size: 12px;
-        line-height: 15px;
-        span{
-            color: #267FD7;
-            line-height: 14px;
-        }
-        &.new-icon i{
-            display: inline-block;
-            width: 100%;
-            height: 26px;
-            background: url("../images/newv.png") -3px -4px no-repeat;
-        }
-    }
-}
-
-.warning, .diagRecommend {
-    h4 {
-        color: #FF545B;
-    }
-}
-.symptomRecommend, .physiExamRecommend, .labAndPacsRecommend {
-    h4 {
-        color: #157FD5;
-    }
-}
-.conditTips {
-    h4 {
-        color: #E66225;
-    }
-}
-.treatRecommend  {
-    h4 {
-        color: #1AB3A9;
-    }
-}
-.treatRecommend  {
-    position: relative;
-}
-.icon{
-    display: block;
-    width: 20px;
-    float: left;
-    position: relative;
-    top: 3px;
-}
-.labAndPacsBox, .treatItemBox {
-    position: relative;
-}
-.itemAllBox {
-    background: #fff;
-    border: 1px solid #3A73E1;
-    border-radius: 4px;
-    box-sizing: border-box;
-}
-.slideDown {
-    background-color: #fff;
-    position: absolute;
-    bottom: 0px;
-    right: 0px;
-    height: 20px;
-    line-height: 20px;
-    box-shadow: -2px 0px 15px 0px #fff;
-    cursor: pointer;
-
-    img {
-        display: inline-block;
-        position: relative;
-        top: 0px;
-    }
-}
-
-.slideup {
-    position: absolute;
-    float: right;
-    top: 0px;
-    right: 0px;
-    cursor: pointer;
-    line-height: 20px;
-    box-shadow: -2px 0px 15px 0px #fff;
-    img {
-        display: inline-block;
-        position: relative;
-        top: 0px;
-    }
-}
-.itemAllBox{
-    position: absolute;
-    width: 96%;
-    height: auto;
-    max-height: 230px;
-    display: none;
-    background: #fff;
-    z-index: 2;
-    left: 0;
-    top: 0;
-}
-.ellipse{
-    overflow: hidden;
-    white-space: nowrap;
-    text-overflow: ellipsis;
-}
-.conditTipsbox .conditionMain {
-    height: 25px;
-    .mayIllness{
-        float: left;
-        position: relative;
-        top: -2px;
-    }
-}
-.recommendInfoItem,.diagNameBox {
-    .infoMsg,
-    .infoMsgOn {
-        top: 2px;
-    }
-}
-.infoMsg,
-.infoMsgOn {
-    top: 2px;
-}
-.infoMsg,
-.infoMsgOn {
-    position: relative;
-    right: 0px;
-    display: none;
-    cursor: pointer;
-}
-.durgNameBox {
-    position: relative;
-    padding-right: 15px;
-    display: inline-block;
-}
-.recommendInfoItemHasInfo:hover,
-.diagNameBox:hover,
-.durgNameBox:hover {
-    color: #267FD7;
-    padding-right: 0;
-    .infoMsg {
-        display: inline-block;
-        width: 14px;
-        height: 14px;
-        background: url(/images/msg1.png) center center no-repeat;
-    }
-
-    .infoMsg:hover {
-        background: url(/images/msg2.png) center center no-repeat;
-    }
-}
-
-.diagNameBox {
-    position: relative;
-    padding-right: 15px;
-}
- .more {
-    display: inline-block;
-    background-color: #fff;
-    position: absolute;
-    right: 0px;
-    color: #267FD7;
-    height: 20px;
-    line-height: 24px;
-    box-shadow: -2px 0px 15px 0px #fff;
-    cursor: pointer;
-}
-.conditTipsbox .more {
-    top: 0px;
-}
-.push .conditTips {
-    height: 100%;
-    max-height: 40px;
-}
-.diagName {
-    color: #040428;
-}
-.treatItemTitle, .tipsTitle {
-    // font-weight: bold;
-    font-size: 14px;
-    color: #000000;
-    float: left;
-    width: 60px;
-    height: 20px;
-    line-height: 20px;
-    float: left;
-}
-.tipsTitle {
-    margin-top: 10px;
-}
-.infomationBox .recommendInfoBox {
-    margin-left: 0px;
-}
-.infomationBox .treatTextBox {
-    margin-left: 80px;
-    line-height: 20px;
-    max-height: 60px;
-    overflow:hidden;
-    // text-overflow:ellipsis; 
-    // display: -webkit-box;
-    // -webkit-box-orient: vertical;
-    // -webkit-line-clamp: 3;
-}
-.infomationBox .treatDrugBox {
-    margin-left: 80px;
-    line-height: 20px;
-    max-height: 120px;
-    overflow: hidden;
-}
-.tipsInfoBox {
-    margin: 10px 0 0 0px;
-    line-height: 20px;
-    height: 211px; 
-    overflow-y: auto;
-    img {
-        display: none;
-    }
-}
-.diagName {
-    height: 30px;
-    line-height: 30px;
-}
-.drugTreatmentInfoItemBox {
-    .ellipse;
-    height: 20px;
-}
-.infomationBox .treatRecommend {
-    margin-top: 10px;
-}
-.labAndPacsRecommend  .labAndPacsTitle {
-    padding: 0 5px; 
-    margin-right: 5px;
-    background: #e2eaf2;
-    border-radius: 4px;
-    height: 22px;
-    line-height: 22px;
-    top: 1px;
-}
-.pacsRecommendwrapper {
-    // margin-top: 10px;
-}
-.labAndPacsItem {
-    display: inline-block;
-    padding-right: 15px;
-}
-
-.treatItemBox .more{
-    bottom: 0;
-    height: 20px;
-    line-height: 20px;
-}
-.itemAllBox h4{
-    float: left;
-    margin-right: 10px;
-}
-.recommendInfoItem {
-    position: relative;
-    display: inline-block;
-}
-.itemAll{
-    max-height: 230px;
-    overflow-y: auto;
-    margin-right: 20px;
-}
-.recommendInfoItem {
-    position: relative;
-    padding-right: 18px;
-}
-.recommendNull {
-    color: #ADADAD;
-}
-.disclaimer, .illnessTable {
-    cursor: pointer;
-}
-.illnessTable {
-    color: #267FD7;
-
-}
-.tipsInfoWrapper  {
-    position: relative;
-    margin: 10px 0 0 0;
-}
-.infoTab {
-    margin-right: 15px;
-    cursor: pointer;
-}
-.activeTab {
-    color: #267FD7;
-    border-bottom: 2px solid #267FD7;
-}
-.moreInfo {
-    display: inline-block;
-    width:42px;
-    height:20px;
-    border-radius:4px;
-    border:1px solid #267FD7;
-    line-height:20px;
-    color: #267FD7;
-    text-align: center;
-    margin-left: 20px;
-    cursor: pointer;
-}
-.durgNameBox {
-    .medicineWaring {
-        background-color: #f4c051;
-        color: #000;
-        font-size: 12px;
-        border-radius: 4px;
-        border: 1px solid #fff;
-        line-height: 18px;
-      }
-      .medicineWaringDisMsg {
-        background-color: #fff;
-        color: @grayColor;
-        font-size: 12px;
-        border-radius: 4px;
-        line-height: 18px;
-        border: 1px solid @grayColor;
-      }
-      .medicineWaringDisMsg {
-        color: @grayColor;
-      }
-}
-.medicineWaringDis {
-    color: @grayColor;
-  }
-.medicineWaringDis:hover {
-color: @grayColor;
-}
-
-.staticWin {
-    text-decoration: underline;
-    cursor: pointer;
-    position: relative;
-    margin: 10px 0 0 0;
-}
-.tipsInfoItem{
-    position: relative;
-    // max-height: 60px;
-    overflow: hidden;
-}
-.hasMore:after{
-    content: "..."; 
-    position: absolute; 
-    bottom: 0; 
-    right: 0; 
-    padding-left: 20px;
-    background: -webkit-linear-gradient(left, transparent, #fff 55%);
-    background: -moz-linear-gradient(left, transparent, #fff 55%);
-    background: -o-linear-gradient(left, transparent, #fff 55%);
-    background: linear-gradient(to right, transparent, #fff 55%);
-}
-.boldFont {
-    font-weight: bold;
-}
-.diagTitle {
-    color: #3b9ed0;
-    position: relative;
-    margin: 0 0 10px;
-    font-weight: 500;
-    i {
-        position: relative;
-        display: inline-block;
-        width: 4px;
-        height: 4px;
-        background: #3b9ed0;
-        border-radius: 50%;
-        top: -4px;
-        margin-right: 6px;
-    }
-}
-.diagDescription{
-    color: #333;
-    font-weight: 600;
-    margin: 5px 0 10px;
-}
-.treatItemTitle {
-    .more {
-        background: #fff;
-        top: 0;
-        z-index: 2;
-    }
-}

+ 0 - 410
src/css/indexVert.less

@@ -1,410 +0,0 @@
-@import './common.less';
-
-.iframeWrap {
-    margin: 10px auto 50px;
-    padding: 20px;
-    min-width: 340px;
-}
-
-.recommendInfoWrapper {
-    border: 1px solid #F2F2F2;
-    margin-bottom: 15px;
-
-    h4 {
-        color: #000;
-        height: 40px;
-        line-height: 40px;
-        background-color: #FAEBEC;
-        font-size: 16px;
-        font-weight: bold;
-    }
-}
-
-.recommendInfoWrapper h4 i {
-    content: '';
-    width: 40px;
-    height: 40px;
-    float: left;
-}
-
-.symptomRecommend,
-.physiExamRecommend,
-.labAndPacsRecommend {
-    h4 {
-        background-color: #ECF4FC;
-    }
-}
-
-.treatRecommend,.knowledgeInfo,.scaleInfo {
-    h4 {
-        background-color: #E3FEFE;
-    }
-}
-.tipsInfo {
-    h4 {
-        background-color: #E3FEFE;
-    }
-}
-
-
-.conditTips {
-    h4 {
-        background-color: #FDF4EE;
-    }
-}
-
-.recommendInfoBox {
-    padding: 4px 17px;
-}
-
-.treatRecommend h4 i,.knowledgeInfo h4 i,.scaleInfo h4 i {
-    background: url(/images/zhiliao.png) center center no-repeat;
-}
-.tipsInfo h4 i {
-    background: url(/images/zhiliao.png) center center no-repeat;
-}
-
-.conditTips h4 i {
-    background: url(/images/tips.png) center center no-repeat;
-}
-
-.symptomRecommend h4 i {
-    background: url(/images/inquire.png) center center no-repeat;
-}
-
-.physiExamRecommend h4 i {
-    background: url(/images/tgjc.png) center center no-repeat;
-}
-
-.labAndPacsRecommend h4 i {
-    background: url(/images/inspect.png) center center no-repeat;
-}
-
-.warning h4 i {
-    background: url(/images/warings.png) center center no-repeat;
-}
-
-.diagRecommend h4 i {
-    background: url(/images/yszd.png) center center no-repeat;
-}
-
-.recommendInfoItem {
-    padding-right: 15px;
-    float: left;
-    line-height: 25px;
-    position: relative;
-}
-
-.infoMsg,
-.infoMsgOn {
-    position: absolute;
-    top: 6px;
-    right: 0;
-}
-
-.infoMsg,
-.infoMsgOn {
-    display: none;
-    cursor: pointer;
-}
-
-.recommendInfoItemHasInfo:hover,
-.diagNameBox:hover,
-.durgNameBox:hover {
-    color: #267FD7;
-
-    .infoMsg {
-        display: inline-block;
-        width: 14px;
-        height: 14px;
-        background: url(/images/msg1.png) center center no-repeat;
-    }
-
-    .infoMsg:hover {
-        background: url(/images/msg2.png) center center no-repeat;
-    }
-}
-
-// .diagNameBox:hover {
-//     color: #267FD7;
-//     .infoMsg {
-//         display: inline-block;
-//         width: 16px;
-//         height: 16px;
-//         background: url(/images/msg1.png) center center no-repeat;
-//     }
-//     .infoMsg:hover {
-//         background: url(/images/msg2.png) center center no-repeat;
-//     }
-// }
-.diagNameBox,
-.durgNameBox {
-    position: relative;
-    padding-right: 15px;
-    display: inline-block;
-    .infoMsg, .infoMsgOn {
-        top: 6px;
-    }
-}
-.durgName, .diagName{
-    border-bottom: 1px solid #1E1E1E;
-}
-.sriticalinfo {
-    height:30px;
-    background:#F5F5F5;
-    line-height: 30px;
-    margin: 10px 0;
-}
-.recommendInfoBox p {
-    line-height: 25px;
-}
-
-.commonTreatmentbox {
-    padding-bottom: 10px;
-    border-bottom: 1px solid #D1D1D1;
-}
-
-.drugTreatmentbox {
-    padding-top: 10px;
-}
-
-.illnessTable {
-    color: #267FD7;
-    line-height: 28px;
-    cursor: pointer;
-}
-
-.labAndPacsBox {
-    position: relative;
-    line-height: 25px;
-}
-
-.alertModal {
-    position: relative;
-
-    .mayResult {
-        color: #838383;
-        position: relative;
-    }
-
-    .mayResultSelect {
-        line-height: 28px;
-
-        .makesureResult {
-            cursor: pointer;
-            color: @colorBlue;
-        }
-
-        .sanjiao {
-            width: 18px;
-            height: 18px;
-            display: inline-block;
-            position: relative;
-            top: 3px;
-            background: url('../images/select.png') center center no-repeat;
-        }
-    }
-}
-
-.recommendInfoItemBox {
-    position: relative;
-}
-
-.recommendInfoItemBoxLimit {
-    height: 25px;
-    overflow: hidden;
-    position: relative;
-}
-
-.commonTreatmentInfoLimit {
-    height: 75px;
-    overflow: hidden;
-    position: relative;
-}
-
-.slideDown {
-    background-color: #fff;
-    position: absolute;
-    bottom: 0px;
-    right: 0px;
-    color: @colorBlue;
-    height: 25px;
-    line-height: 25px;
-    box-shadow: -2px 0px 15px 0px #fff;
-    cursor: pointer;
-
-    i {
-        width: 10px;
-        height: 7px;
-        display: inline-block;
-        position: relative;
-        top: -2px;
-        background: url('../images/down.png') center center no-repeat;
-    }
-}
-
-.slideup {
-    background-color: #fff;
-    position: relative;
-    float: right;
-    bottom: 0px;
-    right: 0px;
-    color: @colorBlue;
-    cursor: pointer;
-    height: 25px;
-    line-height: 25px;
-    box-shadow: -2px 0px 15px 0px #fff;
-
-    i {
-        width: 10px;
-        height: 7px;
-        display: inline-block;
-        position: relative;
-        top: -2px;
-        background: url('../images/up.png') center center no-repeat;
-    }
-}
-
-.responsibility {
-    font-size: 12px;
-    color: #979797;
-    padding: 10px 0;
-    position: fixed;
-    bottom: 22px;
-    background: #fff;
-    z-index: 99;
-}
-.disclaimer {
-    padding:10px 0;
-    width: 100%;
-    position: fixed;
-    bottom: 0;
-    left: 0;
-    z-index: 98;
-    font-size: 12px;
-    height: 14px;
-    background: #fff;
-    .version-tip{
-        margin-left: 20px;
-        font-size: 12px;
-        a{
-            font-size: 12px;
-            text-decoration: none;
-        }
-        &.new-icon{
-            background: url(../images/new.png) 100% 0px no-repeat;
-        }
-    }
-    .logo {
-        font-size: 12px;
-        margin-left: 8px;
-        color: #797979;
-    }
-    .disclaimerInfo {
-        float: right;
-        font-size: 12px;
-        margin-right: 20px;
-    }
-}
-
-.labAndPacsTitle {
-    border-right: 2px solid #ADADAD;
-    padding-right:5px; 
-    margin-right: 5px;
-}
-.labAndPacsItem {
-    display: inline-block;
-    padding-right: 15px;
-}
-
-.recommendNull,.TipsInfoNull {
-    color: #ADADAD;
-}
-.treatItemTitle {
-    font-weight: bold;
-    padding-bottom: 5px;
-}
-.disclaimerInfo {
-    cursor: pointer;
-}
-.moreInfo {
-    display: inline-block;
-    width:42px;
-    height:20px;
-    border-radius:4px;
-    border:1px solid #267FD7;
-    line-height:20px;
-    color: #267FD7;
-    text-align: center;
-    margin-left: 20px;
-    cursor: pointer;
-}
-.durgNameBox {
-    .medicineWaring {
-        background-color: #f4c051;
-        color: #000;
-        font-size: 12px;
-        border-radius: 4px;
-        border: 1px solid #fff;
-        line-height: 18px;
-      }
-      .medicineWaringDisMsg {
-        background-color: #fff;
-        color: @grayColor;
-        font-size: 12px;
-        border-radius: 4px;
-        line-height: 18px;
-        border: 1px solid @grayColor;
-      }
-      .medicineWaringDisMsg {
-        color: @grayColor;
-      }
-}
-.medicineWaringDis {
-    color: @grayColor;
-    .durgName{
-        border-bottom: 1px solid @grayColor;
-    }
-  }
-.medicineWaringDis:hover {
-    color: @grayColor;
-}
-
-.staticWin {
-    color: #040428;
-    text-decoration: underline;
-    cursor: pointer;
-}
-.line {
-    width: 100%;
-    height: 1px;
-    background: #D1D1D1;
-}
-.diagTitle {
-    color: #3b9ed0;
-    position: relative;
-    margin: 0 0 10px;
-    font-weight: 500;
-    i {
-        position: relative;
-        display: inline-block;
-        width: 4px;
-        height: 4px;
-        background: #3b9ed0;
-        border-radius: 50%;
-        top: -4px;
-        margin-right: 6px;
-    }
-}
-.diagDescription{
-    color: #333;
-    font-weight: 600;
-    margin: 5px 0 10px;
-}
-.treatItemTitle {
-    position: relative;
-    .slideDown {
-        font-weight: normal;
-        bottom: 5px;
-    }
-}

+ 1 - 24
src/css/informationOut.less

@@ -219,6 +219,7 @@ div,li,span,i,p,h1,h2,h3,h4,h5,pre{
   font-size: 14px;
   font-weight: 400;
   word-wrap: break-word;
+  color: #000;
 }
 
 .anchors .active a {
@@ -374,30 +375,6 @@ div,li,span,i,p,h1,h2,h3,h4,h5,pre{
   }
 }
 
-.infos::-webkit-scrollbar, .anchors::-webkit-scrollbar {
-  /*滚动条整体样式*/
-  width: 6px;
-  height: 100px;
-  /*高宽分别对应横竖滚动条的尺寸*/
-  background: #ebeef5;
-  -webkit-box-shadow: inset 1px 0 1px rgba(0, 0, 0, 0.2);
-}
-
-.infos::-webkit-scrollbar-thumb, .anchors::-webkit-scrollbar-thumb {
-  /*滚动条里面小方块*/
-  width: 6px;
-  border-radius: 5px;
-  background: @staticMainColor;
-  height: 100px;
-}
-
-.infos::-webkit-scrollbar-track, .anchors::-webkit-scrollbar-track {
-  /*滚动条里面轨道*/
-  border-radius: 2px;
-  background: #f0f2f5;
-  opacity: .2;
-}
-
 .scaletitle{
   font-size: 20px;
   font-weight: 500;

+ 0 - 9
src/css/page.css

@@ -1,9 +0,0 @@
-p {
-  color: blueviolet;
-}
-.iframeContainer {
-  width: 500px;
-  height: 800px;
-  margin: 0 auto;
-  border: 1px solid #ccc;
-}

+ 1 - 4
src/css/reset.css

@@ -34,7 +34,7 @@ input {
 html,
 body {
   font-family: 'Microsoft YaHei', arial, tahoma, sans-serif;
-  color: #000;
+  color: #666;
 }
 
 ol,
@@ -45,9 +45,6 @@ ul {
 li {
   list-style: none;
 }
-a {
-  color: #000;
-}
 button {
   cursor: pointer;
   outline: none;

+ 1 - 0
src/css/searchStaticList.less

@@ -43,6 +43,7 @@
     background-color: #fff;
     ul {
       text-align: left;
+      max-width: 750px;
     }
     li {
       float: left;

+ 1 - 24
src/css/staticInfo.less

@@ -219,6 +219,7 @@
     font-size: 16px;
     font-weight: 400;
     word-wrap: break-word;
+    color: #000;
   }
 
   .anchors .active a {
@@ -313,30 +314,6 @@
   z-index: 20;
   background-color: #fff;
 }
-
-.infos::-webkit-scrollbar, .anchors::-webkit-scrollbar {
-  /*滚动条整体样式*/
-  width: 6px;
-  height: 100px;
-  /*高宽分别对应横竖滚动条的尺寸*/
-  background: #ebeef5;
-  -webkit-box-shadow: inset 1px 0 1px rgba(0, 0, 0, 0.2);
-}
-
-.infos::-webkit-scrollbar-thumb, .anchors::-webkit-scrollbar-thumb {
-  /*滚动条里面小方块*/
-  width: 6px;
-  border-radius: 5px;
-  background: @staticMainColor;
-  height: 100px;
-}
-
-.infos::-webkit-scrollbar-track, .anchors::-webkit-scrollbar-track {
-  /*滚动条里面轨道*/
-  border-radius: 2px;
-  background: #f0f2f5;
-  opacity: .2;
-}
 .scaletitle{
   font-size: 20px;
   font-weight: 500;

+ 0 - 24
src/css/staticInfoOut.less

@@ -352,30 +352,6 @@ div,li,span,i,p,h1,h2,h3,h4,h5,pre{
   }
 }
 
-.infos::-webkit-scrollbar, .anchors::-webkit-scrollbar {
-  /*滚动条整体样式*/
-  width: 6px;
-  height: 100px;
-  /*高宽分别对应横竖滚动条的尺寸*/
-  background: #ebeef5;
-  -webkit-box-shadow: inset 1px 0 1px rgba(0, 0, 0, 0.2);
-}
-
-.infos::-webkit-scrollbar-thumb, .anchors::-webkit-scrollbar-thumb {
-  /*滚动条里面小方块*/
-  width: 6px;
-  border-radius: 5px;
-  background: @staticMainColor;
-  height: 100px;
-}
-
-.infos::-webkit-scrollbar-track, .anchors::-webkit-scrollbar-track {
-  /*滚动条里面轨道*/
-  border-radius: 2px;
-  background: #f0f2f5;
-  opacity: .2;
-}
-
 .scaletitle{
   font-size: 20px;
   font-weight: 500;

+ 31 - 21
src/css/staticSearch.css

@@ -1,3 +1,4 @@
+@import "common.less";
 html{
     background: #fff;
     font-family: '微软雅黑', '宋体';
@@ -23,8 +24,9 @@ html{
 }
 .container .ipt {
     width: 100%;
-    height: 34px;
-    padding: 5px 25px 5px 5px;
+    height: 36px;
+    padding: 6px 25px 6px 5px;
+    border-radius: 4px 0px 0px 4px;
     vertical-align: top;
     display: inline-block;
     box-sizing: border-box;
@@ -34,6 +36,7 @@ html{
     width: 100%;
     position: relative;
     top: 1px;
+    font-size: 14px;
     font-family: '微软雅黑', '宋体';
 }
 
@@ -42,13 +45,14 @@ html{
     right: 0;
     top: 10px;
     width: 80px;
-    height: 34px;
-    line-height: 34px;
+    height: 36px;
+    line-height: 36px;
     color: #fff;
-    background: #2A9BD5;
+    font-size: 14px;
+    background: @bgcBlue;
+    border-radius: 0px 4px 4px 0px;
     text-align: center;
     border: none;
-    font-family: '微软雅黑', '宋体';
 }
 .container .staticSearchT i {
     position: absolute;
@@ -68,41 +72,49 @@ html{
 .staticSearchB .empty, .staticSearchB .searching,.staticSearchB .inputWarning{
     color: #979797;
     text-align: center;
-    line-height: 40px;
-    margin-top: 10px;
+    /*line-height: 40px;*/      /**bug8689*/
     top: 70px;
     position: relative;
 }
 .staticSearchB .inputWarning{
-    color: #1E1E1E;
+    color: @fontClr;
 }
 
 .staticSearchB ul {
     position: absolute;
     height: 480px;
     /* width: 100%; */
-    right: 30px;
-    left: 30px;
+    right: 18px;
+    left: 22px;
     overflow: auto;
     padding: 0 30px;
 }
 .staticSearchB ul li {
-    border-bottom: 1px #CECECE solid;
-    line-height: 30px;
+    border-bottom: 1px #EFEFEF solid;
+    line-height: 32px;
     padding-top: 5px;
     cursor: pointer;
 }
 .staticSearchB ul li:hover {
     border-bottom: 2px solid #3B9ED0;
 }
+.staticSearchB ul  p{
+    color: @fontClr;
+}
 .staticSearchB ul i {
-    font-size: 12px;
-    color: #2A9BD5;
+    font-size: 14px;
+    color: @linkColor;
 }
 .staticSearchB .tip {
-    font-size: 12px;
+    font-size: 16px;
     color: #979797;
-    margin-bottom: 10px;
+    margin-bottom: 5px;
+    img{
+        width: 16px;
+        height: 16px;
+        vertical-align: middle;
+        margin-right: 5px;
+    }
 }
 .staticSearchB ul span {
     color: #979797;
@@ -111,17 +123,15 @@ html{
     line-height: 20px;
 }
 .searchTypeBox {
-    margin: 10px 0 0 0;
+    margin: 10px 0 5px 0;
 }
 .medicalTypeItem{
     display: inline-block;
     margin: 0 20px 10px 0;
     cursor: pointer;
+    color: @fontClr;
 }
 .medicalTypeItem img {
     vertical-align: text-bottom;
     margin: 0  3px 2px 0;
-}
-.emptyImg{
-    width: 100px;
 }

+ 11 - 14
src/html/caseWriteStandard.html

@@ -25,27 +25,24 @@
       color: #505050;
       line-height: 28px;
     }
-
-    h1 {
-      text-align: center;
-      padding: 80px 0 60px;
-    }
     .titleH1{
-      padding: 20px 0;
-      color: #1E1E1E;
+      text-align: center;
+      color: #fff;
       font-size: 18px;
+      background: #FF7F5B;
+      height: 60px;
+      line-height: 60px;
     }
-    .contentTitle{
-      font-size: 14px;
-      color: #1E1E1E;
-      font-weight: 600;
+    .content{
+      padding:20px 0 0 60px;
+    }
+    .content>div{
+      background: url("../images/dot.png") 0 10px no-repeat;
+      text-indent: 10px;
     }
-
     .container {
-      width: 80%;
       background: #fff;
       margin: 0 auto;
-      padding: 0 30px 40px;
     }
   </style>
   <script>

+ 23 - 16
src/html/cdss.html

@@ -25,26 +25,32 @@
           <img src="../images/right.png" class="right" alt="">
         </div>
       </div> -->
-      <div class="iframeWrap">
-        <div class="tabList">
-
-        </div>
+      <div class="iframeWrap clearfix">
+        <div class="tabList fl"></div>
         <div class="contentWrapper">
           <div class="recommendWrap moduleWrapper">
             <div class="recommendBox">
-              <div class="empty">
-                <img class="emptyImg" src="./images/empty2.png" alt="空">
-                <p class="emptyTxt">等待更多内容输入中</p>
+              <div class="empty-box empty">
+                <img class="emptyImg small" src="../images/empty2.png" alt="空">
+                <p class="emptyTxt">等待内容输入中…</p>
+              </div>
+              <div class="empty-box empty-right">
+                  <img class="emptyImg" src="../images/icon_admin.png" alt="空">
+                  <p class="emptyTxt">功能未开启</p>
+              </div>
+              <div class="empty-box empty-null">
+                  <img class="emptyImg" src="../images/empty.png" alt="空">
+                  <p class="emptyTxt">暂无推送内容</p>
               </div>
-              <div class="loading">
+              <div class="empty-box loading">
                 <div class="loadingMask"></div>
-                <img class="loadingImg" src="./images/loading.gif" alt="loading">
+                <img class="loadingImg" src="../images/loading.gif" alt="loading">
                 <!-- <p class="loadingTxt">loading~</p> -->
               </div>
               <p class="responsibility"></p>
             </div>
-            
-            
+
+
           </div>
           <div class="qcWrap moduleWrapper">
   
@@ -62,12 +68,12 @@
                   <div class="searchTypeBox"></div>
       
                   <div class="staticSearchB">
-                      <p class="tip">搜索结果</p>
+                      <p class="tip"><img src="../images/icon_search.png" alt=""/>搜索结果</p>
                       <p class="searching">正在搜索中...</p>
                       <p class="inputWarning">请输入搜索内容!</p>
                       <div class="empty">
-                          <img class="emptyImgSearch" src="./images/empty3.png" alt="">
-                        <p>暂无搜索结果~</p>
+                          <img class="emptyImgSearch" src="./images/icon_no.png" alt="">
+                        <p>暂无搜索结果</p>
                       </div>
                       <ul>
                           
@@ -92,7 +98,6 @@
                     <p class="title">
                         <img class="icon" src="./images/t2.png" alt="">
                         <span class="h2">中医处方推荐</span>
-                        <a class="go" id="goTreat">更多 <img class="icon" src="./images/g1.png" alt=""></a>
                     </p>
                     <div class="content">
                         <ul class="infos clearfix">
@@ -113,6 +118,7 @@
                             <ul>
 
                             </ul>
+                            <a class="go" id="goTreat">更多</a>
                         </div>
                     </div>
                 </div>
@@ -134,9 +140,10 @@
                         </ul>
                     </div>
                 </div>
+                <p class="responsibility"></p>
             </div>
           <div class="disclaimer clearfix">
-            <span class="version-tip"><span class="version-txt">版本说明 <img class="newIcon" src="./images/new.png"></span></span>
+            <span class="version-tip"><span class="version-txt"><i>版本说明</i><img class="newIcon" src="./images/new.png"></span></span>
             <span class="logo">&copy; 朗通医疗</span>
             <span class="disclaimerInfo"><span class="disclaimerInfoTxt">免责声明</span></span>
           </div>

+ 18 - 4
src/html/cdssHorizontal.html

@@ -14,7 +14,7 @@
 </head>
 
 <body>
-  <div class="bodyWrap">
+  <div class="bodyWrap bodyWrapHorizontal clearfix">
       <div class="versionWrapper">
         <span class="versionTop">
           <span class="pushDisclaimer">智能推送仅供参考 </span>
@@ -26,11 +26,25 @@
         </span>
        
       </div>
-      <div class="tabList">
-
-      </div>
+      
       <div class="contentBox">
+        <div class="tabList">
+
+        </div>
         <div class="recommendWrap moduleWrapper clearfix">
+          <div class="empty-box empty-right">
+            <img class="emptyImg" src="../images/icon_admin.png" alt="空">
+            <p class="emptyTxt">功能未开启</p>
+          </div>
+          <div class="empty-box empty-null">
+            <img class="emptyImg" src="../images/empty.png" alt="空">
+            <p class="emptyTxt">暂无推送内容</p>
+          </div>
+          <div class="empty-box loading">
+          <div class="loadingMask"></div>
+          <img class="loadingImg" src="../images/loading.gif" alt="loading">
+          <!-- <p class="loadingTxt">loading~</p> -->
+        </div>
           <div class="leftWrapper">
             <div class="leftBox"></div>
           </div>

+ 0 - 13
src/html/check.html

@@ -1,13 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-  <meta charset="UTF-8">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0">
-  <title>Document</title>
-</head>
-<body>
-  <div class="">
-
-  </div>
-</body>
-</html>

+ 5 - 5
src/html/disclaimer.html

@@ -32,10 +32,10 @@
     }
 
     .container {
-      width: 80%;
       background: #fff;
-      margin: 0 auto;
-      padding: 0 30px 40px;
+    }
+    .content{
+      padding: 0 45px 40px;
     }
   </style>
   <script>
@@ -47,8 +47,8 @@
 </head>
 
 <body>
-  <div class="container">
-    <h1></h1>
+  <div class="container disclaimer">
+    <h1><span></span></h1>
     <div class="content">
 
     </div>

文件差异内容过多而无法显示
+ 1909 - 9
src/html/generalTreat.html


文件差异内容过多而无法显示
+ 0 - 51
src/html/icssIndex.html


文件差异内容过多而无法显示
+ 0 - 32
src/html/illness.html


文件差异内容过多而无法显示
+ 0 - 31
src/html/index.html


文件差异内容过多而无法显示
+ 0 - 39
src/html/indexHorizontal.html


文件差异内容过多而无法显示
+ 0 - 23
src/html/page.html


+ 33 - 20
src/html/smartAlert.html

@@ -25,34 +25,47 @@
       color: #505050;
       line-height: 28px;
     }
-
-    h1 {
-      text-align: center;
-      padding: 80px 0 60px;
-    
-    }
     .titleH1{
-      padding: 20px 0;
-      color: #1E1E1E;
+      text-align: center;
+      color: #fff;
       font-size: 18px;
+      background: #FF7F5B;
+      height: 60px;
+      line-height: 60px;
+    }
+    .content{
+      padding:20px 0 0 60px;
     }
     .contentTitle{
-      font-size: 14px;
-      color: #1E1E1E;
-      font-weight: 600;
+      margin-bottom: 7px;
+    }
+    .contentTitle span{
+      display: inline-block;
+      padding: 0 8px;
+      border:1px solid #FF7F5B;
+      color: #FF7F5B;
     }
+    .contentBox{
+      margin-bottom: 12px;
+    }
+    .contentBox li{
+      line-height: 20px;
+      color: #333;
+    }
+    .contentBox>li{
+      background: url("../images/dot.png") 0 10px no-repeat;
+      text-indent: 10px;
+    }
+    /*.contentBox li:before{
+      content: "·";
+      color: #FF7F5B;
+      font-size: 38px;
+      vertical-align: text-bottom;
+      margin-right: 3px;
+    }*/
     .container {
-      width: 80%;
       background: #fff;
       margin: 0 auto;
-      padding: 0 30px 40px;
-    }
-    .contentBox .contentItem{
-      list-style: disc;
-    }
-    .contentBox{
-      padding: 0 0 0 20px;
-      margin: 0 0 15px 0;
     }
   </style>
   <script>

+ 1 - 1
src/html/staticInfo.html

@@ -93,7 +93,7 @@
 
     </div>
   </div>
-  <div class="btmFix"></div>
+  <!--<div class="btmFix"></div>-->
 </body>
 
 

文件差异内容过多而无法显示
+ 0 - 67
src/html/staticSearch.html


文件差异内容过多而无法显示
+ 0 - 47
src/html/treatplan.html


文件差异内容过多而无法显示
+ 9 - 24
src/html/version.html


二进制
src/images/arr.png


二进制
src/images/check_on.png


二进制
src/images/dot.png


二进制
src/images/empty.png


二进制
src/images/empty2.png


二进制
src/images/empty3.png


二进制
src/images/g1.png


二进制
src/images/go.png


二进制
src/images/icon_admin.png


二进制
src/images/icon_arrow_down.png


二进制
src/images/icon_arrow_up.png


二进制
src/images/icon_current.png


+ 0 - 13
src/images/icon_current.svg

@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<svg width="26px" height="16px" viewBox="0 0 26 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
-    <!-- Generator: Sketch 61 (89581) - https://sketch.com -->
-    <title>矩形</title>
-    <desc>Created with Sketch.</desc>
-    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
-        <g id="疾病详情-临床路径页" transform="translate(-1121.000000, -304.000000)" fill="#2A9BD5">
-            <g id="编组-3" transform="translate(1079.000000, 126.000000)">
-                <polygon id="矩形" points="42 178 63.6239567 178 68 186.189897 63.6239567 194 42 194"></polygon>
-            </g>
-        </g>
-    </g>
-</svg>

二进制
src/images/icon_diag_push2.png


二进制
src/images/icon_drug_push.png


二进制
src/images/icon_lis_push.png


二进制
src/images/icon_mark.png


二进制
src/images/icon_no.png


二进制
src/images/icon_nurse_push.png


二进制
src/images/icon_operation_push.png


二进制
src/images/icon_pacs_push.png


二进制
src/images/icon_scale_push.png


二进制
src/images/icon_search.png


二进制
src/images/icon_symptom_push.png


二进制
src/images/icon_warn1.png


二进制
src/images/icon_warning.png


二进制
src/images/intelligentDiagnosis.png


二进制
src/images/lis.png


二进制
src/images/lisStrFront-icon.png


二进制
src/images/new.png


二进制
src/images/new2.png


二进制
src/images/pace.png


二进制
src/images/pacsStrFront-icon.png


二进制
src/images/right-icon.png


二进制
src/images/rock.png


二进制
src/images/show2.png


二进制
src/images/therapeuticSchedule.png


二进制
src/images/tip-bg.png


二进制
src/images/writingNorms.png


二进制
src/images/zhiliao.png


+ 1 - 0
src/js/caseWriteStandard.js

@@ -1,5 +1,6 @@
 const $ = require("jquery");
 const {getUrlArgObject} = require('./promise.js');
+require('./../images/dot.png').replace(/^undefined/g, '')
 
 $(function(){
   let caseWriteStandradList = JSON.parse(getUrlArgObject("caseWriteStandradList")) || {}

文件差异内容过多而无法显示
+ 428 - 399
src/js/cdss.js


+ 127 - 81
src/js/cdssHorizontal.js

@@ -10,8 +10,8 @@ const $ = require("jquery");
 require('./../css/reset.css');
 require('./../css/cdssHorizontal.less');
 require('./../css/popup.css');
-require('./../css/staticSearch.css')
-require('./../js/staticSearch.js')
+require('../css/staticSearch.less')
+require('./../js/staticSearch.js');//静态知识搜索
 require('./../images/empty2.png').replace(/^undefined/g, '')
 require('./../images/dn.png').replace(/^undefined/g, '')
 require('./../images/loading.gif').replace(/^undefined/g, '')
@@ -29,7 +29,6 @@ let generalTreatInfo
 const { renderFollowUp } = require('./followUp.js');
 const { getTcmMr } = require('./tcmiss.js');
 
-setWidth()
 let moduleConfig = {
   auxiliary: "recommendWrap",
   qc: "qcWrap",
@@ -106,9 +105,31 @@ function renderPage(pageSet) {
   const hasFollowUp = hasTab("随访计划", pageSet.sysSetInfo)
   const hasTcm = hasTab("中医辅助", pageSet.sysSetInfo)
 
+  //所有模块都未开启配置,显示功能未开启(无tab)
+  if(hasAuxiliary.status===0&&hasMedical.status===0&&hasFollowUp.status===0&&hasTcm.status===0){
+      const nullTxt = `<div class="empty-box" style="left: -20px;display: block;">
+                <img class="emptyImg" src="../images/icon_admin.png" alt="空">
+                <p class="emptyTxt">功能未开启</p>
+            </div>`
+      $(".recommendWrap").html(nullTxt).show();
+      return;
+  }
   if (hasTcm) {
     getTcmMr(mrId, hasTcm);
   }
+
+  if (hasFollowUp) {
+      renderFollowUp(msg, 1)
+  }
+  const planDetail = hasAuxiliary.planDetails;
+  const configs = planDetail.filter((it)=>it.status!==0)||[];
+  if(!configs[0]){         //没有开启辅助信息各项配置
+      $('.empty-box').hide();
+      $('.recommendWrap .empty-right').show();
+      return;
+  }
+  //有数据再设置宽度
+  //setWidth()
   if (hasAuxiliary) {
     renderModuleWrapper(hasAuxiliary.planDetails)
     let needPush = isNeedPush(hasAuxiliary.planDetails)
@@ -126,9 +147,6 @@ function renderPage(pageSet) {
       renderCaseWrite()
       allInterface++
     }
-    if (hasFollowUp) {
-      renderFollowUp(msg, 1)
-    }
   }
 }
 function renderTab(tabList) {
@@ -140,17 +158,19 @@ function renderTab(tabList) {
   for (let i = 0; i < tabList.length; i++) {
     if (tabList[i].status == '1') {
       TabNum++
-      tabStr += `<span class="tab" style="border-bottom:${tabList.length == i + 1 ? '0' : '1px solid #3B9ED0'}" data-name="${tabList[i].code}" ><span class="tabName">${tabList[i].name}</span><span class="activeLine"></span></span>`
+      tabStr += `<span class="tab" data-name="${tabList[i].code}" ><span class="tabName">${tabList[i].name}</span><span class="activeLine"></span></span>`
     }
 
   }
   $(".tabList").append(tabStr)
   $(".tabList .tab").eq(0).addClass("activeTab")
-  $(".tabList .tab").css("height", 1 / TabNum * 100 + '%')
+  $(".tabList .tab").eq(0).addClass("activeTab")
+  $(".tabList .tab .activeLine").eq(0).css({ display: "block" })
+  // $(".tabList .tab").css("height", 1 / TabNum * 100 + '%')
   let showModuleName = $(".tabList .tab").eq(0).attr("data-name")
   getModuleShow(moduleConfig[showModuleName])
   bindTabClick()
-  setTabNameTop()
+  //setTabNameTop()
 }
 function hasTab(tabName, tabList) {
   for (let i = 0; i < tabList.length; i++) {
@@ -181,9 +201,13 @@ function renderModuleWrapper(moduleList) {
   }
   $(".recommendWrap .leftBox").append(moduleStr)
   $(".recommendWrap .rightBox").append(treatStr)
+  /*if($(".moduleItem:visible").length===0){
+      $(".empty-null").show();
+  }*/
+
 }
 function isNeedPush(list) {
-  let pushCode = ["diag", "lis", "pacs", "symptom", "vital"]
+  let pushCode = ['critical',"diag", "lis", "pacs", "symptom", "vital","treat","medicines",'evaluation','general','medicine','operation','nurse']
   for (let i = 0; i < list.length; i++) {
     if (pushCode.indexOf(list[i].code) > -1) {
       if (list[i].status == "1") {
@@ -196,7 +220,7 @@ function isNeedPush(list) {
 function isNeedPushWarning(list) {
   let pushCode = ["crivalue", "rationali", "highrisk", "otherremind"]
   for (let i = 0; i < list.length; i++) {
-    if (pushCode.indexOf(list[i].code) > -1) {
+    if (pushCode.indexOf(list[i].code.trim()) > -1) {
       if (list[i].status == "1") {
         return true
       }
@@ -218,7 +242,9 @@ function isNeedwriteStandardPush(list) {
 function bindTabClick() {
   $(".tabList .tab").on("click", function () {
     $(".activeTab").removeClass("activeTab")
+    $(".tabList .tab .activeLine").css({ display: "none" })
     $(this).addClass("activeTab")
+    $(this).find('.activeLine').css({ display: "block" })
     const moduleName = $(this).attr("data-name")
     getModuleShow(moduleConfig[moduleName])
   })
@@ -227,13 +253,14 @@ function getModuleShow(moduleClassName) {
   if ($(`.${moduleClassName}`).css("display") == "none") {
     $(".moduleWrapper").css("display", "none")
     $(`.${moduleClassName}`).css("display", "block")
+    //empty();
   }
 }
 function setTabNameTop() {
-  tabNameList = $(".tabList .tab .tabName")
+  const tabNameList = $(".tabList .tab .tabName")
   for (let i = 0; i < tabNameList.length; i++) {
     let tabNameHei = $(".tabList .tab .tabName").eq(i).height()
-    $(".tabList .tab .tabName").eq(i).css("marginTop", -tabNameHei / 2 + "px")
+    // $(".tabList .tab .tabName").eq(i).css("marginTop", -tabNameHei / 2 + "px")
   }
 }
 function renderCaseWrite() {
@@ -253,9 +280,12 @@ function renderCaseWrite() {
         }
       }
     }
+  }).catch(()=>{
+      $(".loading").hide()
   })
 }
 function renderPushData() {
+  $(".loading").show()
   return getPushInfo().then(res => {
     hasCompleteTnterface++
     if (res.data.code == "0") {
@@ -286,26 +316,32 @@ function renderPushData() {
       let operationsNum = $(".moduleItem.operation").attr("data-num") || 5
       let nurseNum = $(".moduleItem.nurse").attr("data-num") || 5
 
-      renderLis(lisPush, lisNum, 3, true)
-      renderScale(scalePush, scaleNum, 8, true)
-      renderPacs(pacsPush, pacsNum, 5, true)
-      renderCheckup(checkupPush, checkupNum, null, true)
-      renderSymptomPush(symptomPush, symptomNum, null, true)
+      renderLis(lisPush, lisNum)
+      renderScale(scalePush, scaleNum)
+      renderPacs(pacsPush, pacsNum)
+      renderCheckup(checkupPush, checkupNum)
+      renderSymptomPush(symptomPush, symptomNum)
       renderDiag(diagPush)
       if (medicinesPush.length > 0 || operationsPush.length > 0 || generaTreatPush || nursePush.length > 0) {
         let str = `<img class="treatIcon" src = ${titleConfigH["treat"].icon} /><span>${titleConfigH["treat"].name}</span>`
         $(".rightBoxTitle").append(str)
         renderDisName()
-        $(".rightWrapper").css("display", "inline-block")
-        $(".leftWrapper").css("borderRight", "1px solid #E6E6E6")
+        $(".empty-box").hide();
+        $(".rightWrapper").css("display", "block")
+        if($(".leftBox .moduleItem:visible").length===0){   //左侧没有数据,右侧有数据时,右侧往左移
+          $(".leftWrapper").css({"width":'0','padding':'0'});
+          $(".rightWrapper").css("width",'100%');
+        }
       } else {
+        $(".empty-box").hide();
         $(".leftWrapper").css({
           borderRight: "0px",
           width: "100%"
         })
       }
-      if ((!$(".moduleItem.medicine") && !$(".moduleItem.operation") && !(".moduleItem.general")) || ($(".moduleItem.general").length === 0 && $(".moduleItem.medicine").length === 0 && $(".moduleItem.operation").length === 0)) {
+      if ((!$(".moduleItem.medicine") && !$(".moduleItem.operation") && !(".moduleItem.general")) || ($(".moduleItem.general").length === 0 && $(".moduleItem.medicine").length === 0 && $(".moduleItem.operation").length === 0 && $(".moduleItem.nurse").length === 0)) {
         $(".rightWrapper").css("display", "none")
+        $(".empty-box").hide();
         $(".leftWrapper").css({
           borderRight: "0px",
           width: "100%"
@@ -313,37 +349,47 @@ function renderPushData() {
       }
 
       rendergeneraTreatPush(generaTreatPush)
-      renderMedicinesPush(medicinesPush, medicinesNum, 2, true)
-      renderOperationPush(operationsPush, operationsNum, 6, true)
-      renderNurse(nursePush, nurseNum, 9, true)
-      // if(hasCompleteTnterface === allInterface){
-      //   $('.loading').css("display","none")
-      //   if(moduleNum === 0){ 
-      //     empty()
-      //   }
-      // }icon
+      renderMedicinesPush(medicinesPush, medicinesNum)
+      renderOperationPush(operationsPush, operationsNum)
+      renderNurse(nursePush, nurseNum)
       bindOpenInfo()
       bindSlide()
       moreInfo()
+      empty()
     }
+  }).catch(()=>{
+      $(".loading").hide()
   })
 }
-
-function renderLis(list, showNum, type, hasInfo) {
+function empty(){   //显示空状态
+  setTimeout(function(){
+      if(!$(".rightWrapper .rightBoxTitle").html()){
+          $(".leftWrapper").css({
+              borderRight: "0px",
+              width: "100%"
+          })
+      }
+      if($(".tabList .tab:first-child").is(".activeTab")&&$(".empty-right:visible").length===0&&$(".moduleItem:visible").length===0){
+          $(".empty-box").hide();
+          $(".empty-null").show();
+      }
+  },300);
+}
+function renderLis(list, showNum) {
   if (list.length > 0 && $(".moduleItem.lis").length > 0) {
     moduleNum++
     $('.moduleItem.lis .moduleItemTitBox').append(titleStr("lisPush"))
-    let { shortStr, longStr } = renderItemWrapper(list, showNum, type, hasInfo)
+    let { shortStr, longStr } = renderItemWrapper(list, showNum)
     $('.moduleItem.lis').append(shortStr)
     $('.moduleItem.lis').append(renderLongStr(titleConfigH["lisPush"].name, longStr, titleConfigH["lisPush"].location))
     $('.moduleItem.lis').css("display", "block")
   }
 }
-function renderScale(list, showNum, type, hasInfo) {
+function renderScale(list, showNum) {
   if (list.length > 0 && $(".moduleItem.evaluation").length > 0) {
     moduleNum++
     $('.moduleItem.evaluation .moduleItemTitBox').append(titleStr("scalePush"))
-    let { shortStr, longStr } = renderItemWrapper(list, showNum, type, hasInfo)
+    let { shortStr, longStr } = renderItemWrapper(list, showNum)
     $('.moduleItem.evaluation').append(shortStr)
     $('.moduleItem.evaluation').append(renderLongStr(titleConfigH["scalePush"].name, longStr, titleConfigH["scalePush"].location))
     $('.moduleItem.evaluation').css("display", "block")
@@ -352,55 +398,55 @@ function renderScale(list, showNum, type, hasInfo) {
   }
 }
 
-function renderNurse(list, showNum, type, hasInfo) {
+function renderNurse(list, showNum) {
   if (list.length > 0 && $(".moduleItem.nurse").length > 0) {
     moduleNum++
     $('.moduleItem.nurse .moduleItemTitBox').append(titleStr("nursePush"))
-    let { shortStr, longStr } = renderItemWrapper(list, showNum, type, hasInfo)
+    let { shortStr, longStr } = renderItemWrapper(list, showNum)
     $(".moduleItem.nurse").append(shortStr)
     $(".moduleItem.nurse").append(renderLongStr(titleConfigH["nursePush"].name, longStr, titleConfigH["nursePush"].location))
     $(".moduleItem.nurse").css("display", "block")
   }
 }
-function renderPacs(list, showNum, type, hasInfo) {
+function renderPacs(list, showNum) {
   if (list.length > 0 && $(".moduleItem.pacs").length > 0) {
     moduleNum++
     $('.moduleItem.pacs .moduleItemTitBox').append(titleStr("pacsPush"))
-    let { shortStr, longStr } = renderItemWrapper(list, showNum, type, hasInfo)
+    let { shortStr, longStr } = renderItemWrapper(list, showNum)
     $(".moduleItem.pacs").append(shortStr)
     $(".moduleItem.pacs").append(renderLongStr(titleConfigH["pacsPush"].name, longStr, titleConfigH["pacsPush"].location))
     $('.moduleItem.pacs').css("display", "block")
   }
 
 }
-function renderSymptomPush(list, showNum, type, hasInfo) {
+function renderSymptomPush(list, showNum) {
   if (list.length > 0 && $(".moduleItem.symptom").length > 0) {
     moduleNum++
     $('.moduleItem.symptom .moduleItemTitBox').append(titleStr("symptomPush"))
-    let { shortStr, longStr } = renderItemWrapper(list, showNum, type, hasInfo)
+    let { shortStr, longStr } = renderItemWrapper(list, showNum)
     $(".moduleItem.symptom").append(shortStr)
     $(".moduleItem.symptom").append(renderLongStr(titleConfigH["symptomPush"].name, longStr, titleConfigH["symptomPush"].location))
     $('.moduleItem.symptom').css("display", "block")
   }
 
 }
-function renderMedicinesPush(list, showNum, type, hasInfo) {
+function renderMedicinesPush(list, showNum) {
 
   if (list.length > 0 && $(".moduleItem.medicine").length > 0) {
     moduleNum++
     $('.moduleItem.medicine .moduleItemTitBox').append(titleStr("drugPush"))
-    let { shortStr, longStr } = renderItemWrapper(list, showNum, type, hasInfo)
+    let { shortStr, longStr } = renderItemWrapper(list, showNum)
     $(".moduleItem.medicine").append(shortStr)
     $(".moduleItem.medicine").append(renderLongStr(titleConfigH["drugPush"].name, longStr, titleConfigH["drugPush"].location))
     $(".moduleItem.medicine").css("display", "block")
   }
 
 }
-function renderOperationPush(list, showNum, type, hasInfo) {
+function renderOperationPush(list, showNum) {
   if (list.length > 0 && $(".moduleItem.operation").length > 0) {
     moduleNum++
     $('.moduleItem.operation .moduleItemTitBox').append(titleStr("operationPush"))
-    let { shortStr, longStr } = renderItemWrapper(list, showNum, type, hasInfo)
+    let { shortStr, longStr } = renderItemWrapper(list, showNum)
     $(".moduleItem.operation").append(shortStr)
     $(".moduleItem.operation").append(renderLongStr(titleConfigH["operationPush"].name, longStr, titleConfigH["operationPush"].location))
     $(".moduleItem.operation").css("display", "block")
@@ -430,11 +476,11 @@ function rendergeneraTreatPush(list) {
     $(".moduleItem.general").css("display", "block")
   }
 }
-function renderCheckup(list, showNum, type, hasInfo) {
+function renderCheckup(list, showNum) {
   if (list.length > 0 && $(".moduleItem.vital").length > 0) {
     moduleNum++
     $(".moduleItem.vital .moduleItemTitBox").append(titleStr("checkupPush"))
-    let { shortStr, longStr } = renderItemWrapper(list, showNum, type, hasInfo)
+    let { shortStr, longStr } = renderItemWrapper(list, showNum)
     $(".moduleItem.vital").append(shortStr)
     $(".moduleItem.vital").append(renderLongStr(titleConfigH["checkupPush"].name, longStr, titleConfigH["checkupPush"].location))
     $('.moduleItem.vital').css("display", "block")
@@ -442,18 +488,15 @@ function renderCheckup(list, showNum, type, hasInfo) {
 }
 function renderDiag(diagPush) {
   let possibleDiagPush = diagPush["可能诊断"] || []
-  let firstDiagPush = diagPush["初步诊断"] || []
+  let firstDiagPush = diagPush["既往诊断"] || []
   let identifyDiagPush = diagPush["鉴别诊断"] || []
   let warningDiagPush = diagPush["警惕"] || []
   let number = $('.moduleItem.diag').attr("data-num") || 5
   let warnNumber = $('.moduleItem.warning').attr("data-num") || 5
 
   $('.moduleItem.diag .moduleItemTitBox').append(titleStr("diagPush"))
-  // let warningDiagPush = [{name:"血常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"血常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null}]
-  // let firstDiagPush =  [{name:"血常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null}]
-  // let identifyDiagPush = diagPush["鉴别诊断"] ||  [{name:"血常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null}]
   renderDiagItem(possibleDiagPush, "可能诊断", number)
-  renderDiagItem(firstDiagPush, "初步诊断", number)
+  renderDiagItem(firstDiagPush, "既往诊断", number)
   renderDiagItem(identifyDiagPush, "鉴别诊断", number)
   renderWarningDiag(warningDiagPush, "警惕", 1000)
   moreInfo()
@@ -463,7 +506,7 @@ function renderDiagItem(list, name, number) {
     return
   }
   let titleStr = `<span class="moduleBoxName">${name}</span>`
-  let { shortStr, longStr } = renderItemWrapper(list, number, 1, true)
+  let { shortStr, longStr } = renderItemWrapper(list, number)
   let boxStr = `<div class="moduleBox">
         ${titleStr}
         ${shortStr}
@@ -476,7 +519,7 @@ function renderWarningDiag(list, name, showNum) {
   if (list.length > 0 && $(".moduleItem.warning").length > 0) {
     moduleNum++
     $('.moduleItem.warning .moduleItemTitBox').append(titleStr("vigilancePush"))
-    let { shortStr, longStr } = renderItemWrapper(list, showNum, 1, true)
+    let { shortStr, longStr } = renderItemWrapper(list, showNum)
     $('.moduleItem.warning').append(shortStr)
     $('.moduleItem.warning').css("display", "block")
   }
@@ -492,6 +535,7 @@ function renderwriteStandardPage(list) {
     $(".moduleItem.casewriting").append(str)
     $('.moduleItem.casewriting').css("display", "block")
   }
+  empty()
 }
 function renderPushWarning() {
   return getPusgWarning().then(res => {
@@ -515,8 +559,8 @@ function renderPushWarning() {
       moreInfo()
       const hasTipsNum = $(".moduleItem.tips").length;
       if (hasTipsNum) {
-        let tipsHei = $(".tips-cont")[0].scrollHeight;
-        if (tipsHei > 81) {
+        let tipNum = $(".tips-cont .billingPushItem").length;
+        if (tipNum > 3) {
           $(".tips-cont").append(`<span class="showMoreNewPage">更多</span>`)
           tipsMsg = result
           showMoreNewPage()
@@ -528,11 +572,14 @@ function renderPushWarning() {
     }
     if (hasCompleteTnterface === allInterface) {
       $('.loading').css("display", "none")
-      if (moduleNum === 0) {//console.log(999)
-        // empty()
-      }
+      /*if (moduleNum === 0) {//console.log(999)
+         empty()
+      }*/
     }
+    empty()
 
+  }).catch(()=>{
+      $(".loading").hide()
   })
 }
 function renderBillingPush(list, name, code) {
@@ -565,14 +612,14 @@ function renderLongStr(name, longStr, location) {
 }
 
 
-function renderItemWrapper(list, showNum, type, hasInfo) {
+function renderItemWrapper(list, showNum) {
   let showNum1 = showNum || 5
   let shortStr = '', longStr = ''
   for (let i = 0; i < list.length; i++) {
     if (i <= showNum1 - 1) {
-      shortStr += renderPushItem(list[i], type)
+      shortStr += renderPushItem(list[i])
     }
-    longStr += renderPushItem(list[i], type)
+    longStr += renderPushItem(list[i])
   }
 
   if (showNum1 >= list.length) {
@@ -589,9 +636,9 @@ function renderItemWrapper(list, showNum, type, hasInfo) {
     }
   }
 }
-function renderPushItem(item, type) {
-  str = `<span class="pushItemBox" data-name="${item.name}" data-type="${type}">`
-  str += `${item.hasScale == "0" ? `<span class="pushItemName">${type == 8 ? ('【' + item.name + '】') : item.name}</span>` : item.hasScale == "1" ? `<span class="pushItemName evaluationtitle">${type == 8 ? ('【' + item.name + '】') : item.name}</span>` : `<span class="pushItemName">${type == 8 ? ('【' + item.name + '】') : item.name}</span>`}`
+function renderPushItem(item) {
+  str = `<span class="pushItemBox" data-name="${item.name}" data-type="${item.type}">`
+  str += `${item.hasScale == "0" ? `<span class="pushItemName">${item.type == 8 ? ('【' + item.name + '】') : item.name}</span>` : item.hasScale == "1" ? `<span class="pushItemName evaluationtitle">${item.type == 8 ? ('【' + item.name + '】') : item.name}</span>` : `<span class="pushItemName">${item.type == 8 ? ('【' + item.name + '】') : item.name}</span>`}`
   str += `${item.hasInfo == "1" ? `<img class="infoImg" src="${infoImg}">` : ""}`
   str += '</span >'
   return str
@@ -611,14 +658,16 @@ function titleStr(type) {
   return titleStr
 }
 function bindSlide() {
-  $(".showMore").on("click", function () {
+  $(".showMore").off("click").on("click", function () {
+    const longBox = $(this).parent().next().length?$(this).parent().next():$(this).parent().parent().next();
     $(".longStrBox").css("display", "none")
-    $(this).parents(".moduleItem ").find(".longStrBox").css("display", "block")
-    let location = $(this).parents(".moduleItem ").find(".longStrBox").attr("data-location")
+      longBox.css("display", "block")
+    let location = longBox.attr("data-location")
     let scrollTop = getLongTop(location)
-    $(this).parents(".moduleItem ").find(".longStrBox").css("top", 5 + Number(scrollTop) + "px")
+      const n = -10 + Number(scrollTop)>-1?(-10 + Number(scrollTop)):0;
+      longBox.css("top", n + "px")
   })
-  $(".showLess").on("click", function () {
+  $(".showLess").off("click").on("click", function () {
     $(this).parent().parent().css("display", "none")
   })
   addScrollEvent()
@@ -641,10 +690,10 @@ function bindGeneralSlide() {
     openNewWin(`generalTreat.html?disName=${treatDisName}&name=${treatUniqueName}`)
   })
 }
-function setWidth() {
+/*function setWidth() {
   let winWidth = $(".bodyWrap").css("width")
   $(".contentBox").css("width", winWidth)
-}
+}*/
 
 //医学知识搜索
 searchMedical()
@@ -660,15 +709,13 @@ function moreInfo() {
     openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}`)
   })
   $('.evaluationtitle').off("click").click(function () {
-    console.log(11)
     const name = $(this).parent().attr('data-name')
     const type = $(this).parent().attr('data-type')
-    console.log(name)
     openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}&page=1&gauge=gauge`)
   })
-  
+
 }
-function pushItemName(){
+function pushItemName() {
   $('.pushItemName').off("click").click(function () {
     console.log(11)
     const name = $(this).parent().attr('data-name')
@@ -703,12 +750,14 @@ function addScrollEvent() {
   $(`.leftWrapper`).off("scroll").scroll(throttle(function () {
 
     if ($(".leftWrapper .longStrBox:visible").length) {
-      $(".leftWrapper .longStrBox:visible").css("top", Number(getLongTop("left")) + 5 + "px")
+        const n = Number(getLongTop("left")) -10>-1?(Number(getLongTop("left")) -10):0;
+      $(".leftWrapper .longStrBox:visible").css("top", Number(getLongTop("left")) -10 + "px")
     }
   }, 100));
   $(`.rightWrapper`).off("scroll").scroll(throttle(function () {
     if ($(".rightWrapper .longStrBox:visible").css("display") === "block") {
-      $(".rightWrapper .longStrBox:visible").css("top", Number(getLongTop("right")) + 5 + "px")
+      const n = Number(getLongTop("right"))>-1?(Number(getLongTop("right"))):0;
+      $(".rightWrapper .longStrBox:visible").css("top", n + "px")
     }
   }, 100));
 }
@@ -717,9 +766,6 @@ $(function () {//隐藏logo
         $(".versionTop .logoTxt").hide();
     }
   getVersion()
-  $(window).on("resize", function () {
-    setWidth()
-  })
   $(".versionTop").on("click", function () {
     openNewWin("disclaimer.html")
   });

+ 13 - 21
src/js/cdssPlan.js

@@ -10,8 +10,8 @@ require('./../css/reset.css');
 require('./../css/cdssPlan.less');
 require('./../css/popup.css');
 require('./../css/followUpV.less');
-require('./../css/staticSearch.css')
-require('./../js/staticSearch.js')
+require('../css/staticSearch.less')
+require('./../js/staticSearch.js')      //静态知识搜索
 require('./../images/empty.png').replace(/^undefined/g, '')
 require('./../images/empty2.png').replace(/^undefined/g, '')
 require('./../images/empty3.png').replace(/^undefined/g, '')
@@ -40,6 +40,10 @@ if(mrId){
         msg = res.data.data ||{}
         window.msg = msg
         renderFollowUp(msg)
+        setTimeout(()=>{
+            adjustWidth();
+        },200)
+
     }
   }).catch(function (err) {
       console.log(err);
@@ -75,14 +79,11 @@ $(document).on('click',".allDis .right,.allDis .secDis",function(){
 
 
 
-function adjustHei(){
-  const iframeHei = $(".bodyWrap").height()
-  const tabHei = $(".tabList").height()
-  $(".contentWrapper").css("height",iframeHei-tabHei-20-30+3+19+'px')
+function adjustWidth(){
+  const iframeWh = $(".bodyWrap").width();console.log(11,iframeWh)
+  $(".operaNameWrap").css("width",iframeWh-168+'px')
 }
 
-
-
 $(function(){
   $.fn.extend({  
     "preventScroll":function(){  
@@ -102,17 +103,8 @@ $(function(){
             }  
         })    
     }  
-  });  
-  // $(".iframeWrap").preventScroll();  
-  $(".iframeWrap").preventScroll();  
-  $(".recommendWrap").preventScroll();  
-  $(".infoWrap").preventScroll();  
-  $(".medicalKonwledgeWrap .staticSearchB ul").preventScroll();  
-  $(window).on("resize", function(){
-    $(".iframeWrap").preventScroll();  
-    $(".recommendWrap").preventScroll();  
- 
-    $(".medicalKonwledgeWrap .staticSearchB ul").preventScroll(); 
-    adjustHei() 
-  })
+  });
+    $(window).on('resize', function(){
+        adjustWidth()
+    })
 });

+ 0 - 81
src/js/check.js

@@ -1,81 +0,0 @@
-if(!Promise){
-  var Promise = require("bluebird");
-  Promise.config({
-    longStackTraces: true,
-    warnings: true
-  })
-}
-
-const $ = require("jquery");
-const { post,config,getUrlArgObject } = require('./promise.js');
-let mrId = getUrlArgObject('mrId')
-let hospitalIdUrl = getUrlArgObject('hospitalId') || ''
-let msg;
-
-function getMRInfo() {
-   return post(config.getMr2,{mrId:mrId})
-}
-$('.empty').css("display","none")
-if(mrId){
-  getMRInfo().then(res =>{
-    if(res.data.code == '0'){
-        msg = res.data.data ||{}
-        window.msg = msg
-        renderPushData()
-    }
-  }).catch(function (err) {
-      console.log(err);
-  })
-} else{
-
-}
-
-
-
-let disName=""
-function handleShow(){
-  const newinConf = {
-    width: '600',   //窗口的文档显示区的宽度。以像素计。
-    height: '826',  //窗口文档显示区的高度。以像素计。
-    left: '0',  //窗口的 x 坐标。以像素计。
-    top: '0',    //窗口的 y 坐标。以像素计。
-    openMode: "_blank"  //每次都是新窗口打开为_blank,打开同一窗口填写任意字符串
-  }
-  const newWindowLocation = `width=${newinConf.width}, height=${newinConf.height}, left=${newinConf.left}, top=${newinConf.top} scrollbars=yes`
-  window.open('./emergency.html?disName='+disName, newinConf.openMode, newWindowLocation)
-}
-$(document).on('click',".allDis .allName",function(){
-  handleShow()
-})
-$(document).on('click',".singleDis",function(){
-  $(this).next().css("display","block")
-  $(this).css("display","none")
-})
-$(document).on('click',".allDis .right,.allDis .secDis",function(){
-  $(".allDis").css("display","none")
-  $(".singleDis").css("display","block")
-})
-
-
-function renderPushData(){
-  return getPushInfo().then(res =>{
-    if(res.data.code == "0"){
-      const result = res.data.data.debug['数据']
-      let allData = {}
-      allData.chiefLabel = result.chiefLabel //主诉
-      allData.presentLabel = result.presentLabel //现病史
-      allData.pastLabel = result.pastLabel //既往史
-      allData.personalLabel = result.personalLabel //个人史
-      allData.familyLabel = result.familyLabel //家族史
-      allData.maritalLabel = result.maritalLabel //婚育史
-      allData.menstrualLabel = result.menstrualLabel //月经史
-      allData.vitalLabel = result.vitalLabel //体格
-      console.log(allData)
-      
-    }
-  })
-}
-
-function getPushInfo() {
-  return  post(config.pushInner,Object.assign({},msg,{featureType: '1,4,5,6,7,8,9,10',hospitalId:hospitalIdUrl||msg.hospitalId,ruleType:config.ruleTypeMap['22']}))
-}

+ 1 - 1
src/js/disclaimer.js

@@ -11,7 +11,7 @@ $(function(){
           data = result[i]
         }
       }
-      $("h1").html('免责声明');
+      $("h1 span").html('免责声明');
       $(".content").html(data.description);
     })
   }

+ 115 - 98
src/js/followUp.js

@@ -1,124 +1,141 @@
 var $ = require("jquery");
 var { post,config,getUrlArgObject,openNewWin,isIe8 ,openNewWin} = require('./promise.js');
-let showImg = require('./../images/show2.png').replace(/^undefined/g, '')
-let collapseImg = require('./../images/collapse2.png').replace(/^undefined/g, '')
+let showImg = require('./../images/show.png').replace(/^undefined/g, '')
+let collapseImg = require('./../images/collapse.png').replace(/^undefined/g, '')
 let emptyImg = require('./../images/empty3.png').replace(/^undefined/g, '')
-function getFollowUp(msg){
+let lisStrFrontIcon = require('./../images/lisStrFront-icon.png').replace(/^undefined/g, '')
+let pacsStrFrontIcon = require('./../images/pacsStrFront-icon.png').replace(/^undefined/g, '')
+let rightIcon = require('./../images/right-icon.png').replace(/^undefined/g, '')
+function getFollowUp(msg) {
     return post(config.followUp, msg)
 }
 let hospitalId = getUrlArgObject('hospitalId') || ''
-let mrId = getUrlArgObject('mrId') 
-function renderFollowUp(msg,type){
-    getFollowUp(msg).then(res =>{
-        if(res.data.code === "0"){
-            const result = res.data.data&&res.data.data.pushPlans || []
-            if(result.length === 0||(result[0]&&result[0].item&&JSON.stringify(result[0].item)==="{}")){
+let mrId = getUrlArgObject('mrId')
+function renderFollowUp(msg, type) {
+    getFollowUp(msg).then(res => {
+        if (res.data.code === "0") {
+            const result = res.data.data && res.data.data.pushPlans || []
+            if (result.length === 0 || (result[0] && result[0].item && JSON.stringify(result[0].item) === "{}")) {
                 followEmpty()
                 return
             }
-            renderPage(result,type)
-        }else{
+            renderPage(result, type)
+        } else {
             followEmpty()
         }
     })
 }
-function renderPage(data,type){
+function renderPage(data, type) {
     const operaItem = data[0] || {}
     const operaItemName = operaItem.item || {}
     let operaItemDetail = operaItem.pushPlanDetails || []
-    renderName(operaItemName) 
-    if(type){
-        operaItemDetail=operaItemDetail.splice(0,1)
+    renderName(operaItemName)
+    if (type) {
+        operaItemDetail = operaItemDetail.filter((it)=>it.history===0)||[];
+        operaItemDetail.length=operaItemDetail.length>0?1:0;
         renderDetailHorizontal(operaItemDetail)
-    }else{
+    } else {
         renderBtn(operaItemDetail)
         renderDetail(operaItemDetail)
-        checkDom()
-    }   
+        //checkDom()
+    }
 }
-function renderName(data){
-      const operationTime = data.dateValue&&getTime(data.dateValue)
-      const  operationName = data.name || ""
-      const str = `<div class="operaNameWrap" id="operaNameWrap"><div class="operaNameBox">患者于<span class="operaNameBold">${operationTime}</span>进行<span class="operaNameBold">${operationName}</span>。根据临床路径要求,特制订检验检查计划如下。</div></div>`
-      $(".followUpWrap").append(str)
+function renderName(data) {
+    const operationTime = data.dateValue && getTime(data.dateValue)
+    const operationName = data.name || ""
+    const str = `<div class="operaNameWrap" id="operaNameWrap"><div class="operaNameBox">患者于<span class="operaNameBold">${operationTime}</span>进行<span class="operaNameBold">${operationName}</span>。根据临床路径要求,特制订检验检查计划如下。</div></div>`
+    $(".followUpWrap").append(str)
 }
-function renderDetailHorizontal(data){
-   let str = ``
-   for(let i = 0; i < data.length; i++){
-       const item = data[i]
-       const lisArr = item.lis || []
-       const pacsArr = item.pacs || []
-       let lisStr=``
-       let pacsStr=``
-       let title = `<p>${getTime(item.examineDate)}(${item.description&&(item.description)})</p>`
-       for(let i = 0; i < lisArr.length; i++){
-        lisStr += `<div style="position:relative"><span class="circle"></span>${lisArr[i]}</div>`
-       }
-       for(let i = 0; i < pacsArr.length; i++){
-        pacsStr += `<div style="position:relative"><span class="circle"></span>${pacsArr[i]}</div>`
-       }
-       str += `<div class="infoBox">
+function renderDetailHorizontal(data) {
+    let str = ``
+    for (let i = 0; i < data.length; i++) {
+        const item = data[i]
+        const lisArr = item.lis || []
+        const pacsArr = item.pacs || []
+        let lisStr = ``
+        let pacsStr = ``
+        let title = `<p>${getTime(item.examineDate)}(${item.description && (item.description)})</p>`
+        for (let i = 0; i < lisArr.length; i++) {
+            lisStr += `<div style="position:relative"><span class="circle"></span>${lisArr[i]}</div>`
+        }
+        for (let i = 0; i < pacsArr.length; i++) {
+            pacsStr += `<div style="position:relative"><span class="circle"></span>${pacsArr[i]}</div>`
+        }
+        str += `<div class="infoBox">
             ${title}
             <div class="checkFront lisBox">
-            <span class="lisStrFront">检验</span>
+            <div class="lisStrFront">
+                <img src="${lisStrFrontIcon}" alt="" />
+                <span>检验</span>
+            </div>
+            
             <div>${lisStr}</div>
            </div>
            <div class="checkFront pacsBox">
-            <span class="pacsStrFront">检查</span>
+           <div class="pacsStrFront">
+           <img src="${pacsStrFrontIcon}" alt="" />
+            <span>检查</span>
+           </div>
+            
             <div>${pacsStr}</div>
            </div>
        </div>`
-   }
-   $(".followUpWrap").append(`<div class="infoWrap">${str}<div class="readMorePlan"><a>查看更多计划</a></div></div>`)
+    }
+    $(".followUpWrap").append(`<div class="infoWrap">${str}<div class="readMorePlan"><a>查看更多计划</a>
+        <img src="${rightIcon}" alt="" />
+    </div></div>`)
     showMoreCheck()
 }
-function showMoreCheck(){
-  $(".readMorePlan a").on("click", function(){
-    openNewWin(`cdssPlan.html?mrId=${mrId}&hospitalId=${hospitalId}`)
-  })
+function showMoreCheck() {
+    $(".readMorePlan").on("click", function () {
+        openNewWin(`cdssPlan.html?mrId=${mrId}&hospitalId=${hospitalId}`)
+    })
 }
-function renderDetail(data){
-   let historyStr = ``
-   let laterStr = ``
-   for(let i = 0; i < data.length; i++){
-       const item = data[i]
-       const lisArr = item.lis || []
-       const pacsArr = item.pacs || []
-       let lisStr=``
-       let pacsStr=``
-       let title = `<p class="infoBoxTitle">${getTime(item.examineDate)}${item.description?'('+item.description+')':''} <img class="toggleInfo" src="${showImg}"/></p>`
-       for(let i = 0; i < lisArr.length; i++){
-        lisStr += `<div class="lisItem"><span class="circle"></span>${lisArr[i]}</div>`
-       }
-       for(let i = 0; i < pacsArr.length; i++){
-        pacsStr += `<div  class="lisItem"><span class="circle"></span>${pacsArr[i]}</div>`
-       }
-       if(item.history === 1){
-        historyStr+=`<div class="infoBox historyBox" >
+function renderDetail(data) {
+    let historyStr = ``
+    let laterStr = ``
+    for (let i = 0; i < data.length; i++) {
+        const item = data[i]
+        const lisArr = item.lis || []
+        const pacsArr = item.pacs || []
+        let lisStr = ``
+        let pacsStr = ``
+        let title = `<p class="infoBoxTitle">${getTime(item.examineDate)}${item.description ? '(' + item.description + ')' : ''} <img class="toggleInfo" src="${showImg}"/></p>`
+        for (let i = 0; i < lisArr.length; i++) {
+            lisStr += `<div class="lisItem"><span class="circle"></span>${lisArr[i]}</div>`
+        }
+        for (let i = 0; i < pacsArr.length; i++) {
+            pacsStr += `<div  class="lisItem"><span class="circle"></span>${pacsArr[i]}</div>`
+        }
+        if (item.history === 1) {
+            historyStr += `<div class="infoBox historyBox" >
             ${title}
             <div class="childrenBox">
-                ${lisArr.length>0?`<div class="lisBox"><span class="itemBoxTitle">检验</span>${lisStr}</div>`:""}
-                ${pacsArr.length>0?`<div class="pacsBox"><span class="itemBoxTitle">检查</span>${pacsStr}</div>`:""}
+                ${lisArr.length > 0 ? `<div class="lisBox"><span class="itemBoxTitle">检验</span>${lisStr}</div>` : ""}
+                ${pacsArr.length > 0 ? `<div class="pacsBox"><span class="itemBoxTitle">检查</span>${pacsStr}</div>` : ""}
             </div>
         </div>`
-       }else{
-        laterStr += `<div class="infoBox">
+        } else {
+            laterStr += `<div class="infoBox">
             ${title}
             <div class="childrenBox">
-                ${lisArr.length>0?`<div class="lisBox"><span class="itemBoxTitle">检验</span>${lisStr}</div>`:""}
-                ${pacsArr.length>0?`<div class="pacsBox"><span class="itemBoxTitle">检查</span>${pacsStr}</div>`:""}
+                ${lisArr.length > 0 ? `<div class="lisBox"><span class="itemBoxTitle">检验</span>${lisStr}</div>` : ""}
+                ${pacsArr.length > 0 ? `<div class="pacsBox"><span class="itemBoxTitle">检查</span>${pacsStr}</div>` : ""}
             </div>
         </div>`
-       }
-      
-   }
-   $(".followUpWrap").append(`<div class="infoWrap" id="infoWrap">
+        }
+
+    }
+    $(".followUpWrap").append(`<div class="infoWrap" id="infoWrap">
         <div class="historyWrap">${historyStr}</div>
         <div class="laterWrap">${laterStr}</div>
     </div>`)
+    //最近一次计划默认展开
+    $(".laterWrap .infoBox:first-child .childrenBox").show();
+    $(".laterWrap .infoBox:first-child .toggleInfo").attr("src",collapseImg)
     // adjustHeight()
     bindToggleInfo()
-  
+
 }
 function renderBtn(data){
     const hasBtn = data[0]&&data[0].history&&data[0].history === 1
@@ -126,24 +143,24 @@ function renderBtn(data){
         return
     }
     const str = `<div class="btnBox" id="btnBox"><span class="btnName">显示历史计划</span></div>`
-    $(".followUpWrap").append(str)
+    $(".operaNameWrap").append(str)
     bindToggleHistory()
-  
+
 }
 function adjustHeight() {
     var containerHt = $(".contentWrapper").height()
     var ht1 = $(".operaNameWrap").height()
     var ht2 = $(".btnBox").height()
-    $(".followUpWrap  .infoWrap").height(containerHt -ht1- ht2-30 + "px");
+    $(".followUpWrap  .infoWrap").height(containerHt -ht1- ht2 + "px");
     $(".infoWrap").preventScroll();  
 }
-function getTime(time){
-    if(!time){
+function getTime(time) {
+    if (!time) {
         return ``
     }
-    date = time.replace('-','/')
+    date = time.replace('-', '/')
     const year = new Date(date).getFullYear()
-    const month = new Date(date).getMonth()+1
+    const month = new Date(date).getMonth() + 1
     const day = new Date(date).getDate()
     return `${year}年${month}月${day}日`
 }
@@ -156,12 +173,12 @@ function checkDom() {
     let dom2 = document.getElementById('btnBox')
     let dom3 = document.getElementById('infoWrap')
     let dom2Hei = $("#btnBox").height()
-    if(dom1Hei!==0&&(dom2&&dom2Hei!=0 || !dom2)&&dom3) {
-         //  执行dom加载完成后的操作
-    
-         adjustHeight()
+    if (dom1Hei !== 0 && (dom2 && dom2Hei != 0 || !dom2) && dom3) {
+        //  执行dom加载完成后的操作
+
+        adjustHeight()
         //  清除定时器
-        if(!cheakDomTimer) {
+        if (!cheakDomTimer) {
             clearTimeout(cheakDomTimer)
         }
     } else {
@@ -169,19 +186,19 @@ function checkDom() {
         cheakDomTimer = setTimeout(checkDom, 200)
     }
 }
-function bindToggleHistory(){
-    $(document).on("click",".btnName",function(){
+function bindToggleHistory() {
+    $(".followUpWrap .btnName").off("click").on("click",function () {
         const btnText = $(".btnName").text()
-        if(btnText==="显示历史计划"){
+        if (btnText === "显示历史计划") {
             $(".btnName").text("隐藏历史计划")
-        }else{
+        } else {
             $(".btnName").text("显示历史计划")
         }
         $(".historyWrap").slideToggle()
     })
 }
 function bindToggleInfo(){
-    $(document).on("click",".infoBoxTitle",function(){
+    $(document).off("click").on("click",".infoBoxTitle",function(){
         const img =  $(this).parents(".infoBox").find(".toggleInfo").attr("src")
         if(img === showImg){
             $(this).parents(".infoBox").find(".toggleInfo").attr("src",collapseImg)
@@ -191,7 +208,7 @@ function bindToggleInfo(){
         $(this).parents(".infoBox").find(".childrenBox").slideToggle()
     })
 }
-function followEmpty(){
+function followEmpty() {
     let str = `<div class="emptyBox">
         <img class="emptyImg" src=${emptyImg}>
         <p class="emptyTxt">暂无随访计划</p>
@@ -199,14 +216,14 @@ function followEmpty(){
     $(".followUpWrap").append(str)
 }
 
-$(window).on('resize', function(){
-    if(window.location.href.indexOf('cdssHorizontal')>-1){
+/*$(window).on('resize', function () {
+    if (window.location.href.indexOf('cdssHorizontal') > -1) {
         return
     }
     adjustHeight()
-})
+})*/
 
-module.exports ={
+module.exports = {
     renderFollowUp,
     followEmpty
 }

+ 4 - 4
src/js/homeStatic.js

@@ -29,7 +29,7 @@ function renderTab(data){
 //搜索跳转
 function goSearchList(){
   $(".searchBtn").click(function(){
-    let vals = $('.searchStr').val()
+    let vals = $('.searchStr').val().replace(/(^\s*)|(\s*$)/g, "")
       if (!vals) {
           $(".staticResult .loading").hide();
           toggleWarnBox('检索词不能为空!');
@@ -40,16 +40,16 @@ function goSearchList(){
 }
 //获取字典信息
 function getAllTypes(){
-  const allTypes = localStorage.getItem('allTypes')&&JSON.parse(localStorage.getItem('allTypes'))||[];
+  /*const allTypes = localStorage.getItem('allTypes')&&JSON.parse(localStorage.getItem('allTypes'))||[];
   if(allTypes.length>0){
     renderTab(allTypes)
     return
-  }
+  }*/
   post(config.dictionaryInfo, {}).then((res) => {
     const result = res.data
     if(result.code==='0'){
       const data = result.data[7]||[];
-      localStorage.setItem('allTypes',JSON.stringify(data))
+      //localStorage.setItem('allTypes',JSON.stringify(data))
       renderTab(data)
     }
   })

文件差异内容过多而无法显示
+ 0 - 528
src/js/icssIndex.js


+ 0 - 362
src/js/icssIndexDom.js

@@ -1,362 +0,0 @@
-const $ = require("jquery");
-const { openNewWin,imageUrlPrefix } = require('./promise.js');
-const { bindTipsEvent } = require('./popupEdit.js');
-
-function renderRecommendInfo(showNum,className,title,data, hasInfo, type, position) {
-    let showNumCopy = showNum || 5
-    const dataLen = data.length
-    const str = `<div class="recommendInfoWrapper ${className}">
-                    <h4><img class="titleIcon" src="./images/knzd.png" alt="icon" />${title}</h4>
-                    <div class="recommendInfoBox">
-                        <div class="clearfix recommendInfoItemBox ${className + 'box'}">
-                        </div>
-                    </div>
-                </div>`
-    $('.recommendWrap').append(str)
-    let dataShort
-    if(showNumCopy&& dataLen > showNumCopy) {
-        dataShort = data.slice(0, showNumCopy)
-    } else {
-        dataShort = data
-    }
-    let childrenNodeStrShort = ''
-    let childrenNodeStrLong = ''
-    if(hasInfo) {
-        for (let i = 0; i < dataShort.length; i++) {
-            childrenNodeStrShort += `<span class="recommendInfoItem recommendInfoItemHasInfo">
-                                    ${dataShort[i].name}
-                                    <span  title="点击i图标可查看详细说明" class="infoMsg" data-name=${dataShort[i].name}></span>
-                                </span>`
-        }
-        for (let i = 0; i < data.length; i++) {
-            childrenNodeStrLong += `<span class="recommendInfoItem recommendInfoItemHasInfo">
-                                    ${data[i].name}
-                                    <span  title="点击i图标可查看详细说明" class="infoMsg" data-name=${data[i].name}></span>
-                                </span>`
-        }
-    } else {
-        for (let i = 0; i < dataShort.length; i++) {
-            childrenNodeStrShort += `<span class="recommendInfoItem" data-name="${dataShort[i].name}">
-                                    ${dataShort[i].name}
-                                </span>`
-        }
-        for (let i = 0; i < data.length; i++) {
-            childrenNodeStrLong += `<span class="recommendInfoItem" data-name="${data[i].name}">
-                                    ${data[i].name}
-                                </span>`
-        }
-    }
-    if(!childrenNodeStrShort) {
-        childrenNodeStrShort='<span class="recommendNull">暂无推荐</span>'
-    }
-    
-    $('.'+className + 'box').append(childrenNodeStrShort)
-    $('.'+className + 'box' +' .infoMsg').on('click', function(){
-        const infoMsgName = $(this).attr('data-name')
-        openNewWin(`information.html?type=${encodeURIComponent(type)}&position=${encodeURIComponent(position)}&name=${encodeURIComponent(infoMsgName)}`)
-    })
-    if(dataLen > showNumCopy) {
-        slideToggle($("."+className+"box"), childrenNodeStrShort,childrenNodeStrLong)
-    }
-}
-
-function renderMultRecommendInfo(className,title,data, hasInfo, type, position) {
-    const str = `<div class="recommendInfoWrapper ${className}">
-                    <h4><img class="titleIcon" src="./images/inspect.png" alt="icon" />${title}</h4>
-                    <div class="recommendInfoBox ${className + 'box'}"></div>
-                </div>`
-    $('.recommendWrap').append(str)
-    let hasDataNum = 0
-    for(let i = 0; i < data.length; i++) {
-        const showNum = data[i].showNum || 5
-        const dataLen = data[i].data.length
-        if(dataLen === 0) {
-            continue
-        }
-        hasDataNum++
-        if(hasDataNum > 1) {
-            $('.'+className + 'box').append('<div class="line"></div>')
-        }
-        let childrenNodeBoxStr  = `<div class="labAndPacsBox ${data[i].className} clearfix"> </div>`
-        let childrenNodeStrShort =  `<span class="labAndPacsTitle">${data[i].title}<i></i></span>`
-        let childrenNodeStrLong =  `<span class="labAndPacsTitle">${data[i].title}<i></i></span>`
-        let dataShort
-        if(showNum&& dataLen > showNum) {
-            dataShort = data[i].data.slice(0, showNum)
-        } else {
-            dataShort = data[i].data
-        }
-        for(let j = 0; j < dataShort.length; j++) {
-            childrenNodeStrShort += `<span class="labAndPacsItem">${dataShort[j].name}</span>`
-        }
-        for(let j = 0; j < data[i].data.length; j++) {
-            childrenNodeStrLong += `<span class="labAndPacsItem">${data[i].data[j].name}</span>`
-        }
-        if(data[i].data.length == 0) {
-            childrenNodeStrShort +='<span class="recommendNull">暂无推荐</span>'
-        }
-        $('.'+className + 'box').append(childrenNodeBoxStr)
-        $('.'+data[i].className).append(childrenNodeStrShort)
-        if(dataLen > showNum) {
-            slideToggle($("."+data[i].className), childrenNodeStrShort,childrenNodeStrLong)
-        }
-    }
-
-}
-
-function renderRecommendConditTips(className,title,data) {
-    const str = `<div class="recommendInfoWrapper ${className}">
-                    <h4><img class="titleIcon" src="./images/tips.png" alt="icon" />${title}</h4>
-                    <div class="recommendInfoBox  ${className + 'box'}"></div>
-                </div>`
-    $('.recommendWrap').append(str)
-    if(data.length == 0) {
-        $("."+className+"box").append('<span class="recommendNull">暂无推荐</span>')
-    };
-    //let names = [];
-    for(var k = 0;k < data.length;k++){
-        let tmpBq = data[k];
-        let hasSritical = false
-        let tmpBqStr;
-        if(tmpBq.details) {
-            for(let i = 0; i < tmpBq.details.length; i++) {
-                if(tmpBq.details[i].type == 4) {
-                    hasSritical= true
-                }
-            }
-        }
-        if(hasSritical) {
-            /*if(names.includes(tmpBq.name)){    //name相同去重
-              tmpBqStr='';
-            }else{
-              names.push(tmpBq.name);*/
-              tmpBqStr = `<p class="mayIllness">
-              <span class="sriticalNameBox"><span class="sriticalName">${tmpBq.name}</span>
-                </span>
-            </span></p>`
-            //}
-        } else {
-            tmpBqStr = `<p class="mayIllness">
-                            患者可能有 <span class="diagNameBox"><span class="diagName">${tmpBq.name}:</span>
-                                <span title="点击该名称可看详细说明" class="infoMsg" data-name=${tmpBq.name}></span>
-                            </span>
-                        </span></p>`
-        }
-         
-        var tmpBqDetailStr = ''
-        for(var m = 0;m < tmpBq.details.length;m++){
-          var tmpBqDetail = tmpBq.details[m]
-          if(tmpBqDetail.type == 1){
-            tmpBqDetailStr+=`<span data-scaleName=${tmpBqDetail.content.name} class="illnessTable">【${tmpBqDetail.content.name}】</span>`
-          }
-          if(tmpBqDetail.type == 2){
-            var deepDetailName = `<div class="modalTitle">${tmpBqDetail.content.name}<i class="closeModal"></i></div>`
-            var deepDetailStr = ''
-            var deepDetailResultStr = ''
-            for(var n = 0;n < tmpBqDetail.content.details.length;n++){
-              var deepDetail = tmpBqDetail.content.details[n]
-              if(deepDetail.controlType == 2){//0-radio,1-checkbox,2-text,3-dropdownlist
-                if(deepDetail.isShow == 0) {
-                    deepDetailStr+=`<li class="radioCheck"><span class="modalMaintltle">${deepDetail.name}: </span>${deepDetail.value} ${deepDetail.uint}</li>`
-                } else {
-                    deepDetailStr+=`<li class="radioCheck"><span class="modalMaintltle">请输入${deepDetail.name}: </span><input type="text" class="${tmpBqDetail.content.name+deepDetail.name}" ${deepDetail.isShow=='0' ? 'readonly':''} placeholder="请输入" value=${deepDetail.value}><i class="uint">${deepDetail.uint}</i></li>`
-                }
-              }
-              if(deepDetail.controlType == 0){
-                let tooDeepDetailStr = ''
-                for(var f = 0;f<deepDetail.details.length;f++){
-                  var tooDeepDetail = deepDetail.details[f]
-                  if(deepDetail.isShow == '0'){
-                    if(tooDeepDetail.state == 1) {
-                      tooDeepDetailStr+='<li class="radioChecks" data-select="'+(tooDeepDetail.state == 1?"select":"")+'"><span>'+tooDeepDetail.detailName+'</span></li>'
-                    }
-                  }else{
-                    tooDeepDetailStr+='<li class="radioChecks"><i></i><span>'+tooDeepDetail.detailName+'</span>'+(tooDeepDetail.state == 1?"<a>(智能推荐)</a>":"")+'</li>'
-                  }
-                }
-                
-                
-                deepDetailStr+=`<li class="radioCheck"><span class="modalMaintltle">${deepDetail.name}: </span>
-                                <ul class="clearfix caculateLis" data-isShow = ${deepDetail.isShow}>
-                                    ${tooDeepDetailStr}
-                                </ul>
-                            </li>`
-                  
-              }
-            }
-            for(var v = 0;v < tmpBqDetail.content.result.length;v++){
-              deepDetailResultStr+='<p class="result"><span class="calculateName">'+tmpBqDetail.content.result[v].name+':</span><span class="calculateResult"></span></p>'
-            }
-            tmpBqDetailStr+=`<div class="mayResult">
-                计算公式结果:
-                <span class="mayResultSelect" data-num="${k}">
-                    <span class="makesureResult">请选择</span>
-                    <span class="sanjiao"></span>
-                    <div class="popupModal">
-                        ${deepDetailName}
-                        <div class="modalMainTwo">
-                            <ul class="clearfix">
-                                ${deepDetailStr}
-                            </ul>
-                            <div class="calculate" data-num="${k}">计算</div>
-                            <p class="calculateError">请填写计算公式内容</p>
-                            <div class="resultLis">
-                                ${deepDetailResultStr}
-                            </div>
-                        </div>
-                        <div class="btnWrap clearfix">
-                            <div class="sureScore" data-type="2">关闭</div>
-                        </div>
-                    </div>
-                </span>
-            </div>`
-            
-          }
-          if(tmpBqDetail.type == 3){
-            var deepDetailName = '<span class="modalMaintltle">'+tmpBqDetail.content.name+': </span>'
-            var deepDetailStr = ''
-            for(var n = 0;n < tmpBqDetail.content.details.length;n++){
-              var deepDetail = tmpBqDetail.content.details[n]
-              deepDetailStr+='<li class="radioChecks"><i></i><span>'+deepDetail.detailName+'</span>'+(deepDetail.state == 1?"<a>(智能推荐)</a>":"")+'</li>'
-            }
-
-              tmpBqDetailStr+=`<div class="mayResult">
-                可能结果:
-                <span class="mayResultSelect" data-num="${k}"><span class="makesureResult">请选择</span><i class="sanjiao"></i>
-                    <div class="popupModal">
-                    <div class="modalTitle">
-                        结果选择<i class="closeModal"></i>
-                    </div>
-                    <div class="modalMainOne">
-                        ${deepDetailName}
-                        <ul class="clearfix">
-                            ${deepDetailStr}
-                        </ul>
-                    </div>
-                    <div class="btnWrap clearfix">
-                        <div class="sureScore" data-type="3" data-num="${k}">确定</div>
-                    </div>
-                </div>
-                </span>
-            </div>`
-          }
-          if(tmpBqDetail.type == 4){
-            // tmpBqDetailStr+=`<div class="sriticalinfo">诊断要点:${tmpBqDetail.content.name}</div>`
-          }
-        }
-        if(tmpBqStr != '' || tmpBqDetailStr != ''){
-          $(".conditionHintTipsNull").css("display","none")
-        }
-        // $(".conditionHintTips").append('<div class="conditionMain clearfix">'+tmpBqStr+'<div class="alertModal">'+tmpBqDetailStr+'</div></div>')
-        $("."+className+"box").append('<div class="conditionMain clearfix">'+tmpBqStr+'<div class="alertModal">'+tmpBqDetailStr+'</div></div>')
-      }
-      $('.mayIllness .infoMsg').on('click', function(){
-        const infoMsgName = $(this).attr('data-name')
-        openNewWin(`information.html?type=22&position=2&name=${encodeURIComponent(infoMsgName)}`)
-      })
-      $('.alertModal .illnessTable').on('click', function(){
-        const msg1 = JSON.parse(JSON.stringify(msg))
-        msg1.scaleName = $(this).attr('data-scaleName')
-        msg1.featureType = 21
-        openNewWin(`scale.html?msg=${encodeURIComponent(JSON.stringify(msg1))}`)
-      })
-      bindTipsEvent()
-}
-
-
-
-function renderCaseStandard(className,title,data){
-    const str = `<div class="recommendInfoWrapper ${className}">
-        <h4><img class="titleIcon" src="./images/knzd.png" alt="icon" />${title}</h4>
-        <div class="recommendInfoBox">
-            <div class="clearfix recommendInfoItemBox ${className + 'box'}">
-            </div>
-        </div>
-    </div>`
-    let childStr = ""
-    for(let i = 0; i < data.length; i++){
-        childStr += `<p>${data[i]}</p>`
-    }
-    $('.recommendWrap').append(str)
-    $(`.${className}box`).html(childStr)
-}
-function renderWarning(showNum,className,title,data, hasInfo, type, position){
-    let showNumCopy = showNum || 5
-    const dataLen = data.length
-    const str = `<div class="recommendInfoWrapper ${className}">
-                    
-                    <div class="recommendInfoBox">
-                       
-                        <div class="clearfix recommendInfoItemBox ${className + 'box'}">
-                        <h4><img class="titleIcon" src="./images/warings.png" alt="icon" />${title}</h4>
-                        </div>
-                    </div>
-                </div>`
-    $('.recommendWrap').append(str)
-    let dataShort
-    if(showNumCopy&& dataLen > showNumCopy) {
-        dataShort = data.slice(0, showNumCopy)
-    } else {
-        dataShort = data
-    }
-    let childrenNodeStrShort = ''
-    let childrenNodeStrLong = ''
-    if(hasInfo) {
-        for (let i = 0; i < dataShort.length; i++) {
-            childrenNodeStrShort += `<span class="recommendInfoItem recommendInfoItemHasInfo">
-                                    ${dataShort[i].name}
-                                    <span  title="点击i图标可查看详细说明" class="infoMsg" data-name=${dataShort[i].name}></span>
-                                </span>`
-        }
-        for (let i = 0; i < data.length; i++) {
-            childrenNodeStrLong += `<span class="recommendInfoItem recommendInfoItemHasInfo">
-                                    ${data[i].name}
-                                    <span  title="点击i图标可查看详细说明" class="infoMsg" data-name=${data[i].name}></span>
-                                </span>`
-        }
-    } else {
-        for (let i = 0; i < dataShort.length; i++) {
-            childrenNodeStrShort += `<span class="recommendInfoItem" data-name="${dataShort[i].name}">
-                                    ${dataShort[i].name}
-                                </span>`
-        }
-        for (let i = 0; i < data.length; i++) {
-            childrenNodeStrLong += `<span class="recommendInfoItem" data-name="${data[i].name}">
-                                    ${data[i].name}
-                                </span>`
-        }
-    }
-    if(!childrenNodeStrShort) {
-        childrenNodeStrShort='<span class="recommendNull">暂无推荐</span>'
-    }
-    
-    $('.'+className + 'box').append(childrenNodeStrShort)
-    $('.'+className + 'box' +' .infoMsg').on('click', function(){
-        const infoMsgName = $(this).attr('data-name')
-        openNewWin(`information.html?type=${encodeURIComponent(type)}&position=${encodeURIComponent(position)}&name=${encodeURIComponent(infoMsgName)}`)
-    })
-    if(dataLen > showNumCopy) {
-        slideToggle($("."+className+"box"), childrenNodeStrShort,childrenNodeStrLong)
-    }
-}
-
-function slideToggle(domName,childrenNodeStrShort,childrenNodeStrLong){//展开收起
-    domName.append('<span class="slideDown">更多 <i></i></span>')
-    domName.on('click',".slideDown",function(){
-        domName.html(childrenNodeStrLong)
-        domName.append('<span class="slideup">收起 <i></i></span>')
-        $(this).remove()
-    })
-    domName.on('click',".slideup",function(){
-        domName.html(childrenNodeStrShort)
-        domName.append('<span class="slideDown">更多 <i></i></span>')
-        $(this).remove()
-    })
-}
-module.exports ={
-    renderCaseStandard,
-    renderWarning,
-    renderRecommendInfo,
-    renderMultRecommendInfo,
-    renderRecommendConditTips,
-}

+ 0 - 173
src/js/illness.js

@@ -1,173 +0,0 @@
-require('../css/index.less');
-require('../css/reset.css');
-require('../css/popup.css');
-require('./popup');
-const $ = require("jquery");
-const { post,config,getUrlArgObject,openNewWin } = require('./promise.js');
-
-// var msg = {
-//   age: getUrlArgObject('age'),
-//   sex: getUrlArgObject('sex') == '男'?1:(getUrlArgObject('sex') == '女'?2:(getUrlArgObject('sex') == '通用'?3:getUrlArgObject('sex'))),
-//   symptom: getUrlArgObject('symptomJson'),
-//   vital: getUrlArgObject('vitalJson'),
-//   lis: getUrlArgObject('lisJson')? JSON.parse(getUrlArgObject('lisJson')) : [],
-//   pacs: getUrlArgObject('pacsJson'),
-//   diag: getUrlArgObject('diagJson'),
-//   diseaseName: getUrlArgObject('diagJson'),
-//   other: getUrlArgObject('otherJson') + getUrlArgObject('pastJson'),
-//   hosCode:getUrlArgObject('hospitalCode') || ''
-// }//推送相关信息
-
-var msg = JSON.parse(getUrlArgObject('msg'))
-window.msg = msg
-window.pushMessage = {}
-
-post(config.pushInner,Object.assign(msg,{featureType: '22',ruleType:config.ruleTypeMap['22']})).then((res)=>{
-  var data = res.data
-  if(data.code == 0) {
-    var result = data.data;
-    if (result.medicalIndications && result.medicalIndications.length > 0) {//病情提示
-      window.pushMessage = result.medicalIndications;//计算的需要的相关数据
-      bqtsFun(result.medicalIndications)
-    }
-  }
-});
-
-function bqtsFun(data){//病情提示
-  let tmpBqDetailAllStr = '';
-  //let names = [];
-  for(var k = 0;k < data.length;k++){
-    var tmpBq = data[k]
-    let hasSritical = false
-        let tmpBqStr;
-        if(tmpBq.details) {
-            for(let i = 0; i < tmpBq.details.length; i++) {
-                if(tmpBq.details[i].type == 4) {
-                    hasSritical= true
-                }
-            }
-        }
-        if(hasSritical) {
-          /*if(names.includes(tmpBq.name)){    //name相同去重
-            tmpBqStr='';
-          }else{
-            names.push(tmpBq.name);*/
-            tmpBqStr = `<p class="mayIllness">
-            <span class="sriticalNameBox"><span class="sriticalName">${tmpBq.name}</span>
-            </span>
-        </span></p>`
-          //}
-
-        } else {
-            tmpBqStr =  '<div class="mayIllness">患者可能有 <span class="diagName" data-name='+tmpBq.name+'>'+tmpBq.name+'<span target="_blank" title="点击该名称可看详细说明" class="infoMsg" href="information.html?type=22&position=2&name='+tmpBq.name+'"></span></span> :';
-        }
-
-    var tmpBqDetailStr = ''
-    for(var m = 0;m < tmpBq.details.length;m++){
-      var tmpBqDetail = tmpBq.details[m]
-      if(tmpBqDetail.type == 1){
-       
-        tmpBqDetailStr+=tmpBqStr+ "<div target='_blank' data-scaleName="+tmpBqDetail.content.name+"  class='illnessTable'>【"+tmpBqDetail.content.name+"】</div>"+
-          '</div>';
-      }
-      if(tmpBqDetail.type == 2){
-        var deepDetailName = '<div class="modalTitle">'+tmpBqDetail.content.name+'<i class="closeModal"></i></div>'
-        var deepDetailStr = ''
-        var deepDetailResultStr = ''
-        for(var n = 0;n < tmpBqDetail.content.details.length;n++){
-          var deepDetail = tmpBqDetail.content.details[n]
-          if(deepDetail.controlType == 2){//0-radio,1-checkbox,2-text,3-dropdownlist
-            if(deepDetail.isShow == 0) {
-              deepDetailStr+='<li class="radioCheck"><span class="modalMaintltle">'+deepDetail.name+': </span>' + deepDetail.value +' '+ deepDetail.uint+'</li>'
-            } else {
-              deepDetailStr+='<li class="radioCheck"><span class="modalMaintltle">请输入'+deepDetail.name+': </span><input class="'+ tmpBqDetail.content.name+deepDetail.name+'" type="text" placeholder="请输入"' +(deepDetail.isShow == 0 ? 'readonly':'') + ' value="'+deepDetail.value+'"><i class="uint">'+deepDetail.uint+'</i></li>'
-            }
-          }
-          if(deepDetail.controlType == 0){
-            let tooDeepDetailStr = ''
-            for(var f = 0;f<deepDetail.details.length;f++){
-              var tooDeepDetail = deepDetail.details[f]
-              if(deepDetail.isShow == '0'){
-                if(tooDeepDetail.state == 1) {
-                  // tooDeepDetailStr+='<li><span>'+tooDeepDetail.detailName+'</span></li>'
-                  tooDeepDetailStr+='<li class="radioChecks" data-select="'+(tooDeepDetail.state == 1?"select":"")+'"><span>'+tooDeepDetail.detailName+'</span></li>'
-                }
-              }else{
-                tooDeepDetailStr+='<li class="radioChecks"><i></i><span>'+tooDeepDetail.detailName+'</span>'+(tooDeepDetail.state == 1?"<a>(智能推荐)</a>":"")+'</li>'
-              }
-            }
-            deepDetailStr+='<li class="radioCheck"><span class="modalMaintltle">'+deepDetail.name+': </span>'+
-              '<ul class="clearfix caculateLis" data-isShow="'+deepDetail.isShow+'">'+
-              tooDeepDetailStr+
-              '</ul>'+
-              '</li>'
-          }
-        }
-        for(var v = 0;v < tmpBqDetail.content.result.length;v++){
-          deepDetailResultStr+='<p class="result"><span class="calculateName">'+tmpBqDetail.content.result[v].name+':</span><span class="calculateResult"></span></p>'
-        }
-        tmpBqDetailStr+='<div class="mayResult">计算公式结果:<span class="mayResultSelect" data-num="'+k+'">'+
-          '<span class="makesureResult">请选择</span>'+
-          '<span class="sanjiao"></span>'+
-          '<div class="popupModal">'+
-          deepDetailName+
-          '<div class="modalMainTwo">'+
-          '<ul class="clearfix">'+
-          deepDetailStr+
-          '</ul>'+
-          '<div class="calculate" data-num="'+k+'">计算</div>'+
-          '<p class="calculateError">请填写计算公式内容</p><div class="resultLis">'+
-          deepDetailResultStr+
-          '</div></div>'+
-          '<div class="btnWrap clearfix">'+
-          '<div class="sureScore" data-type="2">关闭</div>'+
-          '</div>'+
-          '</div>'+
-          '</span></div></div>'
-      }
-      if(tmpBqDetail.type == 3){
-        var deepDetailName = '<span class="modalMaintltle">'+tmpBqDetail.content.name+': </span>'
-        var deepDetailStr = ''
-        for(var n = 0;n < tmpBqDetail.content.details.length;n++){
-          var deepDetail = tmpBqDetail.content.details[n]
-          deepDetailStr+='<li class="radioChecks"><i></i><span>'+deepDetail.detailName+'</span>'+(deepDetail.state == 1?"<a>(智能推荐)</a>":"")+'</li>'
-        }
-        tmpBqDetailStr+='<div class="mayResult">可能结果:<span class="mayResultSelect" data-num="'+k+'"><span class="makesureResult">请选择</span><i class="sanjiao"></i>'+
-          '<div class="popupModal">'+
-          '<div class="modalTitle">结果选择<i class="closeModal"></i></div>'+
-          '<div class="modalMainOne">'+
-          deepDetailName+
-          '<ul class="clearfix">'+
-          deepDetailStr+
-          '</ul>'+
-          '</div>'+
-          '<div class="btnWrap clearfix">'+
-          '<div class="sureScore" data-type="3" data-num="'+k+'">确定</div>'+
-          '</div>'+
-          '</div>'+
-          '</span></div></div>'
-      }
-      if(tmpBqDetail.type == 4){
-        tmpBqDetailStr+=tmpBqStr + 
-        // "<div class='sriticalinfo'>诊断要点:"+tmpBqDetail.content.name+"</div>"+
-          '</div>';
-      }
-    }
-    /*if(tmpBqStr != '' || tmpBqDetailStr != ''){
-      $(".conditionHintTipsNull").css("display","none")
-    }*/
-    tmpBqDetailAllStr += tmpBqDetailStr
-  }
-  $(".conditionHintTipsNull").html('<div class=" clearfix">'+'<div class="sriticalinfo">'+tmpBqDetailAllStr+'</div></div>')
-
-  $(".mayIllness .infoMsg").on("click",function(){
-    const infoMsgName = $(this).parent().attr('data-name')
-    openNewWin(`information.html?type=22&position=2&name=${encodeURIComponent(infoMsgName)}`)
-  })
-  $(".illnessTable").on('click',function(){
-    const msg1 = JSON.parse(JSON.stringify(msg))
-    msg1.scaleName = $(this).attr('data-scaleName')
-    msg1.featureType = 21
-    openNewWin(`scale.html?msg=${encodeURIComponent(JSON.stringify(msg1))}`)
-  })
-}

+ 0 - 223
src/js/index.js

@@ -1,223 +0,0 @@
-require('./../css/reset.css');
-require('./../css/homeStatic.less');
-require('./../css/popup.css');
-// require('./popupEdit.js');
-var Promise = require("bluebird");
-
-
-//tipsMode: 提示信息模式  1 为单个, 2 为多个(只有传2时为多个)
-
-const $ = require("jquery");
-const { post,config,getUrlArgObject,openNewWin } = require('./promise.js');
-const { transConf } = require('./util.js');
-const { renderRecommendInfo, renderMultRecommendInfo, renderTreat, renderRecommendConditTips, renderTipsInfo ,renderKnowledgeInfo,renderScaleInfo} = require('./indexVertDom.js');
-
-
-let mrId = getUrlArgObject('mrId') 
-const tipsMode = getUrlArgObject('tipsMode') || 1
-
-let msg;
-if(mrId) {
- post(config.getMr,{mrId:mrId}).then((res) => {
-    const data = res.data
-    if(data.code == 0) {
-      msg = Object.assign(data.data, {plan:getUrlArgObject('plan') || '0',})
-      window.msg = msg
-      window.pushMessage = {} 
-      getPageInfo();
-    }
-  })
-} else {
-  msg = {
-    age: getUrlArgObject('age'),
-    sex: getUrlArgObject('sex') == '男'?1:(getUrlArgObject('sex') == '女'?2:(getUrlArgObject('sex') == '通用'?3:getUrlArgObject('sex'))),
-    symptom: getUrlArgObject('symptomJson'),
-    vital: getUrlArgObject('vitalJson'),
-    lis: getUrlArgObject('lisJson')? JSON.parse(getUrlArgObject('lisJson')) : [],
-    pacs: getUrlArgObject('pacsJson'),
-    diag: getUrlArgObject('diagJson'),
-    diseaseName: getUrlArgObject('diseaseName'),
-    other: getUrlArgObject('otherJson') + getUrlArgObject('pastJson'),
-    pasts: getUrlArgObject('otherJson') + getUrlArgObject('pastJson'),
-    hosCode:getUrlArgObject('hospitalCode') || '',
-    plan:getUrlArgObject('plan') || '0',
-  }
-  window.msg = msg
-  window.pushMessage = {} 
-  getPageInfo();
-}
-
-
-// var msg = {
-//     age: getUrlArgObject('age'),
-//     sex: getUrlArgObject('sex') == '男'?1:(getUrlArgObject('sex') == '女'?2:(getUrlArgObject('sex') == '通用'?3:getUrlArgObject('sex'))),
-//     symptom: getUrlArgObject('symptomJson'),
-//     vital: getUrlArgObject('vitalJson'),
-//     lis: getUrlArgObject('lisJson')? JSON.parse(getUrlArgObject('lisJson')) : [],
-//     pacs: getUrlArgObject('pacsJson'),
-//     diag: getUrlArgObject('diagJson'),
-//     diseaseName: getUrlArgObject('diseaseName'),
-//     other: getUrlArgObject('otherJson') + getUrlArgObject('pastJson'),
-//     hosCode:getUrlArgObject('hospitalCode') || '',
-//     plan:getUrlArgObject('plan') || '0',
-// }//推送相关信息
-// //   http://localhost:8082/indexVert.html?age=28&diseaseId=280&lisJson=&diagJson=%E6%80%A5%E6%80%A7%E8%83%B0%E8%85%BA%E7%82%8E&pastJson=%E6%97%A0%E5%BF%83%E8%84%8F%E7%97%85&otherJson=%E6%97%A0%E9%AB%98%E8%A1%80%E5%8E%8B&pacsJson=%E8%85%B9%E9%83%A8B%E8%B6%85:%E6%97%A0%E5%BC%82%E5%B8%B8,%20%E6%8A%A5%E5%91%8A%E6%97%A5%E6%9C%9F:2019-05-07&sex=%E7%94%B7&symptomJson=%E6%81%B6%E5%BF%83%E5%91%95%E5%90%90%E8%85%B0%E7%97%9B&vitalJson=%E8%A1%80%E5%8E%8B%E5%B7%A6%E4%B8%8A%E8%82%A213/12mmHg
-// window.msg = msg
-// window.pushMessage = {}
-function getConf() {
-  return post(config.getSysSetInfoDatas,{hospitalCode: msg.hosCode,plan:msg.plan})
-}
-
-function getPushInfo() {
-  return  post(config.pushInner,Object.assign({featureType: '1,4,5,6,7,22',ruleType:config.ruleTypeMap['22']},msg))
-  
-}
-
-function getTreatment() {
-  return  post(config.pushInner,Object.assign({featureType: '8',ruleType:config.ruleTypeMap['8']},msg))
-}
-
-function getTipsInfo() {
-  let tipsInfoList =  getUrlArgObject('tipsInfoList')&&JSON.parse(getUrlArgObject('tipsInfoList')) || []
-  if(tipsMode == 2) {
-    return post(config.informationMore, {conceptIntorduces:tipsInfoList})
-  } else {
-    return post(config.information,{name:getUrlArgObject('tipsName'),type:getUrlArgObject('tipsType'), position: 1})
-  }
-}
-
-
-function getPageInfo() {
-
-  Promise.all([getConf(),getPushInfo(),getTreatment(),getTipsInfo()]).then(([res1, res2, res3, res4]) =>{
-    // console.log({res1, res2, res3, res4})
-    const configArr = res1&&res1.data&&res1.data.data || []
-    const pushInfo = res2&&res2.data || {}
-    const treatInfo = res3&&res3.data &&res3.data || {}
-    const tipsInfo = res4&&res4.data || {}
-    const {confArr, showLabsNum, showPacsNum, labsAndPacMode} = transConf(configArr)
-    const pushResult = pushInfo.data || {};
-    const treatResult = treatInfo&&treatInfo.data&&treatInfo.data.treat || {}
-    let tipsResult = []
-    if(tipsInfo.data) {
-      if(tipsMode == '2') {
-          tipsResult = tipsInfo.data
-      } else {
-          tipsResult.push(tipsInfo.data)
-      }
-    }
-
-    const diagPossible =  pushResult.dis&&pushResult.dis['可能诊断'] || []//可能
-    const diagDoubt = pushResult.dis&&pushResult.dis['拟诊'] || [] // 疑似
-    const diagDeter = pushResult.dis&&pushResult.dis['确诊'] || []//确诊
-    const diagWaring = pushResult.dis&&pushResult.dis['警惕'] || [] // 推荐警惕诊断
-    const symptomRecommend = pushResult.symptom || []  //推荐问诊症状
-    const physiExamRecommend  = pushResult.vital || [] //推荐体格检查
-    const diagRecommend = diagDeter.concat(diagDoubt, diagPossible) //推荐诊断
-    const labRecommend = pushResult.lab || []
-    const pacsRecommend = pushResult.pacs || []
-    const medicalIndications = pushResult.medicalIndications || []
-    const labAndPacsRecommend = [
-      {
-          title: '化验',
-          className: 'labRecommend',
-          data:  labRecommend,
-          showNum: showLabsNum
-      },
-      {
-          title: '辅检',
-          className: 'pacsRecommend',
-          data:  pacsRecommend,
-          showNum: showPacsNum
-      }
-    ]
-    window.pushMessage = medicalIndications;//计算的需要的相关数据
-
-    for(let i = 0; i < confArr.length; i++) {
-
-      switch(confArr[i].code) {
-        case "inquiry_show":  //问诊症状
-        symptomRecommend.length > 0 && renderRecommendInfo(confArr[i].showNum,'symptomRecommend', '问诊症状', symptomRecommend, false)
-          break; 
-        case "health_show": //体格检查
-        physiExamRecommend.length > 0&&  renderRecommendInfo(confArr[i].showNum,'physiExamRecommend', '体格检查', physiExamRecommend, false)
-          break;
-        case "illness_show": //病情提示
-        medicalIndications.length > 0&& renderRecommendConditTips('conditTips','病情提示', medicalIndications || [])
-          break;
-        case "vigilant_show": //警惕诊断
-          
-        diagWaring.length > 0&& renderRecommendInfo(confArr[i].showNum,'warning', '警惕诊断', diagWaring, true,7,2)
-          break;
-        case "lispacs_show": //检验检查
-          (labRecommend.length > 0 || pacsRecommend.length >0) && renderMultRecommendInfo('labAndPacsRecommend', '检验检查', labAndPacsRecommend, false)
-          break;
-        case "cure_show": //治疗方案
-          JSON.stringify(treatResult)!='{}'&&(treatResult.commonTreatment||treatResult.treatmentPlan&&treatResult.treatmentPlan.length > 0)&&renderTreat('treatRecommend','治疗方案',treatResult)
-          break;
-        case "diagnose_show": //推荐诊断
-        diagRecommend.length > 0 && renderRecommendInfo(confArr[i].showNum,'diagRecommend', '推荐诊断', diagRecommend, true,7,2)
-          break;
-        case "tip_show": //提示信息
-          tipsResult.length > 0 && renderTipsInfo('tipsInfo','提示信息',tipsResult)
-          moreInfo()
-          break;
-        case "knowledge_show": //医学知识
-          renderKnowledgeInfo('knowledgeInfo','医学知识','点击搜索医学知识')
-          break;
-        case "scale_show": //全部量表
-          renderScaleInfo('scaleInfo','全部量表','点击搜索全部量表')
-          break;
-        default:
-          break
-      } 
-    }
-  }).catch(function (err) {
-    console.log(err);
-  })
-
-
-}
-function moreInfo() {
-  $('.moreInfo').click(function(){
-    const name = $(this).attr('data-name')
-    const type = $(this).attr('data-type')
-    openNewWin(`information.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}`)
-  })
-}
-
-function getVersion() {
-  post(config.getVersion, '').then((res) => {
-    const data = res.data.data;
-    const ver = localStorage.getItem('versionTime');
-    const time = data.refreshTime;
-    $(".version-tip a").text(data.name);
-    if(!ver||ver===time+"=new"||time!==ver.replace("=new","")){       //判断版本是否更新
-      $(".version-tip").addClass('new-icon');
-      localStorage.setItem('versionTime',time+"=new");     //保存版本更新时间
-    }else{
-      $(".version-tip").removeClass('new-icon');
-    }
-  })
-}
-  function getDisclaimer() {
-    post(config.disclaimer, '').then((res) => {
-      const data = res.data.data.find(item => item.disclaimerCode == '2');
-      $(".responsibility").html(data.description);
-    })
-  }
-
-
-$(function(){
-  getDisclaimer(); //获取免责声明
-  getVersion();   //获取版本信息
-  $(".disclaimerInfo").on("click", function(){
-    openNewWin("disclaimer.html")
-  });
-  $(".version-tip a").on("click", function(){
-    const ver = localStorage.getItem('versionTime');
-    $(".version-tip").removeClass('new-icon');
-    localStorage.setItem('versionTime',ver.replace("=new",""));
-    openNewWin("version.html");
-  });
-});

+ 0 - 248
src/js/indexHorizontal.js

@@ -1,248 +0,0 @@
-require('./../css/reset.css');
-require('./../css/indexHorizontal.less');
-// require('./../css/popup.css');
-// require('./popupEdit.js');
-var Promise = require("bluebird");
-let warningImg = require('./../images/warings.png')
-let diagImg = require('./../images/yszd.png')
-let symptomImg = require('./../images/inquire.png')
-let physiExamImg = require('./../images/tgjc.png')
-let labAndPacsImg = require('./../images/inspect.png')
-let conditTipsImg = require('./../images/tips.png')
-let treatImg = require('./../images/zhiliao.png')
-
-const $ = require("jquery");
-const { post,config,getUrlArgObject,openNewWin, isIe8 } = require('./promise.js');
-const { transConf } = require('./util.js');
-const { renderRecommendInfo, renderMultRecommendInfo, renderTreat, renderRecommendConditTips, renderTipsInfo ,renderKnowledgeInfo,renderScaleInfo} = require('./indexHorizontalDom.js');
-const is8Ie = isIe8() //判断是否为IE8
-if(is8Ie) {
-  let reg = /undefined/g
-  warningImg = warningImg.replace(reg, '')
-  diagImg = diagImg.replace(reg, '')
-  symptomImg = symptomImg.replace(reg, '')
-  physiExamImg = physiExamImg.replace(reg, '')
-  labAndPacsImg = labAndPacsImg.replace(reg, '')
-  conditTipsImg = conditTipsImg.replace(reg, '')
-  treatImg = treatImg.replace(reg, '')
-}
-
-let mrId = getUrlArgObject('mrId') 
-let showTab = getUrlArgObject('showTab') || '0';
-const tipsMode = getUrlArgObject('tipsMode') || 1
-
-let msg;
-if(mrId) {
- post(config.getMr,{mrId:mrId}).then((res) => {
-    const data = res.data
-    if(data.code == 0) {
-      msg = Object.assign(data.data, {plan:getUrlArgObject('plan') || '0',})
-      window.msg = msg
-      getPageInfo();
-    }
-  })
-} else {
-  msg = {
-    age: getUrlArgObject('age'),
-    sex: getUrlArgObject('sex') == '男'?1:(getUrlArgObject('sex') == '女'?2:(getUrlArgObject('sex') == '通用'?3:getUrlArgObject('sex'))),
-    symptom: getUrlArgObject('symptomJson'),
-    vital: getUrlArgObject('vitalJson'),
-    lis: getUrlArgObject('lisJson')? JSON.parse(getUrlArgObject('lisJson')) : [],
-    pacs: getUrlArgObject('pacsJson'),
-    diag: getUrlArgObject('diagJson'),
-    diseaseName: getUrlArgObject('diseaseName'),
-    other: getUrlArgObject('otherJson') + getUrlArgObject('pastJson'),
-    pasts: getUrlArgObject('otherJson') + getUrlArgObject('pastJson'),
-    hosCode:getUrlArgObject('hospitalCode') || '',
-    plan:getUrlArgObject('plan') || '0',
-  }
-  window.msg = msg
-  getPageInfo();
-}
-
-function getConf() {
-  return post(config.getSysSetInfoDatas,{hospitalCode: msg.hosCode,plan:msg.plan})
-}
-
-function getPushInfo() {
-  return post(config.pushInner,Object.assign({featureType: '1,4,5,6,7,22',ruleType:config.ruleTypeMap['22']},msg))
-}
-
-function getTreatment() {
-  return post(config.pushInner,Object.assign({featureType: '8',ruleType:config.ruleTypeMap['8']},msg))
-}
-
-
-function getTipsInfo() {
-  let tipsInfoList =  getUrlArgObject('tipsInfoList')&&JSON.parse(getUrlArgObject('tipsInfoList')) || []
-  
-  if(tipsMode == '2') {
-    return post(config.informationMore, {conceptIntorduces:tipsInfoList})
-  } else {
-    return post(config.information,{name:getUrlArgObject('tipsName'),type:getUrlArgObject('tipsType'), position: 1})
-  }
-}
-
-function getPageInfo() {
-  Promise.all([getConf(),getPushInfo(),getTreatment(),getTipsInfo()]).then(([res1, res2, res3,res4]) =>{
-    const configArr = res1&&res1.data&&res1.data.data || []
-    const pushInfo = res2.data || {}
-    const treatInfo = res3.data || {}
-    const {confArr, showLabsNum, showPacsNum, labsAndPacMode} = transConf(configArr)
-    const tipsInfo = res4.data || {}
-    const pushResult = pushInfo.data || {};
-    const treatResult = treatInfo&&treatInfo.data&&treatInfo.data.treat || {}
-    let tipsResult = []
-    if(tipsInfo.data) {
-      if(tipsMode == '2') {
-          tipsResult = tipsInfo.data
-      } else {
-          tipsResult.push(tipsInfo.data)
-      }
-    }
-    
-    
-    const diagPossible =  pushResult.dis&&pushResult.dis['可能诊断'] || []//可能
-    const diagDoubt = pushResult.dis&&pushResult.dis['拟诊'] || [] // 疑似
-    const diagDeter = pushResult.dis&&pushResult.dis['确诊'] || []//确诊
-    const diagWaring = pushResult.dis&&pushResult.dis['警惕'] || [] // 推荐警惕诊断
-    const symptomRecommend = pushResult.symptom || []  //推荐问诊症状
-    const physiExamRecommend  = pushResult.vital || [] //推荐体格检查
-    const diagRecommend = diagDeter.concat(diagDoubt, diagPossible) //推荐诊断
-    const labRecommend = pushResult.lab || []
-    const pacsRecommend = pushResult.pacs || []
-    const medicalIndications = pushResult.medicalIndications || []
-    const labAndPacsRecommend = [
-      {
-          title: '化验',
-          className: 'labRecommend',
-          data:  labRecommend,
-          showNum: showLabsNum
-      },
-      {
-          title: '辅检',
-          className: 'pacsRecommend',
-          data:  pacsRecommend,
-          showNum: showPacsNum
-      }
-    ]
-    window.pushMessage = medicalIndications;//计算的需要的相关数据
-    let tipsNum = 0;
-    for(let i = 0; i < confArr.length; i++) {
-      switch(confArr[i].code) {
-        case "inquiry_show":  //问诊症状
-          symptomRecommend.length > 0 && renderRecommendInfo(confArr[i].showNum, symptomImg, 'symptomRecommend', '问诊症状', symptomRecommend, false)
-          break; 
-        case "health_show": //体格检查
-          physiExamRecommend.length > 0 && renderRecommendInfo(confArr[i].showNum, physiExamImg, 'physiExamRecommend', '体格检查', physiExamRecommend, false)
-          break;
-        case "illness_show": //病情提示
-          medicalIndications.length > 0 && renderRecommendConditTips(conditTipsImg, 'conditTips','病情提示', medicalIndications || [])
-          break;
-        case "vigilant_show": //警惕诊断
-          diagWaring.length > 0 && renderRecommendInfo(confArr[i].showNum, warningImg, 'warning', '警惕诊断', diagWaring, true,7,2)
-          break;
-        case "lispacs_show": //检验检查
-          (labRecommend.length > 0 || pacsRecommend.length >0) && renderMultRecommendInfo(labsAndPacMode,labAndPacsImg, 'labAndPacsRecommend', '检验检查', labAndPacsRecommend, false)
-          break;
-        case "cure_show": //治疗方案
-          if(JSON.stringify(treatResult)!='{}'&&(treatResult.commonTreatment||treatResult.treatmentPlan&&treatResult.treatmentPlan.length > 0)) {
-            tipsNum++;
-            renderTreat(treatImg, 'treatRecommend','治疗方案',treatResult)
-          }
-          break;
-        case "diagnose_show": //推荐诊断
-          diagRecommend.length > 0 && renderRecommendInfo(confArr[i].showNum, diagImg, 'diagRecommend', '推荐诊断', diagRecommend, true,7,2)
-          break;
-        case "tip_show": //提示信息
-          if(tipsResult.length > 0 ) {
-            tipsNum++;
-            renderTipsInfo('', 'tipsInfo','提示信息',tipsResult)
-            moreInfo()
-          }
-          break;
-        case "knowledge_show": //医学知识
-          tipsNum++;
-          renderKnowledgeInfo('','knowledgeInfo','医学知识','点击搜索医学知识')
-          break;
-        case "scale_show": //全部量表
-          tipsNum++;
-          renderScaleInfo('','scaleInfo','全部量表','点击搜索全部量表')
-          break;
-        default:
-          break;
-      } 
-    }
-    function bindTab() {
-      $('.infoTabBox .infoTab').eq(showTab).addClass('activeTab').siblings().removeClass('activeTab')
-      $('.informationBox').eq(showTab).siblings(".informationBox").css({"display":"none"})
-      // if(showTab == '1') {
-      //     $('.infoTabBox .tipsTab').addClass('activeTab')
-      //     $('.infomationBox .treatRecommend').css("display","none")
-      // } else {
-      //   $('.infoTabBox .treatTab').addClass('activeTab')
-      //   $('.infomationBox .tipsInfo').css("display","none")
-      //   $('.infomationBox .staticWin').css("display","none")
-      // }
-
-      $('.infomationBox .infoTab').click(function() {
-        $(this).addClass('activeTab').siblings().removeClass('activeTab')
-        $('.informationBox').css("display","none")
-        const boxNode = $(this).attr('data-box')
-        $('.'+boxNode).css("display","block")
-      })
-    
-    }
-    if(tipsNum > 1) {
-      bindTab();
-    }else if(tipsNum == 0){
-      $('.push').css({
-        "width":"95%",
-        "border-right":"0 none"
-      })
-      $('.itemAllBox').css({"width":"98%"})
-    }
-    function moreInfo() {
-      $('.moreInfo').click(function(){
-        const name = $(this).attr('data-name')
-        const type = $(this).attr('data-type')
-        openNewWin(`information.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}`)
-      })
-    }
-    
-    const pushHei = $('.push').height()
-    if(pushHei == 0) {
-      $('.infomationBox').css({"width":"90%"})
-    }
-  
-    
-  }).catch(function (err) {
-    console.log(err);
-  })
-
-}
-function getVersion() {
-  post(config.getVersion, '').then((res) => {
-    const data = res.data.data;
-    const name = data.name;
-    const ver = localStorage.getItem('versionTime-v');
-    const time = data.refreshTime;
-    if(!ver||ver===time+"=new"||time!==ver.replace("=new","")){       //判断版本是否更新
-      $(".version").addClass('new-icon');
-      localStorage.setItem('versionTime-v',time+"=new");     //保存版本更新时间
-    }else{
-      $(".version").removeClass('new-icon');
-    }
-    $(".version span").html(name);
-  })
-}
-$(function(){
-  getVersion();
-  //打开版本信息
-  $(".disclaimer .version").on("click",function() {
-    const ver = localStorage.getItem('versionTime-v');
-    $(".version").removeClass('new-icon');
-    localStorage.setItem('versionTime-v',ver.replace("=new",""));
-    openNewWin("version.html");
-  });
- })

+ 0 - 443
src/js/indexHorizontalDom.js

@@ -1,443 +0,0 @@
-const $ = require("jquery");
-const { openNewWin, imageUrlPrefix, isIe8 } = require('./promise.js');
-const { bindTipsEvent } = require('./popupEdit.js');
-let showImg = require('./../images/show.png')
-let collapseImg = require('./../images/collapse.png')
-
-
-const is8Ie = isIe8() //判断是否为IE8
-if(is8Ie) {
-  let reg = /undefined/g
-  showImg = showImg.replace(reg, '')
-  collapseImg = collapseImg.replace(reg, '')
-}
-
-//推荐诊断等单种类型的
-function renderRecommendInfo(showNum, icon, className,title,data, hasInfo, type, position) {
-    let showNumCopy = showNum || 5
-    const dataLen = data.length
-    const str = `<div class="recommendInfoWrapper ${className} clearfix">
-                    <h4><img src=${icon} title="${title}" class="icon">${title}:</h4>
-                    <div class="recommendInfoBox">
-                        <div class="clearfix recommendInfoItemBox ${className + 'box'}">
-                        </div>
-                    </div>
-                </div>`
-    $('.push').append(str)
-    let dataShort
-    if(showNumCopy&& dataLen > showNumCopy) {
-        dataShort = data.slice(0, showNumCopy)
-    } else {
-        dataShort = data
-    }
-    let childrenNodeStrShort = ''
-    let childrenNodeStrLong = ''
-    if(hasInfo) {
-        for (let i = 0; i < dataShort.length; i++) {
-            childrenNodeStrShort += `<span class="recommendInfoItem recommendInfoItemHasInfo">
-                                    ${data[i].name}
-                                    <span  title="点击i图标可查看详细说明" class="infoMsg" data-name=${data[i].name}></span>
-                                </span>`
-        }
-        for (let i = 0; i < data.length; i++) {
-            childrenNodeStrLong += `<span class="recommendInfoItem recommendInfoItemHasInfo">
-                                    ${data[i].name}
-                                    <span  title="点击i图标可查看详细说明" class="infoMsg" data-name=${data[i].name}></span>
-                                </span>`
-        }
-    } else {
-        for (let i = 0; i < dataShort.length; i++) {
-            childrenNodeStrShort += `<span class="recommendInfoItem" data-name="${data[i].name}">
-                                    ${data[i].name}
-                                </span>`
-        }
-        for (let i = 0; i < data.length; i++) {
-            childrenNodeStrLong += `<span class="recommendInfoItem" data-name="${data[i].name}">
-                                    ${data[i].name}
-                                </span>`
-        }
-    }
-    if(!childrenNodeStrShort) {
-        childrenNodeStrShort = '<span class ="recommendNull">暂无推荐</span>'
-    }
-    $('.'+className + 'box').append(childrenNodeStrShort)
-    let childrenNodeStrAll = `<div class="${className+'boxAll'} itemAllBox">
-            <h4>${title}:</h4>
-            <div class="itemAll">
-                ${childrenNodeStrLong}
-            </div>
-            <span class="slideup"><img src="${collapseImg}"></span>
-        </div>`
-
-    $('.push').append(childrenNodeStrAll)
-    $('.'+className + 'box' +' .infoMsg').on('click', function(){
-        const infoMsgName = $(this).attr('data-name')
-        openNewWin(`information.html?type=${type}&position=${position}&name=${infoMsgName}`)
-    })
-    $('.'+className + 'boxAll' +' .infoMsg').on('click', function(){
-        const infoMsgName = $(this).attr('data-name')
-        openNewWin(`information.html?type=${type}&position=${position}&name=${infoMsgName}`)
-    })
-    slideToggle("."+className+"box", showNumCopy, dataLen)
-
-}
-
-//化验和辅检等多种类型
-function renderMultRecommendInfo(labsAndPacMode,icon, className,title,data, hasInfo, type, position) {
-    const str = `<div class="recommendInfoWrapper ${className} clearfix">
-                    <h4 class ="${+labsAndPacMode === 1 ? 'showTopTitle':'showRightTitle'}"><img src=${icon} title="${title}" class="icon">${title}:</h4>
-                    <div class="recommendInfoBox ${className + 'box'} ${+labsAndPacMode === 1 ? 'showTopInfo':'showRightInfo'}"></div>
-                </div>`
-    $('.push').append(str)
-    let hanContentNum = 0
-    for(let i = 0; i < data.length; i++) {
-        if(data[i].data === 0) {
-            continue
-        }
-        const showNum = data[i].showNum || 5
-        const dataLen = data[i].data.length
-        if(dataLen === 0) {
-            continue
-        }
-        let childrenNodeBoxStr  = `<div class="labAndPacsWrapper ${data[i].className+'wrapper'}">
-                <div class="labAndPacsBox ${data[i].className+'box'} clearfix"> 
-                </div>
-            </div>`
-        let childrenNodeStr =  `<span class="labAndPacsTitle ${+labsAndPacMode === 1 ? 'topSmallTitle':'rightSmallTitle'}"">${data[i].title}<i></i></span>`
-        let childrenNodeItemStrAll =  '' //更多展开框中的字符串
-        let dataShort
-        if(showNum&& dataLen > showNum) {
-            dataShort = data[i].data.slice(0, showNum)
-        } else {
-            dataShort = data[i].data
-        }
-        for(let j = 0; j < dataShort.length; j++) {
-            childrenNodeStr += `<span class="labAndPacsItem">${dataShort[j].name}</span>`
-        }
-        for(let j = 0; j < data[i].data.length; j++) {
-            childrenNodeItemStrAll += `<span class="labAndPacsItem">${data[i].data[j].name}</span>`
-        }
-        if(data[i].data.length == 0) {
-            childrenNodeStr +='<span class="recommendNull">暂无推荐</span>'
-        }
-        $('.'+className + 'box').append(childrenNodeBoxStr)
-        $('.'+data[i].className+'box').append(childrenNodeStr)
-        let childrenNodeStrAll = `<div class="${data[i].className+'boxAll'} itemAllBox">
-            <h4>${data[i].title}:</h4>
-            <div class="itemAll">
-                ${childrenNodeItemStrAll}
-                <span class="slideup"><img src="${collapseImg}"></span>
-            </div>
-        </div>`
-
-        $('.push').append(childrenNodeStrAll)
-        slideToggle("."+data[i].className+"box", showNum, dataLen)
-    }
-
-}
-
-function renderTreat(icon, className,title, data) {
-    $('.infoTabBox').append(`<span class="infoTab treatTab boldFont"  data-box="${className}">${title}</span>`)
-    const str = `<div class="informationBox recommendInfoWrapper ${className} clearfix">
-                    <p class="diagName boldFont">${msg.diseaseName.uniqueName?msg.diseaseName.uniqueName:''}</p>
-                    <div class="recommendInfoBox clearfix ${className + 'box'}"></div>
-                </div>`
-    $('.infomationBox').append(str)
-    const commonTreatmentInfo = data.commonTreatment&&data.commonTreatment.content || ""
-    const treatmentList = data.treatmentPlan || []
-    renderTreatText('commonTreatment', '一般治疗', commonTreatmentInfo, className+'box')
-    renderTreatDrug('drugTreatment', '推荐药物', treatmentList, className+'box')
-}
-function renderKnowledgeInfo(icon, className,title, data) {
-    $('.infoTabBox').append(`<span class="infoTab tipsTab boldFont"  data-box="${className}">${title}</span>`)
-    const str = `<div class="informationBox staticWin recommendInfoWrapper ${className} clearfix">
-                    <p class="diagName">${data}</p>
-                </div>`
-    $('.infomationBox').append(str)
-    $('.'+className+'.staticWin' ).on('click', function(){
-        openNewWin(`staticSearch.html?msg=${encodeURIComponent(JSON.stringify(msg))}`)
-    })
-}
-function renderScaleInfo(icon, className,title, data) {
-    $('.infoTabBox').append(`<span class="infoTab tipsTab boldFont"  data-box="${className}">${title}</span>`)
-    const str = `<div class="informationBox staticWin recommendInfoWrapper ${className} clearfix">
-                    <p class="diagName">${data}</p>
-                </div>`
-    $('.infomationBox').append(str)
-    $('.'+className+'.staticWin' ).on('click', function(){
-        openNewWin(`staticSearch.html?msg=${encodeURIComponent(JSON.stringify(msg))}`)
-    })
-}
-
-function renderTreatText(className,title,data, parentNode) {
-    const childrenNodeBoxStr = `
-        <div class = "treatItemBox ${className + 'box'} disCopy">
-            <p class="treatItemTitle">${title}:</p>
-            <div class="treatTextBox">
-                <p class="${className + 'Info'} clearfix"></p>
-            </div>
-        </div>
-    `
-    $('.' + parentNode).append(childrenNodeBoxStr)
-    if(!data) {
-        data = '<span class="recommendNull">暂无推荐</span>'
-    }
-    $('.' + className+'Info').html(data)
-    var commonTreatHeight = $(".commonTreatmentInfo").height()
-    if(commonTreatHeight > 75){
-        $(".treatTextBox").append('<span class="more">更多</span>')
-    }
-    $(".infomationBox .treatTextBox").on('click',".more",function(){
-        openNewWin(`treatplan.html?msg=${encodeURIComponent(JSON.stringify(msg))}`)
-    })
-    $('.' + className + 'box' + ' img').bind('contextmenu', function(){
-        return false
-    })
-    
-}
-function renderTreatDrug(className,title,data, parentNode) {
-    const childrenNodeBoxStr = `
-        <div class = "treatItemBox ${className + 'box'}">
-            <p class="treatItemTitle">${title}: ${data.length ==0 ? '':'<span class="more">更多</span>'}</p>
-            <div class="treatDrugBox">
-                <p class="${className + 'Info'}"></p>
-            </div>
-        </div>
-    `
-    $('.' + parentNode).append(childrenNodeBoxStr)
-    if(data.length ==0) {
-        $('.' + className+'Info').append('<span class="recommendNull">暂无推荐</span>')
-    }
-    for(let i = 0; i <  data.length; i++) {
-        let childrenNodeStr =`<div class = "drugTreatmentInfoItemBox">
-            <p class="diagTitle ellipsis"><i></i>${data[i].title}</p>`
-            //二级标题暂时不放
-            // for(let j = 0; j < data[i].meditionDetails.length; j++) {
-            //     if(data[i].meditionDetails[j].description) {
-            //         childrenNodeStr += `<p class="diaDescription">${data[i].meditionDetails[j].description}</p>`
-            //     }
-            // }
-            childrenNodeStr +=`</div>`
-        $('.' + className+'Info').append(childrenNodeStr)
-    }
-    // for(let i = 0; i < data.length; i++) {
-    //     let childrenNodeStr = `<p class="drugTreatmentInfoItemBox">
-    //         ${i+1}.${data[i].bigdrugsName}${data[i].subdrugsName&&"("+data[i].subdrugsName+")"}:`
-    //     for (let j = 0; j < data[i].medicitionsList.length; j++) {
-    //         childrenNodeStr += `<span class="durgNameBox ${(data[i].medicitionsList[j].forbidden == '2' ? 'medicineWaringDis' : '' )}">${data[i].medicitionsList[j].medicitionName}`
-    //         if(data[i].medicitionsList[j].forbidden == '1') {
-    //             childrenNodeStr += `<span class="medicineWaring">慎用</span>`
-    //         } else if(data[i].medicitionsList[j].forbidden == '2') {
-    //             childrenNodeStr += `<span  class="medicineWaringDisMsg">禁用</span>`
-    //         }
-    //         childrenNodeStr += `<span  title="点击i图标可查看详细说明" class="infoMsg" data-name=${data[i].medicitionsList[j].medicitionName}></span>`
-    //         if(j !== data[i].medicitionsList.length-1) {
-    //             childrenNodeStr += ','
-    //         }
-    //         childrenNodeStr += '</span></span>'
-    //         // childrenNodeStr += `<span class="${(data[i].medicitionsList[j].forbidden == '2' ? 'medicineWaringDis' : '' )}">使用率${data[i].medicitionsList[j].rate}</span>`
-    //         // if(j === data[i].medicitionsList.length-1) {
-    //         //     childrenNodeStr += ';'
-    //         // } else {
-    //         //     childrenNodeStr += ','
-    //         // }
-    //     }
-    //     childrenNodeStr += ` </p>`
-    //     $('.' + className+'Info').append(childrenNodeStr)
-    // }
-    // $('.' + className+'Info'+ ' .infoMsg').on('click', function(){
-    //     const infoMsgName = $(this).attr('data-name')
-    //     openNewWin(`information.html?type=8&position=5&name=${infoMsgName}`)
-    // })
-    
-    // var drugTreatmentHeight = $(".drugTreatmentInfo").height()
-    // if(drugTreatmentHeight > 75){
-    //     $(".treatDrugBox").append('<span class="more">更多</span>')
-    // } else if(drugTreatmentHeight > 30) {
-    //     $(".drugTreatmentInfo").append('<span class="more">更多</span>')
-    // }
-    $(".infomationBox .drugTreatmentbox").on('click',".more",function(){
-        openNewWin(`treatplan.html?msg=${encodeURIComponent(JSON.stringify(msg))}`)
-        // openNewWin(`treatplan.html?age=${msg.age}&sex=${msg.sex}&symptomJson=${msg.symptom}&vitalJson=${msg.vital}&lisJson=${msg.lis}&pacsJson=${msg.pacs}&diseaseName=${msg.diseaseName}&diagJson=${msg.diag}&otherJson=${msg.other}&hospitalCode=${msg.hosCode}`)
-      })
-    var treatList = $(".drugTreatmentInfo").find(".drugTreatmentInfoItemBox")
-    // for(var h = 0;h < treatList.length;h++){ 
-    //     if($(treatList[h]).height() > 25){
-    //     $(treatList[h]).addClass('recommendInfoItemBoxLimit').append('<span class="slideDown">更多 <i></i></span>')
-    //     }
-    //     $(".drugTreatmentInfo").on('click',".slideDown",function(){
-    //     $(this).parents(".drugTreatmentInfoItemBox ").removeClass("recommendInfoItemBoxLimit").append('<span class="slideup">收起 <i></i></span>')
-    //     $(this).remove()
-    //     })
-    //     $(".drugTreatmentInfo").on('click',".slideup",function(){
-    //     $(this).parents(".drugTreatmentInfoItemBox ").addClass("recommendInfoItemBoxLimit").append('<span class="slideDown">更多 <i></i></span>')
-    //     $(this).remove()
-    //     })
-    // }
-}
-
-function renderTipsInfo(icon, className,title,data) {
-    $('.infoTabBox').append(`<span class="infoTab tipsTab boldFont" data-box="${className}">${title}</span>`)
-    let str
-    if(data.length === 0) {
-        str = `<div class="informationBox tipsInfoWrapper ${className} clearfix">
-            <p class="diagName recommendNull">暂无数据</p>
-            <div class="tipsInfoBox clearfix ${className + 'box'} disCopy"></div>
-        </div>`
-    } else {
-        str = `<div class="informationBox tipsInfoWrapper ${className} clearfix">
-                    <div class="tipsInfoBox clearfix ${className + 'box'} disCopy">
-                    </div>
-                </div>`
-    }
-    
-    $('.infomationBox').append(str)
-    for(let i = 0; i < data.length; i++) {
-        renderTipsInfoText('','诊断依据',data[i],className + 'box')
-    }
-    $('.' + className + 'box' + ' img').bind('contextmenu', function(){
-        return false
-    })
-    // if(data.name) {
-    //     renderTipsInfoText('','诊断依据',data.details,className + 'box')
-    // }
-    if(data.length > 1) {
-        $('.tipsInfoItem').each(function(i, obj){
-            var lineHeight = parseInt($(this).css("line-height"));
-            var height = parseInt($(this).height());
-            if((height / lineHeight) >3 ){
-                $(this).addClass("hasMore")
-                $(this).css("height","60px");    
-            }else{
-                $(this).removeClass("hasMore");
-            }
-        });
-    }
-   
-}
-
-
-function renderTipsInfoText(className,title,data, parentNode) {
-    let childrenNodeBoxStr = `<p class="diagName boldFont">${data.name} <span class="moreInfo"  data-name="${data.name}" data-type="${data.type}">详情</span></p>`
-    if(data.details.length === 0) {
-        childrenNodeBoxStr += `<p class="recommendNull">暂无数据</p>
-                            `
-    } else {
-        for(let i = 0; i < data.details.length; i++) {
-            childrenNodeBoxStr += `<div class="tipsInfoItem">
-                                        <p class="tipsInfoItemTitle">${data.details[i].title}</p>
-                                        ${data.details[i].content.replace(/{imageUrlPrefix}/g, imageUrlPrefix)}
-                                   </div>
-                                `
-        }
-    }
-   
-    $('.' + parentNode).append(childrenNodeBoxStr)
-  
-   
-}
-
-function renderRecommendConditTips(icon, className,title,data) {
-    const str = `<div class="recommendInfoWrapper ${className} clearfix">
-                    <h4><img src=${icon} title="${title}" class="icon">${title}:</h4>
-                    <div class="recommendInfoBox  ${className + 'box'}"></div>
-                </div>`
-    $('.push').append(str)
-    if(data.length == 0) {
-        $("."+className+"box").append('<span class="recommendNull">暂无推荐</span>')
-    }
-    /*let names = [];*/
-    for(var k = 0;k < data.length;k++){
-        var tmpBq = data[k];
-        let hasSritical = false
-        let tmpBqStr;
-        if(tmpBq.details) {
-            for(let i = 0; i < tmpBq.details.length; i++) {
-                if(tmpBq.details[i].type == 4) {
-                    hasSritical= true
-                }
-            }
-        }
-        if(hasSritical) {
-          /*if(names.includes(tmpBq.name)){    //name相同去重
-            tmpBqStr='';
-          }else{
-            names.push(tmpBq.name);*/
-            tmpBqStr = `<p class="mayIllness">
-                <span class="sriticalNameBox"><span class="sriticalName">${tmpBq.name}</span>
-                </span>
-            </span></p>`
-         // }
-        } else {
-            tmpBqStr = `<p class="mayIllness">
-                            患者可能有 <span class="diagNameBox"><span class="diagName">${tmpBq.name}:</span>
-                                <span title="点击该名称可看详细说明" class="infoMsg" data-name=${tmpBq.name}></span>
-                            </span>
-                        </span></p>`
-        }
-        
-        var tmpBqDetailStr = ''
-        for(var m = 0;m < tmpBq.details.length;m++){
-          var tmpBqDetail = tmpBq.details[m]
-          if(tmpBqDetail.type == 1){
-            tmpBqDetailStr+=`<span data-scaleName=${tmpBqDetail.content.name} class="illnessTable">【${tmpBqDetail.content.name}】</span>`
-          }
-          if(tmpBqDetail.type == 4){
-            // tmpBqDetailStr+=`<span class="sriticalinfo">&nbsp;${tmpBqDetail.content.name}(诊断要点)</span>`
-          }
-        
-        }
-        /*if(tmpBqStr){*/
-          $("."+className+"box").append('<div class="conditionMain ellipse clearfix">'+tmpBqStr+'<div class="alertModal">'+tmpBqDetailStr+'</div><span class="more">更多</span></div>')
-        //}
-        //$("."+className+"box").append('<div class="conditionMain ellipse clearfix">'+tmpBqStr+'<div class="alertModal">'+tmpBqDetailStr+'</div><span class="more">更多</span></div>')
-      }
-      $('.mayIllness .infoMsg').on('click', function(){
-        const infoMsgName = $(this).attr('data-name')
-        openNewWin(`information.html?type=22&position=2&name=${infoMsgName}`)
-      })
-      $('.alertModal .illnessTable').on('click', function(){
-        const msg1 = JSON.parse(JSON.stringify(msg))
-        msg1.scaleName = $(this).attr('data-scaleName')
-        msg1.featureType = 21
-        openNewWin(`scale.html?msg=${encodeURIComponent(JSON.stringify(msg1))}`)
-      })
-      $(".conditTipsbox").on('click',".more",function(){
-        // openNewWin(`illness.html?age=${msg.age}&sex=${msg.sex}&symptomJson=${msg.symptom}&vitalJson=${msg.vital}&lisJson=${JSON.stringify(msg.lis)}&pacsJson=${msg.pacs}&diagJson=${msg.diag}&diseaseName=${msg.diseaseName}&otherJson=${msg.other}&hospitalCode=${msg.hosCode}&msg=${JSON.stringify(msg)}`)
-        openNewWin(`illness.html?msg=${encodeURIComponent(JSON.stringify(msg))}`)
-
-      })
-      bindTipsEvent()
-}
-function slideToggle(className, showNum, dataLen){//展开收起
-    const domName = $(className)
-    const domNameBoxAll = $(className+'All')
-    setTimeout(() => {
-        if(showNum < dataLen){
-          domName.append(`<span class="slideDown"><img src="${showImg}"></span>`)
-        }
-    });
-    domName.on('click',".slideDown",function(){
-        $(".itemAllBox").css('display', 'none')
-        $(domNameBoxAll).css('display', 'block')
-      
-    })
-    domNameBoxAll.on('click',".slideup",function(){
-        $(domNameBoxAll).css('display', 'none')
-    })
-  }
-
-//打开免责申明
-  $(".disclaimer .logo").on("click",function() {
-    openNewWin("disclaimer.html");
-  });
-
-module.exports = {
-    renderRecommendInfo,
-    renderMultRecommendInfo,
-    renderTreat,
-    renderRecommendConditTips,
-    renderTipsInfo,
-    renderKnowledgeInfo,
-    renderScaleInfo
-}

+ 0 - 460
src/js/indexVertDom.js

@@ -1,460 +0,0 @@
-const $ = require("jquery");
-const { openNewWin,imageUrlPrefix } = require('./promise.js');
-const { bindTipsEvent } = require('./popupEdit.js');
-
-function renderRecommendInfo(showNum,className,title,data, hasInfo, type, position) {
-    let showNumCopy = showNum || 5
-    const dataLen = data.length
-    const str = `<div class="recommendInfoWrapper ${className}">
-                    <h4><i></i>${title}</h4>
-                    <div class="recommendInfoBox">
-                        <div class="clearfix recommendInfoItemBox ${className + 'box'}">
-                        </div>
-                    </div>
-                </div>`
-    $('.recommendWrap').append(str)
-    let dataShort
-    if(showNumCopy&& dataLen > showNumCopy) {
-        dataShort = data.slice(0, showNumCopy)
-    } else {
-        dataShort = data
-    }
-    let childrenNodeStrShort = ''
-    let childrenNodeStrLong = ''
-    if(hasInfo) {
-        for (let i = 0; i < dataShort.length; i++) {
-            childrenNodeStrShort += `<span class="recommendInfoItem recommendInfoItemHasInfo">
-                                    ${dataShort[i].name}
-                                    <span  title="点击i图标可查看详细说明" class="infoMsg" data-name=${dataShort[i].name}></span>
-                                </span>`
-        }
-        for (let i = 0; i < data.length; i++) {
-            childrenNodeStrLong += `<span class="recommendInfoItem recommendInfoItemHasInfo">
-                                    ${data[i].name}
-                                    <span  title="点击i图标可查看详细说明" class="infoMsg" data-name=${data[i].name}></span>
-                                </span>`
-        }
-    } else {
-        for (let i = 0; i < dataShort.length; i++) {
-            childrenNodeStrShort += `<span class="recommendInfoItem" data-name="${dataShort[i].name}">
-                                    ${dataShort[i].name}
-                                </span>`
-        }
-        for (let i = 0; i < data.length; i++) {
-            childrenNodeStrLong += `<span class="recommendInfoItem" data-name="${data[i].name}">
-                                    ${data[i].name}
-                                </span>`
-        }
-    }
-    if(!childrenNodeStrShort) {
-        childrenNodeStrShort='<span class="recommendNull">暂无推荐</span>'
-    }
-    
-    $('.'+className + 'box').append(childrenNodeStrShort)
-    $('.'+className + 'box' +' .infoMsg').on('click', function(){
-        const infoMsgName = $(this).attr('data-name')
-        openNewWin(`information.html?type=${encodeURIComponent(type)}&position=${encodeURIComponent(position)}&name=${encodeURIComponent(infoMsgName)}`)
-    })
-    if(dataLen > showNumCopy) {
-        slideToggle($("."+className+"box"), childrenNodeStrShort,childrenNodeStrLong)
-    }
-}
-
-function renderMultRecommendInfo(className,title,data, hasInfo, type, position) {
-    const str = `<div class="recommendInfoWrapper ${className}">
-                    <h4><i></i>${title}</h4>
-                    <div class="recommendInfoBox ${className + 'box'}"></div>
-                </div>`
-    $('.recommendWrap').append(str)
-    let hasDataNum = 0
-    for(let i = 0; i < data.length; i++) {
-        const showNum = data[i].showNum || 5
-        const dataLen = data[i].data.length
-        if(dataLen === 0) {
-            continue
-        }
-        hasDataNum++
-        if(hasDataNum > 1) {
-            $('.'+className + 'box').append('<div class="line"></div>')
-        }
-        let childrenNodeBoxStr  = `<div class="labAndPacsBox ${data[i].className} clearfix"> </div>`
-        let childrenNodeStrShort =  `<span class="labAndPacsTitle">${data[i].title}<i></i></span>`
-        let childrenNodeStrLong =  `<span class="labAndPacsTitle">${data[i].title}<i></i></span>`
-        let dataShort
-        if(showNum&& dataLen > showNum) {
-            dataShort = data[i].data.slice(0, showNum)
-        } else {
-            dataShort = data[i].data
-        }
-        for(let j = 0; j < dataShort.length; j++) {
-            childrenNodeStrShort += `<span class="labAndPacsItem">${dataShort[j].name}</span>`
-        }
-        for(let j = 0; j < data[i].data.length; j++) {
-            childrenNodeStrLong += `<span class="labAndPacsItem">${data[i].data[j].name}</span>`
-        }
-        if(data[i].data.length == 0) {
-            childrenNodeStrShort +='<span class="recommendNull">暂无推荐</span>'
-        }
-        $('.'+className + 'box').append(childrenNodeBoxStr)
-        $('.'+data[i].className).append(childrenNodeStrShort)
-        if(dataLen > showNum) {
-            slideToggle($("."+data[i].className), childrenNodeStrShort,childrenNodeStrLong)
-        }
-    }
-
-}
-
-function renderTipsInfo(className,title, data) {
-    const str = `<div class="recommendInfoWrapper ${className}">
-                    <h4><i></i>${title}</h4>
-                    <div class="recommendInfoBox clearfix ${className + 'box'} disCopy"></div>
-                </div>`
-    $('.recommendWrap').append(str)
-    if(data.length > 0) {
-        for(let i = 0; i < data.length; i++) {
-            renderTipsInfoMsg('tipsInfo'+i, data[i], data[i].details, className+'box')
-
-        }
-    } else {
-        // renderTipsInfoMsg('tipsInfo', data.name, data.details, className+'box')
-        $('.' + className+'box').append('<p class="TipsInfoNull">暂无数据</p>')
-    }
-    $('.' + className + 'box' + ' img').bind('contextmenu', function(){
-        return false
-    })
-}
-
-function renderKnowledgeInfo(className,title, data) {
-    const str = `<div class="recommendInfoWrapper ${className}">
-                    <h4><i></i>${title}</h4>
-                    <div class="recommendInfoBox clearfix ${className + 'box'}"></div>
-                </div>`
-    $('.recommendWrap').append(str)
-    $('.' + className+'box').append('<p class="TipsInfoNull staticWin">'+data+'</p>')
-    $('.'+className+' .staticWin' ).on('click', function(){
-        openNewWin(`staticSearch.html?msg=${encodeURIComponent(JSON.stringify(msg))}`)
-    })
-}
-
-function renderScaleInfo(className,title, data) {
-    const str = `<div class="recommendInfoWrapper ${className}">
-                    <h4><i></i>${title}</h4>
-                    <div class="recommendInfoBox clearfix ${className + 'box'}"></div>
-                </div>`
-    $('.recommendWrap').append(str)
-    $('.' + className+'box').append('<p class="TipsInfoNull staticWin">'+data+'</p>')
-    $('.'+className+' .staticWin' ).on('click', function(){
-        openNewWin(`staticSearch.html?msg=${encodeURIComponent(JSON.stringify(msg))}`)
-    })
-}
-
-function renderTipsInfoMsg(className,item,data, parentNode) {
-    const childrenNodeBoxStr = `
-        <div class = "treatItemBox ${className + 'box'} disCopy">
-            <p class="treatItemTitle">${item.name} <span class="moreInfo" data-name="${item.name}" data-type="${item.type}"}>详情</span></p>
-            <p class="${className + 'Info'} clearfix"></p>
-        </div>
-    `
-    $('.' + parentNode).append(childrenNodeBoxStr)
-    let dataStr = ``
-    if(data.length === 0) {
-        dataStr += `<p class="TipsInfoNull">暂无数据</p>
-                            `
-    } else {
-        for(let i = 0; i < data.length; i++) {
-            dataStr += `<p>${data[i].title}</p>
-                                    ${data[i].content.replace(/{imageUrlPrefix}/g, imageUrlPrefix)}
-                        `
-        }
-    }
-    $('.' + className+'Info').html(dataStr)
-}
-
-function renderTreat(className,title, data) {
-    const str = `<div class="recommendInfoWrapper ${className}">
-                    <h4><i></i>${title}${msg.diseaseName?'('+msg.diseaseName.uniqueName+')':''}</h4>
-                    <div class="recommendInfoBox clearfix ${className + 'box'}"></div>
-                </div>`
-    $('.recommendWrap').append(str)
-    const commonTreatmentInfo = data.commonTreatment&&data.commonTreatment.content || ""
-    const treatmentList = data.treatmentPlan || []
-    renderTreatText('commonTreatment', '一般治疗', commonTreatmentInfo, className+'box')
-    renderTreatDrug('drugTreatment', '推荐药物', treatmentList, className+'box')
-}
-
-function renderTreatText(className,title,data, parentNode) {
-    const childrenNodeBoxStr = `
-        <div class = "treatItemBox ${className + 'box'} disCopy">
-            <p class="treatItemTitle">${title}</p>
-            <p class="${className + 'Info'} clearfix"></p>
-        </div>
-    `
-    $('.' + parentNode).append(childrenNodeBoxStr)
-    if(!data) {
-        data = '<span class="recommendNull">暂无推荐</span>'
-    }
-    $('.' + className+'Info').html(data)
-    var commonTreatHeight = $(".commonTreatmentInfo").height()
-    if(commonTreatHeight > 75){
-        $(".commonTreatmentInfo").addClass('commonTreatmentInfoLimit').append('<span class="slideDown">更多 <i></i></span>')
-    }
-    $(".treatItemBox").on('click',".slideDown",function(){
-        openNewWin(`treatplan.html?msg=${encodeURIComponent(JSON.stringify(msg))}`)
-    })
-    $('.' + className + 'Info' + ' img').bind('contextmenu', function(){
-        return false
-    })
-}
-function renderTreatDrug(className,title,data, parentNode) {
-    const childrenNodeBoxStr = `
-        <div class = "treatItemBox ${className + 'box'}">
-            <p class="treatItemTitle">${title} ${data.length ==0 ?'':'<span class="slideDown">更多 <i></i></span>'}</p>
-            <p class="${className + 'Info'}"></p>
-        </div>
-    `
-    $('.' + parentNode).append(childrenNodeBoxStr)
-    if(data.length ==0) {
-        $('.' + className+'Info').append('<span class="recommendNull">暂无推荐</span>')
-    }
-    for(let i = 0; i <  data.length; i++) {
-        let childrenNodeStr =`<div class = "drugTreatmentInfoItemBox">
-            <p class="diagTitle"><i></i>${data[i].title}</p>`
-            //二级标题暂时不放
-            // for(let j = 0; j < data[i].meditionDetails.length; j++) {
-            //     if(data[i].meditionDetails[j].description) {
-            //         childrenNodeStr += `<p class="diagDescription">${data[i].meditionDetails[j].description}</p>`
-            //     }
-            // }
-            childrenNodeStr +=`</div>`
-        $('.' + className+'Info').append(childrenNodeStr)
-    }
-    $(".treatItemTitle").on('click',".slideDown",function(){
-        openNewWin(`treatplan.html?msg=${encodeURIComponent(JSON.stringify(msg))}`)
-    })
-    // for(let i = 0; i < data.length; i++) {
-    //     let childrenNodeStr = `<p class="drugTreatmentInfoItemBox">
-    //         ${i+1}.${data[i].bigdrugsName}${data[i].subdrugsName&&"("+data[i].subdrugsName+")"}:`
-        // for (let j = 0; j < data[i].medicitionsList.length; j++) {
-        //     childrenNodeStr += `<span class="durgNameBox ${(data[i].medicitionsList[j].forbidden == '2' ? 'medicineWaringDis' : '' )}"><span class="durgName">${data[i].medicitionsList[j].medicitionName}</span>`
-        //     if(data[i].medicitionsList[j].forbidden == '1') {
-        //         childrenNodeStr += `<span class="medicineWaring">慎用</span>`
-        //     } else if(data[i].medicitionsList[j].forbidden == '2') {
-        //         childrenNodeStr += `<span  class="medicineWaringDisMsg">禁用</span>`
-        //     }
-        //     childrenNodeStr += `<span  title="点击i图标可查看详细说明" class="infoMsg" data-name=${data[i].medicitionsList[j].medicitionName}></span>`
-        //     if(j !== data[i].medicitionsList.length-1) {
-        //         childrenNodeStr += ','
-        //     }
-        //     childrenNodeStr += '</span></span>'
-        //     //隐藏使用率
-        //     // childrenNodeStr += `<span class="${(data[i].medicitionsList[j].forbidden == '2' ? 'medicineWaringDis' : '' )}">使用率${data[i].medicitionsList[j].rate}</span>`
-        //     // if(j === data[i].medicitionsList.length-1) {
-        //     //     childrenNodeStr += ';'
-        //     // } else {
-        //     //     childrenNodeStr += ','
-        //     // }
-        // }
-        // childrenNodeStr += ` </p>`
-        // $('.' + className+'Info').append(childrenNodeStr)
-    // }
-    // $('.' + className+'Info'+ ' .infoMsg').on('click', function(){
-    //     const infoMsgName = $(this).attr('data-name')
-    //     openNewWin(`information.html?type=8&position=5&name=${infoMsgName}`)
-    // })
-    // var treatList = $(".drugTreatmentInfo").find(".drugTreatmentInfoItemBox")
-    // for(var h = 0;h < treatList.length;h++){ 
-    //     if($(treatList[h]).height() > 25){
-    //     $(treatList[h]).addClass('recommendInfoItemBoxLimit').append('<span class="slideDown">更多 <i></i></span>')
-    //     }
-    //     $(".drugTreatmentInfo").on('click',".slideDown",function(){
-    //     $(this).parents(".drugTreatmentInfoItemBox ").removeClass("recommendInfoItemBoxLimit").append('<span class="slideup">收起 <i></i></span>')
-    //     $(this).remove()
-    //     })
-    //     $(".drugTreatmentInfo").on('click',".slideup",function(){
-    //     $(this).parents(".drugTreatmentInfoItemBox ").addClass("recommendInfoItemBoxLimit").append('<span class="slideDown">更多 <i></i></span>')
-    //     $(this).remove()
-    //     })
-    // }
-}
-
-function renderRecommendConditTips(className,title,data) {
-    const str = `<div class="recommendInfoWrapper ${className}">
-                    <h4><i></i>${title}</h4>
-                    <div class="recommendInfoBox  ${className + 'box'}"></div>
-                </div>`
-    $('.recommendWrap').append(str)
-    if(data.length == 0) {
-        $("."+className+"box").append('<span class="recommendNull">暂无推荐</span>')
-    };
-    //let names = [];
-    for(var k = 0;k < data.length;k++){
-        let tmpBq = data[k];
-        let hasSritical = false
-        let tmpBqStr;
-        if(tmpBq.details) {
-            for(let i = 0; i < tmpBq.details.length; i++) {
-                if(tmpBq.details[i].type == 4) {
-                    hasSritical= true
-                }
-            }
-        }
-        if(hasSritical) {
-            /*if(names.includes(tmpBq.name)){    //name相同去重
-              tmpBqStr='';
-            }else{
-              names.push(tmpBq.name);*/
-              tmpBqStr = `<p class="mayIllness">
-              <span class="sriticalNameBox"><span class="sriticalName">${tmpBq.name}</span>
-                </span>
-            </span></p>`
-            //}
-        } else {
-            tmpBqStr = `<p class="mayIllness">
-                            患者可能有 <span class="diagNameBox"><span class="diagName">${tmpBq.name}:</span>
-                                <span title="点击该名称可看详细说明" class="infoMsg" data-name=${tmpBq.name}></span>
-                            </span>
-                        </span></p>`
-        }
-         
-        var tmpBqDetailStr = ''
-        for(var m = 0;m < tmpBq.details.length;m++){
-          var tmpBqDetail = tmpBq.details[m]
-          if(tmpBqDetail.type == 1){
-            tmpBqDetailStr+=`<span data-scaleName=${tmpBqDetail.content.name} class="illnessTable">【${tmpBqDetail.content.name}】</span>`
-          }
-          if(tmpBqDetail.type == 2){
-            var deepDetailName = `<div class="modalTitle">${tmpBqDetail.content.name}<i class="closeModal"></i></div>`
-            var deepDetailStr = ''
-            var deepDetailResultStr = ''
-            for(var n = 0;n < tmpBqDetail.content.details.length;n++){
-              var deepDetail = tmpBqDetail.content.details[n]
-              if(deepDetail.controlType == 2){//0-radio,1-checkbox,2-text,3-dropdownlist
-                if(deepDetail.isShow == 0) {
-                    deepDetailStr+=`<li class="radioCheck"><span class="modalMaintltle">${deepDetail.name}: </span>${deepDetail.value} ${deepDetail.uint}</li>`
-                } else {
-                    deepDetailStr+=`<li class="radioCheck"><span class="modalMaintltle">请输入${deepDetail.name}: </span><input type="text" class="${tmpBqDetail.content.name+deepDetail.name}" ${deepDetail.isShow=='0' ? 'readonly':''} placeholder="请输入" value=${deepDetail.value}><i class="uint">${deepDetail.uint}</i></li>`
-                }
-              }
-              if(deepDetail.controlType == 0){
-                let tooDeepDetailStr = ''
-                for(var f = 0;f<deepDetail.details.length;f++){
-                  var tooDeepDetail = deepDetail.details[f]
-                  if(deepDetail.isShow == '0'){
-                    if(tooDeepDetail.state == 1) {
-                      tooDeepDetailStr+='<li class="radioChecks" data-select="'+(tooDeepDetail.state == 1?"select":"")+'"><span>'+tooDeepDetail.detailName+'</span></li>'
-                    }
-                  }else{
-                    tooDeepDetailStr+='<li class="radioChecks"><i></i><span>'+tooDeepDetail.detailName+'</span>'+(tooDeepDetail.state == 1?"<a>(智能推荐)</a>":"")+'</li>'
-                  }
-                }
-                
-                
-                deepDetailStr+=`<li class="radioCheck"><span class="modalMaintltle">${deepDetail.name}: </span>
-                                <ul class="clearfix caculateLis" data-isShow = ${deepDetail.isShow}>
-                                    ${tooDeepDetailStr}
-                                </ul>
-                            </li>`
-                  
-              }
-            }
-            for(var v = 0;v < tmpBqDetail.content.result.length;v++){
-              deepDetailResultStr+='<p class="result"><span class="calculateName">'+tmpBqDetail.content.result[v].name+':</span><span class="calculateResult"></span></p>'
-            }
-            tmpBqDetailStr+=`<div class="mayResult">
-                计算公式结果:
-                <span class="mayResultSelect" data-num="${k}">
-                    <span class="makesureResult">请选择</span>
-                    <span class="sanjiao"></span>
-                    <div class="popupModal">
-                        ${deepDetailName}
-                        <div class="modalMainTwo">
-                            <ul class="clearfix">
-                                ${deepDetailStr}
-                            </ul>
-                            <div class="calculate" data-num="${k}">计算</div>
-                            <p class="calculateError">请填写计算公式内容</p>
-                            <div class="resultLis">
-                                ${deepDetailResultStr}
-                            </div>
-                        </div>
-                        <div class="btnWrap clearfix">
-                            <div class="sureScore" data-type="2">关闭</div>
-                        </div>
-                    </div>
-                </span>
-            </div>`
-            
-          }
-          if(tmpBqDetail.type == 3){
-            var deepDetailName = '<span class="modalMaintltle">'+tmpBqDetail.content.name+': </span>'
-            var deepDetailStr = ''
-            for(var n = 0;n < tmpBqDetail.content.details.length;n++){
-              var deepDetail = tmpBqDetail.content.details[n]
-              deepDetailStr+='<li class="radioChecks"><i></i><span>'+deepDetail.detailName+'</span>'+(deepDetail.state == 1?"<a>(智能推荐)</a>":"")+'</li>'
-            }
-
-              tmpBqDetailStr+=`<div class="mayResult">
-                可能结果:
-                <span class="mayResultSelect" data-num="${k}"><span class="makesureResult">请选择</span><i class="sanjiao"></i>
-                    <div class="popupModal">
-                    <div class="modalTitle">
-                        结果选择<i class="closeModal"></i>
-                    </div>
-                    <div class="modalMainOne">
-                        ${deepDetailName}
-                        <ul class="clearfix">
-                            ${deepDetailStr}
-                        </ul>
-                    </div>
-                    <div class="btnWrap clearfix">
-                        <div class="sureScore" data-type="3" data-num="${k}">确定</div>
-                    </div>
-                </div>
-                </span>
-            </div>`
-          }
-          if(tmpBqDetail.type == 4){
-            // tmpBqDetailStr+=`<div class="sriticalinfo">诊断要点:${tmpBqDetail.content.name}</div>`
-          }
-        }
-        if(tmpBqStr != '' || tmpBqDetailStr != ''){
-          $(".conditionHintTipsNull").css("display","none")
-        }
-        // $(".conditionHintTips").append('<div class="conditionMain clearfix">'+tmpBqStr+'<div class="alertModal">'+tmpBqDetailStr+'</div></div>')
-        $("."+className+"box").append('<div class="conditionMain clearfix">'+tmpBqStr+'<div class="alertModal">'+tmpBqDetailStr+'</div></div>')
-      }
-      $('.mayIllness .infoMsg').on('click', function(){
-        const infoMsgName = $(this).attr('data-name')
-        openNewWin(`information.html?type=22&position=2&name=${encodeURIComponent(infoMsgName)}`)
-      })
-      $('.alertModal .illnessTable').on('click', function(){
-        const msg1 = JSON.parse(JSON.stringify(msg))
-        msg1.scaleName = $(this).attr('data-scaleName')
-        msg1.featureType = 21
-        openNewWin(`scale.html?msg=${encodeURIComponent(JSON.stringify(msg1))}`)
-      })
-      bindTipsEvent()
-}
-function slideToggle(domName,childrenNodeStrShort,childrenNodeStrLong){//展开收起
-    domName.append('<span class="slideDown">更多 <i></i></span>')
-    domName.on('click',".slideDown",function(){
-        domName.html(childrenNodeStrLong)
-        domName.append('<span class="slideup">收起 <i></i></span>')
-        $(this).remove()
-    })
-    domName.on('click',".slideup",function(){
-        domName.html(childrenNodeStrShort)
-        domName.append('<span class="slideDown">更多 <i></i></span>')
-        $(this).remove()
-    })
-  }
-
-module.exports = {
-    renderRecommendInfo,
-    renderMultRecommendInfo,
-    renderTreat,
-    renderRecommendConditTips,
-    renderTipsInfo,
-    renderKnowledgeInfo,
-    renderScaleInfo
-}

+ 31 - 21
src/js/promise.js

@@ -19,8 +19,14 @@ let iconDiagPush2 = require('./../images/icon_diag_push2.png').replace(/^undefin
 let iconCommonTreatPush = require('./../images/icon_drug_push.png').replace(/^undefined/g, '')
 let iconCheckupPush = require('./../images/icon_checkup_push.png').replace(/^undefined/g, '')
 let iconTreat = require('./../images/zhiliao.png').replace(/^undefined/g, '')
+let writingNorms = require('./../images/writingNorms.png').replace(/^undefined/g, '')
+
 let iconTreatMedicine = require('./../images/treat_icon.png').replace(/^undefined/g, '')
 let iconCaseWrite = require('./../images/icon_case_write.png').replace(/^undefined/g, '')
+let intelligentDiagnosis = require('./../images/intelligentDiagnosis.png').replace(/^undefined/g, '')
+let therapeuticSchedule = require('./../images/therapeuticSchedule.png').replace(/^undefined/g, '')
+
+
 
 
 //重写assign方法imgR
@@ -191,65 +197,69 @@ const throttle = function (fn, threshhold) {
     }
   }
 }
-
+const colorMap={
+  warnColor:'#FFE8DD', //智能警示等tab颜色
+  suggerColor:'#E3F0FF', //推荐提示tab颜色
+  treatColor:'#E3FEFE',  //治疗等tab颜色
+}
 const titleConfig = {
   warning:{
-    background: "#FFE8DD",
+    background: colorMap.warnColor,
     icon: iconWarning1,
     name:"智能警示"
   },
   symptomPush:{
-    background: "#EEF5FD",
+    background: colorMap.suggerColor,
     icon: iconSymptomPush,
     name:"推荐症状"
   },
   diagPush:{
-    background: "#EEF5FD",
+    background: colorMap.suggerColor,
     icon: iconDiagPush2,
     name:"智能诊断"
   },
   checkupPush:{
-    background: "#EEF5FD",
+    background: colorMap.suggerColor,
     icon: iconCheckupPush,
     name:"推荐体格检查"
   },
   scalePush:{
-    background: "#EEF5FD",
+    background: colorMap.suggerColor,
     icon: iconScalePush,
     name:"推荐量表"
   },
   lisPush:{
-    background: "#ECF4FC",
+    background: colorMap.suggerColor,
     icon: iconLisPush,
     name:"推荐检验"
   },
   pacsPush:{
-    background: "#ECF4FC",
+    background: colorMap.suggerColor,
     icon: iconPacsPush,
     name:"推荐检查"
   },
   drugPush:{
-    background: "#E3FEFE",
+    background: colorMap.treatColor,
     icon: iconDrugPush,
     name:"推荐用药"
   },
-    nursePush: {
-        background: "#E3FEFE",
-        icon: iconNursePush,
-        name: "推荐护理"
-    },
+  nursePush: {
+    background: colorMap.treatColor,
+    icon: iconNursePush,
+    name: "推荐护理"
+  },
   operationPush:{
-    background: "#E3FEFE",
+    background: colorMap.treatColor,
     icon: iconOperationPush,
     name:"推荐手术及操作"
   },
   generaTreatPush:{
-    background: "#E3FEFE",
+    background: colorMap.treatColor,
     icon: iconTreat,
     name:"一般治疗"
   },
   casewritingPush:{
-    background: "#FFE8DD",
+    background: colorMap.warnColor,
     icon: iconCaseWrite,
     name:"病历书写规范提示"
   }
@@ -269,7 +279,7 @@ const titleConfigH = {
   },
   diagPush:{
     background: "#FAECED",
-    icon: iconDiagPush,
+    icon: intelligentDiagnosis,
     name:"智能诊断",
     location:"left"
   },
@@ -329,12 +339,12 @@ const titleConfigH = {
   },
   treat:{
     background: "#FFE8DD",
-    icon: iconTreat,
+    icon: therapeuticSchedule,
     name:"治疗方案"
   },
   casewritingPush:{
-    background: "#E3FEFE",
-    icon: iconTreat,
+    background: "#FFE8DD",
+    icon: writingNorms,
     name:"病历书写规范提示",
     location:"left"
   }

+ 5 - 5
src/js/searchStaticList.js

@@ -38,16 +38,16 @@ function renderTab(data){
   }
 //获取字典信息
 function getAllTypes(){
-    const allTypes = localStorage.getItem('allTypes')&&JSON.parse(localStorage.getItem('allTypes'))||[];
+    /*const allTypes = localStorage.getItem('allTypes')&&JSON.parse(localStorage.getItem('allTypes'))||[];
     if(allTypes.length>0){
       renderTab(allTypes)
       return
-    }
+    }*/
     post(config.dictionaryInfo, {}).then((res) => {
       const result = res.data
       if(result.code==='0'){
         const data = result.data[7]||[];
-        localStorage.setItem('allTypes',JSON.stringify(data))
+        //localStorage.setItem('allTypes',JSON.stringify(data))
         renderTab(data)
       }
     })
@@ -61,7 +61,7 @@ function getSearchList(){
     })
 }
 function getTabData(){
-    let vals = $('.searchStr').val();
+    let vals = $('.searchStr').val().trim();
     if (!vals) {
         $(".staticResult .loading").hide();
         toggleWarnBox('检索词不能为空!');
@@ -110,7 +110,7 @@ function renderList(tabList){
                 </div>
                 ${item.retrievalName?`<div class="same">同义词:<span>${item.retrievalName}</span></div>`:''}
                 <div class="content">
-                    <p>${item.abstractContent}</p>
+                    <p>${item.abstractContent ? item.abstractContent : ''}</p>
                 </div>
             </div>
         `

+ 2 - 1
src/js/smartAlert.js

@@ -1,5 +1,6 @@
 const $ = require("jquery");
 const { post,config,getUrlArgObject } = require('./promise.js');
+require('./../images/dot.png').replace(/^undefined/g, '')
 let mrId = getUrlArgObject('mrId')
 let hospitalIdUrl = getUrlArgObject('hospitalId') || ''
 const codes = getUrlArgObject('codes') || ''
@@ -37,7 +38,7 @@ $(function(){
     if(list.length === 0){
       return
     }
-    let str = `<p class="contentTitle">${name}</p>`
+    let str = `<p class="contentTitle"><span>${name}</span></p>`
     let infoStr = ""
     for(let i = 0; i < list.length; i++){
       infoStr+= `<li class="contentItem">${list[i].msg}</li>`

+ 8 - 5
src/js/staticSearch.js

@@ -1,10 +1,11 @@
-require('./../css/staticSearch.css');
+require('../css/staticSearch.less');
 require('./../images/del_nor.png')
 var $ = require("jquery");
 var { post,config,getUrlArgObject,openNewWin,isIe8 } = require('./promise.js');
 let checkOffImg = require('./../images/check_off.png')
 let checkOnImg = require('./../images/check_on.png')
 require('./../images/empty3.png').replace( /undefined/g, '')
+require('./../images/icon_search.png').replace( /undefined/g, '')
 
 let searchType = getUrlArgObject("searchType") || ""
 
@@ -45,11 +46,13 @@ $(".searchScale").css({display:'none'})
 $(".searchKnowledge").css({display:'block'})
 $(".searchKnowledge .staticSearchT").on('click','button',function() {
     var val = $(this).parents(".staticSearchT").find("input").val()
-    if(val == ''){
+    if(val.trim() == ''){
+        $(".searchKnowledge .staticSearchB ul").html("");
+        $(".searchKnowledge .staticSearchB .tip").hide();
         $(".searchKnowledge .staticSearchB .inputWarning").css("display","block")
-       
+    }else{
+        getKnowledgeData(val)
     }
-    val!=''&&getKnowledgeData(val)
 })
 
 
@@ -124,7 +127,7 @@ function getKnowledgeData(value) {
                 for(var i = 0;i<knowledgeLis.length;i++){
                     var tmpPart = knowledgeLis[i]
                     var tmpLi = `<li data-name='${tmpPart.name}' data-uname='${tmpPart.uniqueName}' data-type='${tmpPart.libTypeId}' data-sign='${tmpPart.type}'>
-                        <p>${tmpPart.name}<i>${tmpPart.typeName?('( '+tmpPart.typeName+' )'):''}</i> <span>${tmpPart.code||''}</span></p>
+                        <p>${tmpPart.name}<i>${tmpPart.typeName?(' ( '+tmpPart.typeName+' )'):''}</i> <span>${tmpPart.code||''}</span></p>
                         ${tmpPart.retrievalName?('<span>• '+tmpPart.retrievalName+'</span>'):''}
                     </li>`
                     lisStr += tmpLi

+ 1 - 1
src/js/tcmiss.js

@@ -103,7 +103,7 @@ function renderTcm(data, num = 3) {
     }
 
     if (data.length > num) {
-        if ($("#goTreat").length) {       //竖版不增加更多按钮,显示即可
+        if ($("#goTreat").length) {     //竖版显示即可不用新增
             str += ``;
             $("#goTreat").show();
         } else {

文件差异内容过多而无法显示
+ 0 - 129
src/js/treatplan.js


+ 2 - 1
src/js/version.js

@@ -1,5 +1,6 @@
 const {post, config} = require('./promise.js');
 const $ = require("jquery");
+require('../images/rock.png')
 
 $(function(){
   function getVersion() {
@@ -9,7 +10,7 @@ $(function(){
       const time = data.refreshTime.substr(0,10);
       let dom = '';
       $("h1 span").html(data.name);
-      $("h1 i").html(time);
+      $(".time").html(time);
       for(let i=0;i<dtl.length;i++){
         dom += '<p>'+dtl[i].title+'</p><p>'+dtl[i].description+'</p>';
       }

+ 0 - 28
src/page.js

@@ -1,28 +0,0 @@
-require('./css/page.css');
-const $ = require("jquery");
-
-// var lis = [
-//   {
-//     detailName: "HGB*3/HCT",
-//     maxValue: "",
-//     minValue: "",
-//     name: "血常规",
-//     otherValue: "",
-//     source: "0",
-//     time: "2019-05-07 17:11",
-//     uniqueName: "血常规-HGB*3/HCT",
-//     units: "",
-//     value: "4"
-//   }
-// ];
-var lis = [
-  {name:"血电解质3项",detailName:"钾(K)",uniqueName:"血电解质3项--钾(K)",source:"0",maxValue:5.5,minValue:3.5,time:"2019-08-30 15:31:49",units:"mmol/L",value:"3","otherValue":""},
-  // {name:"血电解质3项",detailName:"钠(Na)",uniqueName:"血电解质3项--钠(Na)",source:"0",maxValue:145,minValue:"",time:"2019-08-30 15:31:49",units:"mmol/L",value:"120",otherValue:""},
-  // {name:"尿常规11联",detailName:"尿蛋白(PRO-U)",uniqueName:"尿常规11联--尿蛋白(PRO)",source:"0",maxValue:1,minValue:"",time:"2019-08-30 15:31:49",units:"",value:"300",otherValue:""}
-]
-var tipsInfo = [
-  {name:"血常规",type:12,position:"1"},
-  {name:"尿常规",type:12,position:"1"},
-  {name:"糖尿病",type:7,position:"1"}]
-
-$(".iframeContainer").attr("src",'indexHorizontal.html?age=22&lisJson='+JSON.stringify(lis)+'&diagJson=糖尿病&tipsInfo='+JSON.stringify(tipsInfo)+'&pastJson=无心脏病&otherJson=无高血压&pacsJson=腹部B超:无异常, 报告日期:2019-05-07&sex=男&symptomJson=恶心呕吐腰痛&vitalJson=血压左上肢13/12mmHg')

+ 23 - 158
webpack.config.js

@@ -7,31 +7,24 @@ const webpack = require('webpack');
 const proxyHost = "http://192.168.2.241:6060";
 module.exports = {
   entry: {
-    index: path.resolve(__dirname, 'src/js', 'index.js'),
-    page: path.resolve(__dirname, 'src', 'page.js'),
-    information: path.resolve(__dirname, 'src/js', 'information.js'),
+    //index: path.resolve(__dirname, 'src/js', 'index.js'),
+    //information: path.resolve(__dirname, 'src/js', 'information.js'),
     informationOut: path.resolve(__dirname, 'src/js', 'informationOut.js'),
     disclaimer: path.resolve(__dirname, 'src/js', 'disclaimer.js'),
     version: path.resolve(__dirname, 'src/js', 'version.js'),
     scale: path.resolve(__dirname, 'src/js', 'scale.js'),
-    illness: path.resolve(__dirname, 'src/js', 'illness.js'),
-    treatplan: path.resolve(__dirname, 'src/js', 'treatplan.js'),
-    indexHorizontal: path.resolve(__dirname, 'src/js', 'indexHorizontal.js'),
-    staticSearch: path.resolve(__dirname, 'src/js', 'staticSearch.js'),
+    //staticSearch: path.resolve(__dirname, 'src/js', 'staticSearch.js'),
     emergency: path.resolve(__dirname, 'src/js', 'emergency.js'),
-    icssIndex: path.resolve(__dirname, 'src/js', 'icssIndex.js'),
-    view: path.resolve(__dirname, 'src/js', 'view.js'),
     cdss: path.resolve(__dirname, 'src/js', 'cdss.js'),
     cdssHorizontal: path.resolve(__dirname, 'src/js', 'cdssHorizontal.js'),
     smartAlert: path.resolve(__dirname, 'src/js', 'smartAlert.js'),
     caseWriteStandard: path.resolve(__dirname, 'src/js', 'caseWriteStandard.js'),
     generalTreat:path.resolve(__dirname, 'src/js', 'generalTreat.js'),
     cdssPlan:path.resolve(__dirname, 'src/js', 'cdssPlan.js'),
-    check:path.resolve(__dirname, 'src/js', 'check.js'),
     homeStatic:path.resolve(__dirname, 'src/js', 'homeStatic.js'),
     searchStaticList:path.resolve(__dirname, 'src/js', 'searchStaticList.js'),
     staticInfo:path.resolve(__dirname, 'src/js', 'staticInfo.js'),
-    staticInfoOut:path.resolve(__dirname, 'src/js', 'staticInfoOut.js'),
+    //staticInfoOut:path.resolve(__dirname, 'src/js', 'informationOut.js'),
     vendor: 'lodash'// 多个页面所需的公共库文件,防止重复打包带入
   },
   output: {
@@ -44,19 +37,6 @@ module.exports = {
     alias: {} //配置别名可以加快webpack查找模块的速度
   },
   plugins: [// 多入口的html文件用chunks这个参数来区分
-    new HtmlWebpackPlugin({
-      title: 'index',
-      template: path.resolve(__dirname, 'src/html', 'index.html'),
-      filename: 'index.html',
-      chunks: ['index', 'vendor', 'common'],
-      inject: true,
-      hash: true, //防止缓存
-      minify: {
-        removeAttributeQuotes: true, //压缩 去掉引号
-        removeComments: true, //移除HTML中的注释
-        collapseWhitespace: true //删除空白符与换行符
-      }
-    }),
     new HtmlWebpackPlugin({
       title: 'homeStatic',
       template: path.resolve(__dirname, 'src/html', 'homeStatic.html'),
@@ -70,19 +50,6 @@ module.exports = {
         collapseWhitespace: true //删除空白符与换行符
       }
     }),
-    new HtmlWebpackPlugin({
-      title: 'staticInfoOut',
-      template: path.resolve(__dirname, 'src/html', 'staticInfoOut.html'),
-      filename: 'staticInfoOut.html',
-      chunks: ['staticInfoOut', 'vendor', 'common'],
-      inject: true,
-      hash: true, //防止缓存
-      minify: {
-        removeAttributeQuotes: true, //压缩 去掉引号
-        removeComments: true, //移除HTML中的注释
-        collapseWhitespace: true //删除空白符与换行符
-      }
-    }),
     new HtmlWebpackPlugin({
       title: 'staticInfo',
       template: path.resolve(__dirname, 'src/html', 'staticInfo.html'),
@@ -109,19 +76,6 @@ module.exports = {
         collapseWhitespace: true //删除空白符与换行符
       }
     }),
-    new HtmlWebpackPlugin({
-      title: 'index',
-      template: path.resolve(__dirname, 'src/html', 'check.html'),
-      filename: 'check.html',
-      chunks: ['check', 'vendor', 'common'],
-      inject: true,
-      hash: true, //防止缓存
-      minify: {
-        removeAttributeQuotes: true, //压缩 去掉引号
-        removeComments: true, //移除HTML中的注释
-        collapseWhitespace: true //删除空白符与换行符
-      }
-    }),
     new HtmlWebpackPlugin({
       title: '智能警示',
       template: path.resolve(__dirname, 'src/html', 'smartAlert.html'),
@@ -174,46 +128,7 @@ module.exports = {
         collapseWhitespace: true //删除空白符与换行符
       }
     }),
-    new HtmlWebpackPlugin({
-      title: '病情提示',
-      template: path.resolve(__dirname, 'src/html', 'illness.html'),
-      filename: 'illness.html',
-      chunks: ['illness', 'vendor', 'common'],
-      inject: true,
-      hash: true, //防止缓存
-      minify: {
-        removeAttributeQuotes: true, //压缩 去掉引号
-        removeComments: true, //移除HTML中的注释
-        collapseWhitespace: true //删除空白符与换行符
-      }
-    }),
-    new HtmlWebpackPlugin({
-      title: '治疗方案',
-      template: path.resolve(__dirname, 'src/html', 'treatplan.html'),
-      filename: 'treatplan.html',
-      chunks: ['treatplan', 'vendor', 'common'],
-      inject: true,
-      hash: true, //防止缓存
-      minify: {
-        removeAttributeQuotes: true, //压缩 去掉引号
-        removeComments: true, //移除HTML中的注释
-        collapseWhitespace: true //删除空白符与换行符
-      }
-    }),
-    new HtmlWebpackPlugin({
-      title: 'page',
-      template: path.resolve(__dirname, 'src/html', 'page.html'),
-      filename: 'page.html',
-      chunks: ['page', 'vendor', 'common'],
-      inject: true,
-      hash: true, //防止缓存
-      minify: {
-        removeAttributeQuotes: true, //压缩 去掉引号
-        removeComments: true, //移除HTML中的注释
-        collapseWhitespace: true //删除空白符与换行符
-      }
-    }),
-    new HtmlWebpackPlugin({
+    /*new HtmlWebpackPlugin({
       title: 'information',
       template: path.resolve(__dirname, 'src/html', 'information.html'),
       filename: 'information.html',
@@ -225,7 +140,7 @@ module.exports = {
         removeComments: true, //移除HTML中的注释
         collapseWhitespace: true //删除空白符与换行符
       }
-    }),
+    }),*/
     new HtmlWebpackPlugin({
       title: 'informationOut',
       template: path.resolve(__dirname, 'src/html', 'informationOut.html'),
@@ -239,19 +154,6 @@ module.exports = {
         collapseWhitespace: true //删除空白符与换行符
       }
     }),
-    new HtmlWebpackPlugin({
-      title: 'drugInfo',
-      template: path.resolve(__dirname, 'src/html', 'drugInfo.html'),
-      filename: 'drugInfo.html',
-      chunks: ['information', 'vendor', 'common'],
-      inject: true,
-      hash: true, //防止缓存
-      minify: {
-        removeAttributeQuotes: true, //压缩 去掉引号
-        removeComments: true, //移除HTML中的注释
-        collapseWhitespace: true //删除空白符与换行符
-      }
-    }),
     new HtmlWebpackPlugin({
       title: '免责声明',
       template: path.resolve(__dirname, 'src/html', 'disclaimer.html'),
@@ -291,32 +193,6 @@ module.exports = {
         collapseWhitespace: true //删除空白符与换行符
       }
     }),
-    new HtmlWebpackPlugin({
-      title: 'indexHorizontal',
-      template: path.resolve(__dirname, 'src/html', 'indexHorizontal.html'),
-      filename: 'indexHorizontal.html',
-      chunks: ['indexHorizontal', 'vendor', 'common'],
-      inject: true,
-      hash: true, //防止缓存
-      minify: {
-        removeAttributeQuotes: true, //压缩 去掉引号
-        removeComments: true, //移除HTML中的注释
-        collapseWhitespace: true //删除空白符与换行符
-      }
-    }),
-    new HtmlWebpackPlugin({
-      title: 'staticSearch',
-      template: path.resolve(__dirname, 'src/html', 'staticSearch.html'),
-      filename: 'staticSearch.html',
-      chunks: ['staticSearch', 'vendor', 'common'],
-      inject: true,
-      hash: true, //防止缓存
-      minify: {
-        removeAttributeQuotes: true, //压缩 去掉引号
-        removeComments: true, //移除HTML中的注释
-        collapseWhitespace: true //删除空白符与换行符
-      }
-    }),
     new HtmlWebpackPlugin({
       title: 'emergency',
       template: path.resolve(__dirname, 'src/html', 'emergency.html'),
@@ -330,19 +206,6 @@ module.exports = {
         collapseWhitespace: true //删除空白符与换行符
       }
     }),
-    new HtmlWebpackPlugin({
-      title: 'icssIndex',
-      template: path.resolve(__dirname, 'src/html', 'icssIndex.html'),
-      filename: 'icssIndex.html',
-      chunks: ['icssIndex', 'vendor', 'common'],
-      inject: true,
-      hash: true, //防止缓存
-      minify: {
-        removeAttributeQuotes: true, //压缩 去掉引号
-        removeComments: true, //移除HTML中的注释
-        collapseWhitespace: true //删除空白符与换行符
-      }
-    }),
     new HtmlWebpackPlugin({
       title: 'cdss',
       template: path.resolve(__dirname, 'src/html', 'cdss.html'),
@@ -357,7 +220,7 @@ module.exports = {
       }
     }),
     new HtmlWebpackPlugin({
-      title: 'cdss',
+      title: 'cdssHorizontal',
       template: path.resolve(__dirname, 'src/html', 'cdssHorizontal.html'),
       filename: 'cdssHorizontal.html',
       chunks: ['cdssHorizontal', 'vendor', 'common'],
@@ -369,7 +232,6 @@ module.exports = {
         collapseWhitespace: true //删除空白符与换行符
       }
     }),
-    
     new HtmlWebpackPlugin({
       title: 'view',
       template: path.resolve(__dirname, 'src/html', 'view.html'),
@@ -404,7 +266,7 @@ module.exports = {
             except: ['e']
           },
           output: {
-              beautify: true
+            beautify: true
           },
           sourceMap: false
         }
@@ -423,13 +285,13 @@ module.exports = {
       }
     }
   },
-      
+
   module: {
     rules: [
       {
-          test: /.js$/,
-          enforce: 'post', 
-          loader: 'es3ify-loader'
+        test: /.js$/,
+        enforce: 'post',
+        loader: 'es3ify-loader'
       },
       {
         test: /\.m?js$/,
@@ -437,32 +299,33 @@ module.exports = {
         use: {
           loader: 'babel-loader',
           options: {
-            presets:['@babel/preset-env']
+            presets: ['@babel/preset-env']
           }
         }
       },
       {
         test: /\.css$/,
         use: [{
-            loader: MiniCssExtractPlugin.loader
-          },
+          loader: MiniCssExtractPlugin.loader
+        },
           'css-loader'
         ]
       },
       {
         test: /\.less$/,
-        use : [
+        use: [
           MiniCssExtractPlugin.loader,
           { loader: "css-loader" },
           { loader: "less-loader" }
-      ]},
-      { 
+        ]
+      },
+      {
         test: /\.(png|jpg|jpeg|gif|svg)$/,
         use: {
           loader: 'file-loader',
           options: {
             outputPath: 'images/', // 图片输出的路径和存储路径保持一致
-            limit: 10000,
+            limit: 15000,
             name: '[name].[ext]'
           }
         }
@@ -474,7 +337,9 @@ module.exports = {
   devServer: {
     contentBase: "./dist", //静态文件根目录
     proxy: {
-      '*': proxyHost
+      '/sys': proxyHost,
+      '/lantone': "http://114.55.109.16:81",
+      '/kl': proxyHost,
     },
     hot: true,
     // openPage:'index.html?age=28&tipsName=血常规&tipsType=12&diseaseId=280&lisJson=&diagJson=急性胰腺炎&diseaseName=糖尿病&pastJson=无心脏病&otherJson=无高血压&pacsJson=腹部B超:无异常,%20报告日期:2019-05-07&sex=男&symptomJson=恶心呕吐腰痛&vitalJson=血压左上肢13/12mmHg&hospitalCode=A001',