ソースを参照

删除遗留冗余文件

zhouna 4 年 前
コミット
6dbd7a43af

+ 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;
-    }
-}

+ 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;
-}

+ 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>

ファイルの差分が大きいため隠しています
+ 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


ファイルの差分が大きいため隠しています
+ 0 - 67
src/html/staticSearch.html


ファイルの差分が大きいため隠しています
+ 0 - 47
src/html/treatplan.html


+ 1 - 1
src/js/cdss.js

@@ -11,7 +11,7 @@ require('./../css/cdss.less');
 require('./../css/popup.css');
 require('./../css/followUpV.less');
 require('./../css/staticSearch.css')
-require('./../js/staticSearch.js')
+//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, '')

+ 2 - 2
src/js/cdssHorizontal.js

@@ -11,7 +11,7 @@ require('./../css/reset.css');
 require('./../css/cdssHorizontal.less');
 require('./../css/popup.css');
 require('./../css/staticSearch.css')
-require('./../js/staticSearch.js')
+//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, '')
@@ -514,7 +514,7 @@ function renderPushWarning() {
       moreInfo()
       const hasTipsNum = $(".moduleItem.tips").length;
       if (hasTipsNum) {
-        let tipsHei = $(".tips-cont")[0].scrollHeight;
+        let tipsHei = $(".tips-cont .moduleBox")[0].scrollHeight;
         if (tipsHei > 81) {
           $(".tips-cont").append(`<span class="showMoreNewPage">更多</span>`)
           tipsMsg = result

+ 1 - 1
src/js/cdssPlan.js

@@ -11,7 +11,7 @@ require('./../css/cdssPlan.less');
 require('./../css/popup.css');
 require('./../css/followUpV.less');
 require('./../css/staticSearch.css')
-require('./../js/staticSearch.js')
+//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, '')

+ 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']}))
-}

ファイルの差分が大きいため隠しています
+ 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
-}

ファイルの差分が大きいため隠しています
+ 0 - 129
src/js/treatplan.js


+ 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')

+ 7 - 145
webpack.config.js

@@ -4,30 +4,23 @@ const CleanWebpackPlugin = require('clean-webpack-plugin') // 清空打包目录
 const MiniCssExtractPlugin = require('mini-css-extract-plugin');
 const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
 const webpack = require('webpack');
-const proxyHost = "http://192.168.2.236:6060";
+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'),
@@ -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', 'informationOut.html'),
-      filename: 'informationOut.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'),