فهرست منبع

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

# Conflicts:
#	src/css/staticInfoOut.less
zhouna 4 سال پیش
والد
کامیت
6972d3a107

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

+ 364 - 130
src/css/informationOut.less

@@ -1,19 +1,19 @@
-* {
-    margin: 0;
-    padding: 0;
-  }
-
+@import './common.less';
   ul,
   li {
     list-style: none;
   }
 
+div,li,span,i,p,h1,h2,h3,h4,h5,pre{
+  font-family: '微软雅黑', '宋体';
+}
   table {
     border-collapse: collapse;
     border-spacing: 0;
   }
 
   body {
+    /*min-width: 650px;*/
     font-size: 14px;
     overflow-y: hidden;
     font-family: '微软雅黑', '宋体';
@@ -24,18 +24,22 @@
   }
 
   h1 {
-    margin: 0 0px 5px 0px !important;
+    margin: 0 0px 15px 0px !important;
     font-size: 18px !important;
     /*line-height: 37px;*/
     padding: 0 0 0 40px;
   }
 
   .titleH2 {
-    font-size: 16px;
+    font-size: 18px;
     position: relative;
+    height: 18px;
+    line-height: 17px;
     background: #fff;
     padding-right: 6px;
-    /*line-height: 30px;*/
+    padding-left: 15px;
+    font-weight: bold;
+    border-left: 4px solid @staticMainColor;
   }
 
   .content {
@@ -43,9 +47,11 @@
     height: 550px;
   }
   .infoBox {
-    border-left: 1px solid #969C9F;
-    padding: 0 0 0 33px;
-    margin: 0 0 4px 0;
+    .contentWrapper{
+      pre{
+        margin: 0 0 6px;
+      }
+    }
   }
   .infoWrapper {
     padding: 0 0 0 40px;
@@ -72,13 +78,21 @@
   .infos {
     height: 100%;
     overflow-y: auto;
-    padding: 0 60px 0 0;
+    /*padding: 0 60px 0 0;*/
+    width: calc(100% - 195px);
   }
 
   .infos>div {
-    margin-right: 160px;
+    margin-right: 6.5%;
+    .contentWrapper img{
+      max-width: 100%;
+    }
   }
 
+.infoBox {
+  border-bottom: 1px #E6E6E6 solid;
+  margin-bottom: 10px;
+}
   .title {
     position: relative;
     line-height: 24px;
@@ -118,84 +132,102 @@
         }
     }
   }
-  .anchors {
-    width: 200px;
-    position: absolute;
-    right:15px;
-    top: 0;
-    margin-right: 14px;
-    overflow: auto;
-    height: 100%;
-  }
-
-  .anchors ul {
-    padding: 15px 0px 15px 20px;
-    border-radius: 4px;
-    border: 1px solid #F5F6F7;
-    background-color: #F5F6F7;
-    line-height: 19px;
-  }
-
-  .anchors li {
-    position: relative;
-    border-left: 2px solid #E0E2E3;
-  }
-
-  .anchors .anchor-line {
-    height: 20px;
-    width: 0;
-    border-left: 2px solid #E0E2E3;
-  }
+.anchors {
+  width: 155px;
+  position: absolute;
+  right:15px;
+  top: 0;
+  margin-right: 14px;
+  overflow-y: auto;
+  background-color: #EDFAFF;
+  padding: 20px 0;
+  height: calc(100% - 50px);
+  overflow-x: hidden;
+}
 
-  .anchors .anchor-line:last-child {
-    display: none;
-  }
+.anchors ul {
+  margin-left: 21px;
+  padding: 15px 0px 15px 10px;
+  border-radius: 4px;
+  border: 1px solid #EDFAFF;
+  /*background-color: #EDFAFF;*/
+  line-height: 19px;
+}
 
-  .anchors i {
-    position: absolute;
-    display: inline-block;
-    width: 8px;
-    height: 8px;
-    border-radius: 5px;
-    border: 1px solid #E0E2E3;
-    background-color: #E0E2E3;
-    left: -6px;
-    top: 5px;
-  }
+.anchors li {
+  position: relative;
+  border-left: 1px solid #8DD1EE;
+}
+.anchors li:first-child {
+  padding-top:20px
+}
 
-  .anchors a {
-    display: inline-block;
-    position: relative;
-    top: 0;
-    left: 0;
-    width: 132px;
-    padding: 0 0px 0 20px;
-    text-decoration: none;
-    font-size: 14px;
-    font-weight: 400;
-    color: #777;
-    word-wrap: break-word;
-  }
+.anchors .anchor-line {
+  height: 20px;
+  width: 0;
+  border-left: 1px solid #8DD1EE;
+}
 
-  .anchors .active a {
-    color: #3B9ED0 !important;
-    font-weight: 700 !important;
-  }
+.anchors .a-circle{
+  border:2px #8DD1EE solid;
+  width: 10px;
+  height: 10px;
+  background: #fff;
+  border-radius: 16px;
+  position: absolute;
+  top: 28px;
+  left: 25px;
+  z-index: 1;
+}
+.anchors .a-circle:last-child{
+  position: unset;
+  margin-left: 25px;
+  margin-top: -16px;
+}
+.anchors i {
+  position: absolute;
+  display: inline-block;
+  width: 10px;
+  height: 10px;
+  border-radius: 5px;
+  border: 1px solid @staticMainColor;
+  background-color: @staticMainColor;
+  left: -7px;
+  top: 8px;
+  z-index: 1;
+}
+.anchors li:first-child i{
+  top:29px;
+}
+.anchors a {
+  display: inline-block;
+  position: relative;
+  top: 4px;
+  left: 0;
+  width: 90px;
+  padding: 0 0px 0 20px;
+  text-decoration: none;
+  font-size: 14px;
+  font-weight: 400;
+  word-wrap: break-word;
+}
 
-  .anchors .active i {
-    width: 16px;
-    height: 16px;
-    top: 1px;
-    left: -8px;
-    border-radius: 0;
-    border: none;
-    background-color: #F5F6F7;
-    background: url('../images/icon_current.png') center center no-repeat;
-  }
+.anchors .active a {
+  /*color: #3B9ED0 !important;
+  font-weight: 700 !important;*/
+}
 
-  a:visited {
-    color: #777;
-  }
+.anchors .active i {
+  width: 18px;
+  height: 9px;
+  top: 6px;
+  left: -10px;
+  border-radius: 0;
+  border: none;
+  background-color: #F5F6F7;
+  background: url('../images/icon_current.svg') center center no-repeat;
+  background-size: cover;
+}
   .disCopy {
     -webkit-touch-callout: none;
     -webkit-user-select: none;
@@ -207,43 +239,31 @@
   .tabBox{
     position: relative;
     background: #fff;
-    height: 38px;
-    border-bottom: 1px solid #E6E6E6;
-    padding: 0 40px;
+    padding: 0 40px 0;
   }
   .showWhich {
-    width: 94px;
+    width: 187px;
     text-align: center;
-    padding-top: 16px;
-    position: absolute;
-    z-index: 20;
-    bottom: -6px;
-    img {
-      width: 8px;
-      position: absolute;
-      top: 29px;
-      left: 76px;
-    }
+    padding: 20px 0 10px;
+    position: relative;
     .showWhichSelect {
-      border-radius: 4px 4px 0px 0px;;
-      background: #E2F1F8;
-      height: 30px;
-      line-height: 30px;
       display: inline-block;
+      color: @staticMainColor;
+      background: url("../images/d1.png") 200px 9px #EAFCFF no-repeat;
+      font-size: 16px;
+      padding:1px 24px 2px 10px;
       width: 100%;
-      padding-right: 20px;
-      padding-left: 10px;
-      box-sizing: border-box;
       cursor: pointer;
+      text-align: left;
     }
     ul {
       display: none;
       position: absolute;
-      left: -9px;
-      top: 48px;
+      left: 0;
+      top: 52px;
       z-index: 10;
       background-color: #fff;
-      width: 110px;
+      width: 220px;
       box-shadow: 0px 6px 16px 0px rgba(0, 0, 0, 0.18);
       border-radius: 4px;
       border: 1px solid #E6E6E6;
@@ -261,25 +281,35 @@
       }
     }
   }
-  .tabList{
-    position: absolute;
-    bottom: 0;
-    left: 186px;
-  }
-  .tab{
-    display: inline-block;
-    padding: 4px 18px 5px;
-    margin-right: 5px;
-    background: #EEEEEE;
-    border-radius:6px 6px 0px 0px;
-    cursor: pointer;
-    font-size: 14px;
-    color: #333;
-  }
-  .activeTab{
-    background: #3B9ED0;
-    color: #fff;
+  .titleCont{
+    background: #fff;
+    padding-left: 35px;
+    /*padding-bottom: 20px;*/
   }
+.titleCont .title{
+  font-size: 20px;
+  font-weight: bold;
+  margin-right: 33px;
+}
+.tabList{
+  display: inline-block;
+}
+.tab{
+  display: inline-block;
+  padding: 0 5px;
+  margin-right: 20px;
+  background: #fff;
+  border-radius:2px;
+  cursor: pointer;
+  font-size: 11px;
+  color: #2A9BD5;
+  border:1px #2A9BD5 solid;
+  vertical-align: text-bottom;
+}
+.activeTab{
+  background: #2A9BD5;
+  color: #fff;
+}
   .ql-align-right{
     text-align: right;
   }
@@ -294,7 +324,7 @@
 }
 .empty{
   text-align: center;
-  margin-top: 32vh;
+  padding-top: 32vh;
   img{
     width: 140px;
     height: 75px;
@@ -307,12 +337,216 @@
 }
 .open-win{
   position: absolute;
-  right: 15px;
-  bottom: 8px;
+  right: 38px;
+  bottom: 28px;
   cursor: pointer;
   color: #3B9ED0;
   font-size: 14px;
   padding-left: 30px;
   background: url("../images/link.png") 0 -2px no-repeat;
   background-size: 25px 25px;
+}
+.footer{
+  width: 100%;
+  height: 52px;
+  background: #172238;
+  padding-top: 8px;
+  position: absolute;
+  bottom: 0;
+  z-index: 1;
+  p{
+    color:#fff;
+    text-align: center;
+    font-size: 12px;
+    white-space: nowrap;
+  }
+}
+
+.infos::-webkit-scrollbar, .anchors::-webkit-scrollbar {
+  /*滚动条整体样式*/
+  width: 6px;
+  height: 100px;
+  /*高宽分别对应横竖滚动条的尺寸*/
+  background: #ebeef5;
+  -webkit-box-shadow: inset 1px 0 1px rgba(0, 0, 0, 0.2);
+}
+
+.infos::-webkit-scrollbar-thumb, .anchors::-webkit-scrollbar-thumb {
+  /*滚动条里面小方块*/
+  width: 6px;
+  border-radius: 5px;
+  background: @staticMainColor;
+  height: 100px;
+}
+
+.infos::-webkit-scrollbar-track, .anchors::-webkit-scrollbar-track {
+  /*滚动条里面轨道*/
+  border-radius: 2px;
+  background: #f0f2f5;
+  opacity: .2;
+}
+
+.scaletitle{
+  font-size: 20px;
+  font-weight: 500;
+  color: #333333;
+  line-height: 28px;
+  margin: 30px 0 8px 0;
+  text-align: center;
+}
+.scaleBox{
+  border-bottom: none;
+}
+.contentList{
+  max-width: 100%;
+  border-bottom: 1PX solid #F3F3F3;
+  margin-bottom: 6px;
+  .item-list{
+    padding: 0 21px;
+    .item-title{
+      font-size: 14px;
+      font-weight: 400;
+      color: #333333;
+      line-height: 20px;
+      margin-top: 14px;
+    }
+    .item-content{
+      margin: 10px 0;
+      display: flex;
+      flex-flow: wrap;
+      .radio {
+        display: flex;
+        margin: 5px;
+        margin-right: 25px;
+        label{
+          display: flex;
+          align-items: center;
+          font-weight: 400;
+          color: #666666;
+          line-height: 20px;
+          & input{
+            margin-right: 6px;
+          }
+          .num{
+            margin-left: 10px;
+          }
+        }
+        .recommend{
+          width: 18px;
+          height: 18px;
+        }
+      } 
+    }
+  }
+}
+.scalebot{
+  display: flex;
+  align-items: center;
+  justify-content: flex-end;
+  margin-bottom: 44px;
+  .but{
+    width: 94px;
+    height: 34px;
+    background: #FFFFFF;
+    border-radius: 8px;
+    border: 1px solid #2A9BD5;
+    font-size: 16px;
+    font-weight: 400;
+    color: #2A9BD5;
+  }
+  .score{
+    font-size: 16px;
+    font-weight: 400;
+    color: #333333;
+    margin-right: 30px;
+    display: none;
+  }
+}
+.result{
+  background: #EDFAFF;
+  border-radius: 10px;
+  font-size: 14px;
+  font-weight: 500;
+  color: #333333;
+  display: none;
+  margin: 0 6.5%;
+  .result_box{
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    padding: 20px;
+    .hel{
+      width: 21px;
+      height: 21px;
+      background: #2C96E5;
+      border-radius: 50%;
+      display: flex;
+      align-items: center;
+      justify-content: center;
+      color: #fff;
+      margin-right: 9px;
+      font-size: 12px;
+    }
+  }
+  
+}
+.result_title{
+  max-width: 85%;
+}
+.foot{
+  margin-bottom: 20px;
+  margin-top: 40px;
+  display: none;
+  .foot_box{
+    display: flex;
+    justify-content: center;
+    .printing{
+      display: flex;
+      align-items: center;
+      justify-content: space-around;
+      width: 94px;
+      height: 32px;
+      background: #FFFFFF;
+      border-radius: 4px;
+      border: 1px solid #333333;
+      cursor: pointer;
+    }
+    .printing:hover{
+      background: #2C96E5;
+      color: #fff;
+      border:1px solid #2C96E5;
+    }
+    .copy{
+      width: 132px;
+      height: 32px;
+      background: #FFFFFF;
+      border-radius: 4px;
+      border: 1px solid #333333;
+      text-align: center;
+      line-height: 32px;
+      margin-left: 38px;
+      cursor: pointer;
+    }
+    .copy:hover{
+      background: #2C96E5;
+      color: #fff;
+      border:1px solid #2C96E5;
+    }
+  }
+  
+}
+#inputs{
+  position: absolute;top: 0;left: 0;opacity: 0;z-index: -10;
+}
+.scale{
+  .infos-box{
+    border: 1px solid #E6E6E6;
+    margin: 0 71px 20px 38px;
+    .infoWrapper {
+      padding: 0 75px;
+    }
+    .scalebot{
+      padding-right: 75px;
+    }
+  }
 }

+ 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 - 541
src/css/staticInfoOut.less

@@ -1,541 +0,0 @@
-@import './common.less';
-  ul,
-  li {
-    list-style: none;
-  }
-
-div,li,span,i,p,h1,h2,h3,h4,h5,pre{
-  font-family: '微软雅黑', '宋体';
-}
-  table {
-    border-collapse: collapse;
-    border-spacing: 0;
-  }
-
-  body {
-    /*min-width: 650px;*/
-    font-size: 14px;
-    overflow-y: hidden;
-    font-family: '微软雅黑', '宋体';
-    background: #dde2ea;
-    height: 100%;
-    color: #1E1E1E;
-    line-height: 21px;
-  }
-
-  h1 {
-    margin: 0 0px 15px 0px !important;
-    font-size: 18px !important;
-    /*line-height: 37px;*/
-    padding: 0 0 0 40px;
-  }
-
-  .titleH2 {
-    font-size: 18px;
-    position: relative;
-    background: #fff;
-    padding-right: 6px;
-    padding-left: 15px;
-    font-weight: bold;
-    border-left: 4px solid @staticMainColor;
-  }
-
-  .content {
-    position: relative;
-    height: 550px;
-  }
-  .infoBox {
-  }
-  .infoWrapper {
-    padding: 0 0 0 40px;
-  }
-  .circleBox {
-    position: absolute;
-    z-index: 10;
-    background: #fff;
-    left: -38px;
-    height: 32px;
-    top: -1px;
-  }
-  .circle {
-    display: inline-block;
-    *display:inline;
-    *zoom:1;
-    width: 10px;
-    height: 10px;
-    border-radius: 50%;
-    background: #3B9ED0;
-    position: relative;
-    top: 2px;
-  }
-  .infos {
-    height: 100%;
-    overflow-y: auto;
-    /*padding: 0 60px 0 0;*/
-    width: calc(100% - 250px);
-  }
-
-  .infos>div {
-    margin-right: 6.5%;
-    .contentWrapper img{
-      max-width: 100%;
-    }
-  }
-
-.infoBox {
-  border-bottom: 1px #E6E6E6 solid;
-  margin-bottom: 10px;
-}
-  .title {
-    position: relative;
-    line-height: 24px;
-    
-    margin: 0 0 4px;
-  }
-
-  .line {
-    border-bottom: 1px dashed #ccc;
-  }
-
-  .container {
-    width:100%;
-    overflow: hidden;
-    background: #fff;
-    margin: 0 auto;
-    padding: 8px 0 0px 0px;
-    display: none;
-    position: relative;
-    left: 0;
-    right: 0;
-  }
-
-  pre {
-    white-space: pre-wrap;
-    word-wrap: break-word;
-    color: #1E1E1E;
-    ol li {
-        list-style: decimal;
-        list-style-position:inside;
-    }
-    ul {
-        padding-left: 20px;
-        li {
-            list-style-position:inside;
-            list-style: inside;
-        }
-    }
-  }
-.anchors {
-  width: 210px;
-  position: absolute;
-  right:15px;
-  top: 0;
-  margin-right: 14px;
-  overflow-y: auto;
-  background-color: #EDFAFF;
-  padding: 25px 0;
-  height: calc(100% - 50px);
-  overflow-x: hidden;
-}
-
-.anchors ul {
-  margin-left: 30px;
-  padding: 15px 0px 15px 20px;
-  border-radius: 4px;
-  border: 1px solid #EDFAFF;
-  /*background-color: #EDFAFF;*/
-  line-height: 19px;
-}
-
-.anchors li {
-  position: relative;
-  border-left: 1px solid #8DD1EE;
-}
-.anchors li:first-child {
-  padding-top:30px
-}
-
-.anchors .anchor-line {
-  height: 30px;
-  width: 0;
-  border-left: 1px solid #8DD1EE;
-}
-
-.anchors .a-circle{
-  border:2px #8DD1EE solid;
-  width: 16px;
-  height: 16px;
-  background: #fff;
-  border-radius: 16px;
-  position: absolute;
-  left: 41px;
-  z-index: 1;
-}
-.anchors .a-circle:last-child{
-  position: unset;
-  margin-left: 41px;
-  margin-top: -16px;
-}
-.anchors i {
-  position: absolute;
-  display: inline-block;
-  width: 16px;
-  height: 16px;
-  border-radius: 8px;
-  border: 1px solid @staticMainColor;
-  background-color: @staticMainColor;
-  left: -10px;
-  top: 5px;
-  z-index: 1;
-}
-.anchors li:first-child i{
-  top:35px;
-}
-.anchors a {
-  display: inline-block;
-  position: relative;
-  top: 4px;
-  left: 0;
-  width: 126px;
-  padding: 0 0px 0 20px;
-  text-decoration: none;
-  font-size: 16px;
-  font-weight: 400;
-  word-wrap: break-word;
-}
-
-.anchors .active a {
-  /*color: #3B9ED0 !important;
-  font-weight: 700 !important;*/
-}
-
-.anchors .active i {
-  width: 26px;
-  height: 16px;
-  top: 6px;
-  left: -14px;
-  border-radius: 0;
-  border: none;
-  background-color: #F5F6F7;
-  background: url('../images/icon_current.svg') center center no-repeat;
-}
-  .disCopy {
-    -webkit-touch-callout: none;
-    -webkit-user-select: none;
-    -khtml-user-select: none;
-    -moz-user-select: none;
-    -ms-user-select: none;
-    user-select: none;
-  }
-  .tabBox{
-    position: relative;
-    background: #fff;
-    padding: 0 40px 0;
-  }
-  .showWhich {
-    width: 187px;
-    text-align: center;
-    padding: 30px 0 20px;
-    position: relative;
-    .showWhichSelect {
-      display: inline-block;
-      color: @staticMainColor;
-      background: url("../images/d1.png") 200px 9px #EAFCFF no-repeat;
-      font-size: 16px;
-      padding:1px 24px 2px 9px;
-      width: 100%;
-      cursor: pointer;
-    }
-    ul {
-      display: none;
-      position: absolute;
-      left: 0;
-      top: 52px;
-      z-index: 10;
-      background-color: #fff;
-      width: 220px;
-      box-shadow: 0px 6px 16px 0px rgba(0, 0, 0, 0.18);
-      border-radius: 4px;
-      border: 1px solid #E6E6E6;
-      li {
-        height: 35px;
-        line-height: 35px;
-        white-space: nowrap;/*强制在一行显示*/
-        text-overflow:ellipsis;/*设置超出内容显示...*/
-        overflow: hidden;/*一定不能少 超出的内容进行隐藏*/
-        padding:0 20px;
-        cursor: pointer;
-        &:hover {
-          background-color: #E2F1F8;
-        }
-      }
-    }
-  }
-  .titleCont{
-    background: #fff;
-    padding-left: 39px;
-    padding-bottom: 20px;
-  }
-.titleCont .title{
-  font-size: 20px;
-  font-weight: bold;
-  margin-right: 23px;
-}
-.tabList{
-  display: inline-block;
-}
-.tab{
-  display: inline-block;
-  padding: 0 5px;
-  margin-right: 20px;
-  background: #fff;
-  border-radius:2px;
-  cursor: pointer;
-  font-size: 11px;
-  color: #2A9BD5;
-  border:1px #2A9BD5 solid;
-  vertical-align: text-bottom;
-}
-.activeTab{
-  background: #2A9BD5;
-  color: #fff;
-}
-  .ql-align-right{
-    text-align: right;
-  }
-  .ql-align-center{
-    text-align: center;
-  }
-  
-.ellipsis{
-  white-space: nowrap;/*强制在一行显示*/
-  text-overflow:ellipsis;/*设置超出内容显示...*/
-  overflow: hidden;/*一定不能少 超出的内容进行隐藏*/
-}
-.empty{
-  text-align: center;
-  padding-top: 32vh;
-  img{
-    width: 140px;
-    height: 75px;
-  }
-  p{
-    margin-top: 10px;
-    font-size: 15px;
-    color: #aaa;
-  }
-}
-.open-win{
-  position: absolute;
-  right: 38px;
-  bottom: 28px;
-  cursor: pointer;
-  color: #3B9ED0;
-  font-size: 14px;
-  padding-left: 30px;
-  background: url("../images/link.png") 0 -2px no-repeat;
-  background-size: 25px 25px;
-}
-.footer{
-  width: 100%;
-  height: 52px;
-  background: #172238;
-  padding-top: 8px;
-  position: absolute;
-  bottom: 0;
-  z-index: 1;
-  p{
-    color:#fff;
-    text-align: center;
-    font-size: 12px;
-    white-space: nowrap;
-  }
-}
-
-.infos::-webkit-scrollbar, .anchors::-webkit-scrollbar {
-  /*滚动条整体样式*/
-  width: 6px;
-  height: 100px;
-  /*高宽分别对应横竖滚动条的尺寸*/
-  background: #ebeef5;
-  -webkit-box-shadow: inset 1px 0 1px rgba(0, 0, 0, 0.2);
-}
-
-.infos::-webkit-scrollbar-thumb, .anchors::-webkit-scrollbar-thumb {
-  /*滚动条里面小方块*/
-  width: 6px;
-  border-radius: 5px;
-  background: @staticMainColor;
-  height: 100px;
-}
-
-.infos::-webkit-scrollbar-track, .anchors::-webkit-scrollbar-track {
-  /*滚动条里面轨道*/
-  border-radius: 2px;
-  background: #f0f2f5;
-  opacity: .2;
-}
-
-.scaletitle{
-  font-size: 20px;
-  font-weight: 500;
-  color: #333333;
-  line-height: 28px;
-  margin: 30px 0 8px 0;
-  text-align: center;
-}
-.scaleBox{
-  border-bottom: none;
-}
-.contentList{
-  max-width: 100%;
-  border-bottom: 1PX solid #F3F3F3;
-  margin-bottom: 6px;
-  .item-list{
-    padding: 0 21px;
-    .item-title{
-      font-size: 14px;
-      font-weight: 400;
-      color: #333333;
-      line-height: 20px;
-      margin-top: 14px;
-    }
-    .item-content{
-      margin: 10px 0;
-      display: flex;
-      flex-flow: wrap;
-      .radio {
-        display: flex;
-        margin: 5px;
-        margin-right: 25px;
-        label{
-          display: flex;
-          align-items: center;
-          font-weight: 400;
-          color: #666666;
-          line-height: 20px;
-          & input{
-            margin-right: 6px;
-          }
-          .num{
-            margin-left: 10px;
-          }
-        }
-        .recommend{
-          width: 18px;
-          height: 18px;
-        }
-      } 
-    }
-  }
-}
-.scalebot{
-  display: flex;
-  align-items: center;
-  justify-content: flex-end;
-  margin-bottom: 44px;
-  .but{
-    width: 94px;
-    height: 34px;
-    background: #FFFFFF;
-    border-radius: 8px;
-    border: 1px solid #2A9BD5;
-    font-size: 16px;
-    font-weight: 400;
-    color: #2A9BD5;
-  }
-  .score{
-    font-size: 16px;
-    font-weight: 400;
-    color: #333333;
-    margin-right: 30px;
-    display: none;
-  }
-}
-.result{
-  background: #EDFAFF;
-  border-radius: 10px;
-  font-size: 14px;
-  font-weight: 500;
-  color: #333333;
-  display: none;
-  margin: 0 6.5%;
-  .result_box{
-    display: flex;
-    justify-content: center;
-    padding: 25px 56px;
-    .hel{
-      width: 21px;
-      height: 21px;
-      background: #2C96E5;
-      border-radius: 50%;
-      display: flex;
-      align-items: center;
-      justify-content: center;
-      color: #fff;
-      margin-right: 9px;
-      font-size: 12px;
-    }
-  }
-  
-}
-.result_title{
-  max-width: 85%;
-}
-.foot{
-  margin-bottom: 20px;
-  margin-top: 40px;
-  display: none;
-  .foot_box{
-    display: flex;
-    justify-content: center;
-    .printing{
-      display: flex;
-      align-items: center;
-      justify-content: space-around;
-      width: 94px;
-      height: 32px;
-      background: #FFFFFF;
-      border-radius: 4px;
-      border: 1px solid #333333;
-      cursor: pointer;
-    }
-    .printing:hover{
-      background: #2C96E5;
-      color: #fff;
-      border:1px solid #2C96E5;
-    }
-    .copy{
-      width: 132px;
-      height: 32px;
-      background: #FFFFFF;
-      border-radius: 4px;
-      border: 1px solid #333333;
-      text-align: center;
-      line-height: 32px;
-      margin-left: 38px;
-      cursor: pointer;
-    }
-    .copy:hover{
-      background: #2C96E5;
-      color: #fff;
-      border:1px solid #2C96E5;
-    }
-  }
-  
-}
-#inputs{
-  position: absolute;top: 0;left: 0;opacity: 0;z-index: -10;
-}
-.scale{
-  .infos-box{
-    border: 1px solid #E6E6E6;
-    margin: 0 71px 20px 38px;
-    .infoWrapper {
-      padding: 0 75px;
-    }
-    .scalebot{
-      padding-right: 75px;
-    }
-  }
-}

+ 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


+ 28 - 16
src/html/informationOut.html

@@ -18,49 +18,61 @@
   <div class="tabBox">
     <div class="showWhich">
       <span class="showWhichSelect ellipsis" title=""></span>
-      <img src="../images/d.png" alt="">
-      <ul>
-        
-      </ul>
-    </div>
-    <div class="tabList">
-     
+      <!--<img src="../images/d1.png" alt="">-->
+      <ul></ul>
     </div>
     <a id="openWin" class="open-win">网页查看</a>
   </div>
-  
+  <div class="titleCont">
+      <span class="title"></span>
+      <div class="tabList"></div>
+  </div>
   <div class=" container disCopy staticKnowledge">
-    <h1></h1>
     <div class="content">
         <div class="infos"></div>
         <div class="anchors">
+          <div class="a-circle"></div>
           <ul></ul>
+          <div class="a-circle"></div>
         </div>
-        
     </div>
   </div>
   <div class=" container disCopy clinicalPathway">
-    <h1></h1>
     <div class="content">
         <div class="infos"></div>
         <div class="anchors">
+            <div class="a-circle"></div>
           <ul></ul>
+            <div class="a-circle"></div>
         </div>
-
-      
     </div>
   </div>
   <div class=" container disCopy notice">
-    <h1></h1>
     <div class="content">
         <div class="infos"></div>
         <div class="anchors">
+            <div class="a-circle"></div>
           <ul></ul>
+            <div class="a-circle"></div>
         </div>
-
-      
     </div>
   </div>
+  <div class=" container disCopy scale">
+    <div class="content">
+      <div class="infos" id="Print">
+        <div class="infos-box"></div>
+      </div>
+      <div class="anchors">
+        <div class="a-circle"></div>
+        <ul></ul>
+        <div class="a-circle"></div>
+      </div>
+    </div>
+  </div>
+<div class="footer">
+    <p>免责声明:本知识库提供的医学静态知识仅供医生学习参考。</p>
+    <p>版权所有:杭州朗通信息技术有限公司      浙ICP备:16000400号-2</p>
+</div>
 </body>
 
 </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
-}

+ 280 - 33
src/js/informationOut.js

@@ -16,8 +16,18 @@ const {
   openNewWin
 } = require('./promise.js');
 const $ = require("jquery");
-let showName,noticeName,clinicalPathwayName,showLis=[]
+require("./jquery-migrate");
+const jqprint = require("../js/jquery.PrintArea")
+let printing = require('./../images/printing.png');
+let printing2 = require('./../images/printing2.png');
+let showName,noticeName,clinicalPathwayName,showLis=[],selectedDrop=0,selectedTab=0
 
+//如果是子窗口,隐藏网页查看按钮
+if(window.opener){
+    selectedDrop=getUrlArgObject("d")||0;
+    selectedTab=getUrlArgObject("t")||0;
+    $("#openWin,.footer").hide();
+}
 let icond = require('./../images/d.png').replace(/^undefined/g, '')
 function getInfomation() {
   // var param = {
@@ -33,8 +43,7 @@ function getInfomation() {
     "hisDetailName": getUrlArgObject('hisDetailName'),
     "contentTypes":[1,2,3]
   };
-  const uname = getUrlArgObject('uname')
-  // showName = param.name
+  //showName = param.hisName;
   // if (param.type == 5 || param.type == 51) {
   //   param.type = 12;
   //   param.name = uname;
@@ -45,6 +54,7 @@ function getInfomation() {
       const data = res.data.data
       var str = '';
       var anchors = '';
+      let sName ='';
       if (!data||data.length===0) {
         showEmpty();
         return;
@@ -52,14 +62,15 @@ function getInfomation() {
       showLis=data
       for(let i = 0;i < showLis.length;i++){
         let tmp = showLis[i]
-        str+=`<li data-idx="${i}" title="${tmp.name}">${tmp.name}</li>`
+        str+=`<li data-idx="${i}" title="${tmp.name}(${tmp.hisName})">${tmp.name}(${tmp.hisName})</li>`
       }
-      $(".showWhich ul").html(str)
-      $(".showWhichSelect").html(showLis[0].name).attr("title",showLis[0].name)
-      showName = data[0].name
-      document.title = showName
+      $(".showWhich ul").html(str);
+        sName=showLis[selectedDrop].name+"("+showLis[selectedDrop].hisName+")";
+      $(".showWhichSelect").html(sName).attr("title",sName)
+      showName = data[selectedDrop].name+"("+data[selectedDrop].hisName+")";
       showInfoSelect()
-      showInfo(data[0])
+      showInfo(data[selectedDrop])
+        renderTitleShow();
       $('.content img').bind('contextmenu', function(){
         return false
       })
@@ -72,31 +83,38 @@ getInfomation();
 function showEmpty(){
   const str=`<div class="empty"><img src="../images/empty3.png" alt=""><p>暂无静态知识</p></div>`;
   $(".tabBox").html(str).css("border-bottom","none");
+  $("body").css('background','#fff');
 }
 function showInfo(data){
   var detailList = data.details
+  var scale = data.scale
   var staticKnowList = detailList['静态知识']
   var noticeInfo = detailList['注意事项']
   var clinicalPathwayInfo = detailList['临床路径']
+  var name = data.name
   noticeName = data.noticeName || "注意事项"
   clinicalPathwayName = data.clinicalPathwayName || "临床路径"
+  var scaleInfo = data.scale ? data.scale.scaleDetails : ''
   // $("h1").css({
   //   "color": "#267FD7",
   //   "borderBottom": "4px solid  #E9E9E9",
   //   "padding": "0px 60px 50px 0px"
   // });
-  renderTab(detailList)
+  renderTab(detailList, scale)
   staticKnowList&&renderContent(staticKnowList,'staticKnowledge')
   noticeInfo&&renderContent(noticeInfo,'notice')
   clinicalPathwayInfo&&renderContent(clinicalPathwayInfo,'clinicalPathway')
+  scaleInfo && renderContentscale(scaleInfo, 'scale', name)
 }
 function showInfoSelect(){
   $('.showWhich li').click(function(){
     let idx = $(this).attr('data-idx')
     let name = $(this).html(),str=''
-    showName = showLis[idx].name
-    document.title = showName
+    selectedDrop=idx;
+    selectedTab=0;
+    showName = showLis[idx].name+"("+showLis[idx].hisName+")";
     showInfo(showLis[idx])
+    renderTitleShow();
     $('.content .infos').scrollTop(0)
     $(".showWhich ul").css("display","none")
     $(".showWhichSelect").html(name).attr("title",name)
@@ -109,6 +127,10 @@ function showInfoSelect(){
     $(".showWhich ul").css("display","none")
   })
 }
+function renderTitleShow(){
+    document.title = showName;
+    $(".titleCont .title").html($(".tabList .tab:eq("+selectedTab+")").attr("data-title"));
+}
 function renderContent(list, contentWrapClassName){
   $(`.${contentWrapClassName} .infos`).html('');
   $(`.${contentWrapClassName} .anchors ul`).html('');
@@ -117,7 +139,7 @@ function renderContent(list, contentWrapClassName){
         item.content = item.content&&item.content.replace(/{imageUrlPrefix}/g, imageUrlPrefix);
         anchors = '<li><i></i><a href="#' + contentWrapClassName+i +
           '">' + item.title + '</a></li><li class="anchor-line"></li>';
-        str = '<div class="infoBox"><div class="title"> <div class= "circleBox"><span class="circle"> </span></div> <h2 class="titleH2" id="' + contentWrapClassName+i +
+        str = '<div class="infoBox"><div class="title"> <h2 class="titleH2" id="' + contentWrapClassName+i +
           '">'
         if (getUrlArgObject('type') == 8) {
           str += '【' + item.title + '】'
@@ -150,7 +172,229 @@ function renderContent(list, contentWrapClassName){
     adjustWidth()
 }
 
+function renderContentscale(list, contentWrapClassName, name) {
+  var pushInfo = []
+  anchors = '<li><i></i><a href="#' + contentWrapClassName +
+    '">' + name + '</a></li><li class="anchor-line"></li>';
+  str = '<p class="scaletitle">' + name + '</p>'
+  $(`.${contentWrapClassName} .infos .infos-box`).append(str);
+  $(`.${contentWrapClassName} .anchors ul`).append(anchors);
+  for (var i = 0; i < list[0].detailList.length; i++) {
+    var item = list[0].detailList[i];
+    console.log(item)
+    if (item.textType == 11) {
+      item.content = item.content && item.content.replace(/{imageUrlPrefix}/g, imageUrlPrefix);
+      str = '<div class="infoBox scaleBox" data-id="' + item.id + '"><div class="title"> <h2 class="titleH2" id="' + contentWrapClassName + i +
+        '">'
+      str += item.content
+      str += '</h2></div>'
+      str = `<div class="infoWrapper">${str}</div>`
+      $(`.${contentWrapClassName} .infos .infos-box`).append(str);
+      for (var j = 0; j < item.subList.length; j++) {
+        var items = item.subList[j];
+        for (var k = 0; k < items.detailList.length; k++) {
+          var it = items.detailList[k];
+          it.content = it.content && it.content.replace(/{imageUrlPrefix}/g, imageUrlPrefix);
+          str = '<div class="contentList" data-id="' + it.parentId + '"><div class="item-list">';
+          if (it.selectType == 1) {
+            str += '<p class="item-title">' + it.content + '</p>'
+          } else if (it.selectType == 2) {
+            str += '<p class="item-titles">' + it.content + '</p>'
+          }
+
+          str += '<div class="item-content" data-id="' + it.id + '">'
+          str += '</div></div></div>'
+          $(".scale .infos .infos-box .infoWrapper .infoBox[data-id=" + it.parentId + "]").append(str);
+          for (var l = 0; l < it.subList[0].detailList.length; l++) {
+            var its = it.subList[0].detailList[l];
+            its.content = its.content && its.content.replace(/{imageUrlPrefix}/g, imageUrlPrefix);
+            str = '<div class="radio" name="scale' + its.parentId + '" value="' + its.score + '">';
+            if (it.selectType == 1 && item.resultType == 1) {
+              str += '<label><input class="radio_type" type="checkbox" name="scale' + its.parentId + '" value="' + its.score + '"/>'
+            } else if (it.selectType == 2 && item.resultType == 1) {
+              str += '<label><input class="radio_type" name="scale' + its.parentId + '" type="radio" value="' + its.score + '" />'
+            } else if (it.selectType == 1 && item.resultType == 2) {
+              str += '<label><input class="radio_type" name="scale' + its.parentId + '" type="checkbox" value="' + its.result + '" data_obj="' + its.result + '"/>'
+            } else if (it.selectType == 2 && item.resultType == 2) {
+              str += '<label><input class="radio_type" name="scale' + its.parentId + '" type="radio" value="' + its.result + '" data_obj="' + its.result + '"/>'
+            }
+            str += its.content
+            if (item.resultType == 1) {
+              str += '<span class="num">' + '(' + its.score + ')' + '</span>'
+            }
+            str += '</label>'
+            str += `${item.match ? `<img class="recommend" src=${recommend} />` : ``}</div>`
+            $(".scale .infos .infos-box .infoWrapper .infoBox[data-id=" + it.parentId + "] .contentList .item-content[data-id=" + its.parentId + "]").append(str);
+          }
+        }
+      }
+
+    }
+    if (item.textType == 13) {
+      for (var m = 0; m < item.subList[0].detailList[0].subList[0].detailList.length; m++) {
+        var itl = item.subList[0].detailList[0].subList[0].detailList[m]
+        let arr = {
+          content: JSON.parse(itl.content),
+          result: itl.result,
+          pushInfo: itl.pushInfo
+        }
+        pushInfo.push(arr)
+      }
+    }
+  }
+  str = '<div class="scalebot">'
+  str += '<p class="score"></p>'
+  str += '<button class="but">结果</button></div>'
+  str += '<div class="result"><div class="result_box"><p class="hel">?</p><span>结果:</span><p id="result_title" class="result_title"></p><textarea id="inputs"></textarea></div></div>'
+  str += `<div class="foot"><div class="foot_box"><div class="printing"><img src=${printing} class="slideImg"/>打印</div><div class="copy">确认并复制结果</div></div></div>`
+  $(`.${contentWrapClassName} .infos .infos-box`).append(str);
+  // str = `<div class="foot"><div class="foot_box"><div class="printing"><img src=${printing} class="slideImg"/>打印</div><div class="copy">确认并复制结果</div></div></div>`
+  // $(`.${contentWrapClassName} .infos`).after(str);
+  function addScrollEvent() {
+    var scrollTop = $(`.${contentWrapClassName} .infos .infos-box`).scrollTop()
+    var divHeight = 0;
+    for (var i = 0; i < list.length; i++) {
+      divHeight = divHeight + parseInt($('#' + contentWrapClassName + i).css('height')) + parseInt($('#' + contentWrapClassName + i).parent().next().css('height')) + 20
+      if (divHeight > scrollTop) {
+        var anchor = 2 * i;
+        $(`.${contentWrapClassName} .anchors ul`).children().eq(anchor).addClass('active').siblings().removeClass('active');
+        return;
+      }
+    }
+  }
+  $(`.${contentWrapClassName} .infos .infos-box`).scroll(throttle(addScrollEvent, 200));
+  addLinkClickEvent(contentWrapClassName);
+  adjustHeight();
+  adjustWidth()
+  getcheck()
+  getResult(pushInfo)
+  copy()
+  getprinting()
+}
+
+function getprinting() {
+  $('.printing').click(function () {
+    $('.foot').hide()
+    $('.hel').hide()
+    $('#Print').css({
+      'height': 'auto', //高度自动
+    }).jqprint();
+    $('.foot').show()
+    $('.hel').show()
 
+  })
+
+}
+
+function getcheck() {
+  $('input:radio').click(function () {
+    var domName = $(this).attr('name');
+    var $radio = $(this);
+    if ($radio.data('waschecked') == true) {
+      $radio.prop('checked', false);
+      $("input:radio[name='" + domName + "']").data('waschecked', false);
+    } else {
+      $radio.prop('checked', true);
+      $("input:radio[name='" + domName + "']").data('waschecked', false);
+      $radio.data('waschecked', true);
+    }
+    console.log("选中状态:", $(this).prop("checked"));
+    console.log($("input:radio[name='" + domName + "']:checked").val());
+  });
+}
+
+function copy() {
+  $(".copy").click(function () {
+    var texts = document.getElementById("result_title").innerText;
+    if (texts == '') {
+      return
+    }
+    var inputs = document.getElementById("inputs");
+    inputs.value = texts; // 修改文本框的内容(赋值内容)
+    inputs.select(); // 选中文本
+    document.execCommand("copy"); // 执行浏览器复制命令
+    Toast('复制成功', 500)
+    setTimeout(() => {
+      window.close()
+    }, 500)
+
+  })
+
+}
+
+function getResult(pushInfo) {
+  $(".but").click(function () {
+    let arr = [];
+    let num = 0
+    let result
+    let key = false
+    $(".contentList").each(function (i) {
+      if ($(this).find('input[type="radio"]:checked').val() == undefined) {
+        $(this).find(".item-titles").addClass('chColor');
+      } else {
+        $(this).find(".item-titles").removeClass('chColor');
+      }
+      if ($(this).find('input[type="checkbox"]:checked').val() == undefined) {
+        $(this).find(".item-title").addClass('chColor');
+      } else {
+        $(this).find(".item-title").removeClass('chColor');
+      }
+    });
+    if (!$(".contentList").find(".item-title").hasClass('chColor')) {
+      $('input[type="radio"]:checked').each(function () {
+        if (Number($(this).val())) {
+          num += parseFloat($(this).val())
+        } else {
+          arr.push($(this).attr("data_obj"))
+        }
+      });
+      $('input[type="checkbox"]:checkbox:checked').each(function () {
+        if (Number($(this).val())) {
+          num += parseFloat($(this).val())
+        } else {
+          arr.push($(this).attr("data_obj"))
+        }
+      });
+      tmp = arr.join(",");
+      if (pushInfo.length > 0) {
+        for (var i = 0; i < pushInfo.length; i++) {
+          if (pushInfo[i].content.max >= num >= pushInfo[i].content.min) {
+            if (tmp) {
+              result = pushInfo[i].result + ';' + tmp
+            } else {
+              result = pushInfo[i].result
+            }
+          }
+        }
+      } else {
+        result = tmp
+      }
+
+      $(".result_title").attr({
+        "title": result
+      });
+      $(".hel").attr({
+        "title": result
+      });
+      $(".result_title").html(result);
+      $(".score").html('总分:' + num + '分');
+      $(".score").css('display', 'block')
+      $(".result").css('display', 'block')
+      $(".foot").css('display', 'block')
+    } else {
+      Toast('温馨提示:必填选项不能为空~', 500)
+    }
+  })
+
+  $(".printing").hover(
+    function () {
+      $(".slideImg").attr("src", printing2);
+    }, function () {
+      $(".slideImg").attr("src", printing);
+
+    });
+
+}
 
 function addLinkClickEvent(contentWrapClassName) {
   $(`.${contentWrapClassName} .anchors li:first`).addClass("active");
@@ -165,61 +409,64 @@ function addLinkClickEvent(contentWrapClassName) {
   });
 }
 
-function renderTab(detailList){
+function renderTab(detailList, scale){
   $(".tabList").html('')
   if(detailList['静态知识']){
-    $(".tabList").append(`<span class="tab" data-module="staticKnowledge">静态知识</span>`)
-    $(".staticKnowledge h1").html(showName);
+    $(".tabList").append(`<span class="tab" data-module="staticKnowledge" data-title="`+showName+`">静态知识</span>`)
+    //$(".titleCont .title").html(showName);
   }
   if(detailList['临床路径']){
-    $(".tabList").append(`<span class="tab" data-module="clinicalPathway">临床路径</span>`)
-    $(".clinicalPathway h1").html(clinicalPathwayName);
+    $(".tabList").append(`<span class="tab" data-module="clinicalPathway" data-title="`+clinicalPathwayName+`">临床路径</span>`)
+    //$(".titleCont .title").html(clinicalPathwayName);
   }
   if(detailList['注意事项']){
-    $(".tabList").append(`<span class="tab" data-module="notice">注意事项</span>`)
-    $(".notice h1").html(noticeName);
+    $(".tabList").append(`<span class="tab" data-module="notice" data-title="`+noticeName+`">注意事项</span>`)
+    //$(".titleCont .title").html(noticeName);
+  }
+  if (scale) {
+    $(".tabList").append(`<span class="tab" data-module="scale" data-title="` + showName + `">评估内容</span>`)
+    //$(".tabBox .title").html(noticeName);
   }
-  $(".tabList .tab").eq(0).addClass("activeTab")
-  let defaultModuleName = $(".tabList .tab").eq(0).attr("data-module")
+  $(".tabList .tab").eq(selectedTab).addClass("activeTab")
+  let defaultModuleName = $(".tabList .tab").eq(selectedTab).attr("data-module")
   $(`.${defaultModuleName}`).css("display","block")
   bindTabClick()
 }
 function bindTabClick(){
   $(".tabList .tab").on("click", function(){
     const moduleName = $(this).attr("data-module")
-    const display = $(`.${moduleName}`).css("display")
-    if(display == "none"){
+    //const display = $(`.${moduleName}`).css("display")
+      selectedTab=$('.tabList .tab').index(this);
+      $(".titleCont .title").html($(this).attr('data-title'));
+    //if(display == "none"){
       $(".activeTab").removeClass("activeTab")
       $(this).addClass("activeTab")
       $(".container").css("display","none")
-  
       $(`.${moduleName}`).css("display","block")
       $(`.${moduleName} .infos`).scrollTop(0)
-    }
+    //}
   })
   $("#openWin").on("click",function(){
     const type= getUrlArgObject('type');
     const hospitalId= getUrlArgObject('hospitalId');
     const hisName= getUrlArgObject('hisName');
     const hisDetailName= getUrlArgObject('hisDetailName');
-    openNewWin("informationOut.html?hospitalId="+encodeURIComponent(hospitalId)+"&hisName="+encodeURIComponent(hisName)+"&hisDetailName="+encodeURIComponent(hisDetailName)+"&type="+encodeURIComponent(type));
+    openNewWin("informationOut.html?hospitalId="+encodeURIComponent(hospitalId)+"&hisName="+encodeURIComponent(hisName)+"&hisDetailName="+encodeURIComponent(hisDetailName||'')+"&type="+encodeURIComponent(type)+"&d="+selectedDrop+"&t="+selectedTab);
   })
 }
 function adjustHeight() {
+  const extHt = window.opener?60:0;
   var ht = window.innerHeight || document.documentElement.clientHeight;
-  $(".content").height(ht - 90 + "px");
+    $(".content,.content .infos").height(ht - 158 + extHt + "px");
+  /*$(".anchors").height(ht - 258 + "px");*/
 }
 function adjustWidth() {
   var wt = window.innerWidth || document.documentElement.clientWidth;
   $(".titleH2").width(wt- 0.2*wt -33 - 200 - 17 - 40 -15 + 'px')
-  $("pre").width(wt- 0.2*wt - 200 + 'px')
+    //$("pre").width(wt- 0.2*wt - 200 + 'px')
 }
 $(window).on('resize', function(){
   adjustHeight()
   adjustWidth()
 })
-//如果是子窗口,隐藏网页查看按钮
-if(window.opener){
-  $("#openWin").hide();
-}
 

+ 0 - 471
src/js/staticInfoOut.js

@@ -1,471 +0,0 @@
-if(!Promise){
-  var Promise = require("bluebird");
-// Configure
-  Promise.config({
-    longStackTraces: true,
-    warnings: true // note, run node with --trace-warnings to see full stack traces for warnings
-  })
-}
-require('../css/staticInfoOut.less')
-const {
-  post,
-  throttle,
-  imageUrlPrefix,
-  config,
-  getUrlArgObject,
-  openNewWin
-} = require('./promise.js');
-const $ = require("jquery");
-require("./jquery-migrate");
-const jqprint = require("../js/jquery.PrintArea")
-let printing = require('./../images/printing.png');
-let printing2 = require('./../images/printing2.png');
-let showName,noticeName,clinicalPathwayName,showLis=[],selectedDrop=0,selectedTab=0
-
-//如果是子窗口,隐藏网页查看按钮
-if(window.opener){
-    selectedDrop=getUrlArgObject("d")||0;
-    selectedTab=getUrlArgObject("t")||0;
-    $("#openWin").hide();
-}
-let icond = require('./../images/d.png').replace(/^undefined/g, '')
-function getInfomation() {
-  // var param = {
-  //   "type": getUrlArgObject('type'),
-  //   "name": getUrlArgObject('name'),
-  //   "position": getUrlArgObject('position'),
-  //   "contentTypes":[1,2,3]
-  // };
-  var param = {
-    "type": getUrlArgObject('type'),
-    "hospitalId": getUrlArgObject('hospitalId'),
-    "hisName": getUrlArgObject('hisName'),
-    "hisDetailName": getUrlArgObject('hisDetailName'),
-    "contentTypes":[1,2,3]
-  };
-  //showName = param.hisName;
-  // if (param.type == 5 || param.type == 51) {
-  //   param.type = 12;
-  //   param.name = uname;
-  // }
-
-  post(config.getStaticKnowledgeForHIS, param).then((res) => {
-    if(res.data.code==='0'){
-      const data = res.data.data
-      var str = '';
-      var anchors = '';
-      let sName ='';
-      if (!data||data.length===0) {
-        showEmpty();
-        return;
-      }
-      showLis=data
-      for(let i = 0;i < showLis.length;i++){
-        let tmp = showLis[i]
-        str+=`<li data-idx="${i}" title="${tmp.name}(${tmp.hisName})">${tmp.name}(${tmp.hisName})</li>`
-      }
-      $(".showWhich ul").html(str);
-        sName=showLis[selectedDrop].name+"("+showLis[selectedDrop].hisName+")";
-      $(".showWhichSelect").html(sName).attr("title",sName)
-      showName = data[selectedDrop].name+"("+data[selectedDrop].hisName+")";
-      showInfoSelect()
-      showInfo(data[selectedDrop])
-        renderTitleShow();
-      $('.content img').bind('contextmenu', function(){
-        return false
-      })
-    }else{
-      showEmpty();
-    }
-  })
-}
-getInfomation();
-function showEmpty(){
-  const str=`<div class="empty"><img src="../images/empty3.png" alt=""><p>暂无静态知识</p></div>`;
-  $(".tabBox").html(str).css("border-bottom","none");
-  $("body").css('background','#fff');
-}
-function showInfo(data){
-  var detailList = data.details
-  var scale = data.scale
-  var staticKnowList = detailList['静态知识']
-  var noticeInfo = detailList['注意事项']
-  var clinicalPathwayInfo = detailList['临床路径']
-  var name = data.name
-  noticeName = data.noticeName || "注意事项"
-  clinicalPathwayName = data.clinicalPathwayName || "临床路径"
-  var scaleInfo = data.scale ? data.scale.scaleDetails : ''
-  // $("h1").css({
-  //   "color": "#267FD7",
-  //   "borderBottom": "4px solid  #E9E9E9",
-  //   "padding": "0px 60px 50px 0px"
-  // });
-  renderTab(detailList, scale)
-  staticKnowList&&renderContent(staticKnowList,'staticKnowledge')
-  noticeInfo&&renderContent(noticeInfo,'notice')
-  clinicalPathwayInfo&&renderContent(clinicalPathwayInfo,'clinicalPathway')
-  scaleInfo && renderContentscale(scaleInfo, 'scale', name)
-}
-function showInfoSelect(){
-  $('.showWhich li').click(function(){
-    let idx = $(this).attr('data-idx')
-    let name = $(this).html(),str=''
-    selectedDrop=idx;
-    selectedTab=0;
-    showName = showLis[idx].name+"("+showLis[idx].hisName+")";
-    showInfo(showLis[idx])
-    renderTitleShow();
-    $('.content .infos').scrollTop(0)
-    $(".showWhich ul").css("display","none")
-    $(".showWhichSelect").html(name).attr("title",name)
-  })
-  $(".showWhichSelect").click(function(e){
-    e.stopPropagation()
-    $(".showWhich ul").slideToggle()
-  })
-  $(document).click(function(){
-    $(".showWhich ul").css("display","none")
-  })
-}
-function renderTitleShow(){
-    document.title = showName;
-    $(".titleCont .title").html($(".tabList .tab:eq("+selectedTab+")").attr("data-title"));
-}
-function renderContent(list, contentWrapClassName){
-  $(`.${contentWrapClassName} .infos`).html('');
-  $(`.${contentWrapClassName} .anchors ul`).html('');
-    for (var i = 0; i < list.length; i++) {
-        var item = list[i];
-        item.content = item.content&&item.content.replace(/{imageUrlPrefix}/g, imageUrlPrefix);
-        anchors = '<li><i></i><a href="#' + contentWrapClassName+i +
-          '">' + item.title + '</a></li><li class="anchor-line"></li>';
-        str = '<div class="infoBox"><div class="title"> <h2 class="titleH2" id="' + contentWrapClassName+i +
-          '">'
-        if (getUrlArgObject('type') == 8) {
-          str += '【' + item.title + '】'
-        } else {
-          str += item.title
-        }
-        str += '</h2></div>' +
-          '<div class="contentWrapper"><pre>' + item.content + '</pre><div></div>';
-          str = `<div class="infoWrapper">${str}</div>`
-        $(`.${contentWrapClassName} .infos`).append(str);
-        $(`.${contentWrapClassName} .anchors ul`).append(anchors);
-    }
-
-    function addScrollEvent() {
-      var scrollTop = $(`.${contentWrapClassName} .infos`).scrollTop()
-
-      var divHeight = 0;
-      for (var i = 0; i < list.length; i++) {
-        divHeight = divHeight + parseInt($('#'+contentWrapClassName+i).css('height')) + parseInt($('#'+contentWrapClassName+i).parent().next().css('height')) + 20
-        if (divHeight > scrollTop) {
-          var anchor = 2 * i;
-          $(`.${contentWrapClassName} .anchors ul`).children().eq(anchor).addClass('active').siblings().removeClass('active');
-          return;
-        }
-      }
-    }
-    $(`.${contentWrapClassName} .infos`).scroll(throttle(addScrollEvent, 200));
-    addLinkClickEvent(contentWrapClassName);
-    adjustHeight();
-    adjustWidth()
-}
-
-function renderContentscale(list, contentWrapClassName, name) {
-  var pushInfo = []
-  anchors = '<li><i></i><a href="#' + contentWrapClassName +
-    '">' + name + '</a></li><li class="anchor-line"></li>';
-  str = '<p class="scaletitle">' + name + '</p>'
-  $(`.${contentWrapClassName} .infos .infos-box`).append(str);
-  $(`.${contentWrapClassName} .anchors ul`).append(anchors);
-  for (var i = 0; i < list[0].detailList.length; i++) {
-    var item = list[0].detailList[i];
-    console.log(item)
-    if (item.textType == 11) {
-      item.content = item.content && item.content.replace(/{imageUrlPrefix}/g, imageUrlPrefix);
-      str = '<div class="infoBox scaleBox" data-id="' + item.id + '"><div class="title"> <h2 class="titleH2" id="' + contentWrapClassName + i +
-        '">'
-      str += item.content
-      str += '</h2></div>'
-      str = `<div class="infoWrapper">${str}</div>`
-      $(`.${contentWrapClassName} .infos .infos-box`).append(str);
-      for (var j = 0; j < item.subList.length; j++) {
-        var items = item.subList[j];
-        for (var k = 0; k < items.detailList.length; k++) {
-          var it = items.detailList[k];
-          it.content = it.content && it.content.replace(/{imageUrlPrefix}/g, imageUrlPrefix);
-          str = '<div class="contentList" data-id="' + it.parentId + '"><div class="item-list">';
-          if (it.selectType == 1) {
-            str += '<p class="item-title">' + it.content + '</p>'
-          } else if (it.selectType == 2) {
-            str += '<p class="item-titles">' + it.content + '</p>'
-          }
-
-          str += '<div class="item-content" data-id="' + it.id + '">'
-          str += '</div></div></div>'
-          $(".scale .infos .infos-box .infoWrapper .infoBox[data-id=" + it.parentId + "]").append(str);
-          for (var l = 0; l < it.subList[0].detailList.length; l++) {
-            var its = it.subList[0].detailList[l];
-            its.content = its.content && its.content.replace(/{imageUrlPrefix}/g, imageUrlPrefix);
-            str = '<div class="radio" name="scale' + its.parentId + '" value="' + its.score + '">';
-            if (it.selectType == 1 && item.resultType == 1) {
-              str += '<label><input class="radio_type" type="checkbox" name="scale' + its.parentId + '" value="' + its.score + '"/>'
-            } else if (it.selectType == 2 && item.resultType == 1) {
-              str += '<label><input class="radio_type" name="scale' + its.parentId + '" type="radio" value="' + its.score + '" />'
-            } else if (it.selectType == 1 && item.resultType == 2) {
-              str += '<label><input class="radio_type" name="scale' + its.parentId + '" type="checkbox" value="' + its.result + '" data_obj="' + its.result + '"/>'
-            } else if (it.selectType == 2 && item.resultType == 2) {
-              str += '<label><input class="radio_type" name="scale' + its.parentId + '" type="radio" value="' + its.result + '" data_obj="' + its.result + '"/>'
-            }
-            str += its.content
-            if (item.resultType == 1) {
-              str += '<span class="num">' + '(' + its.score + ')' + '</span>'
-            }
-            str += '</label>'
-            str += `${item.match ? `<img class="recommend" src=${recommend} />` : ``}</div>`
-            $(".scale .infos .infos-box .infoWrapper .infoBox[data-id=" + it.parentId + "] .contentList .item-content[data-id=" + its.parentId + "]").append(str);
-          }
-        }
-      }
-
-    }
-    if (item.textType == 13) {
-      for (var m = 0; m < item.subList[0].detailList[0].subList[0].detailList.length; m++) {
-        var itl = item.subList[0].detailList[0].subList[0].detailList[m]
-        let arr = {
-          content: JSON.parse(itl.content),
-          result: itl.result,
-          pushInfo: itl.pushInfo
-        }
-        pushInfo.push(arr)
-      }
-    }
-  }
-  str = '<div class="scalebot">'
-  str += '<p class="score"></p>'
-  str += '<button class="but">结果</button></div>'
-  str += '<div class="result"><div class="result_box"><p class="hel">?</p><span>结果:</span><p id="result_title" class="result_title"></p><textarea id="inputs"></textarea></div></div>'
-  str += `<div class="foot"><div class="foot_box"><div class="printing"><img src=${printing} class="slideImg"/>打印</div><div class="copy">确认并复制结果</div></div></div>`
-  $(`.${contentWrapClassName} .infos .infos-box`).append(str);
-  // str = `<div class="foot"><div class="foot_box"><div class="printing"><img src=${printing} class="slideImg"/>打印</div><div class="copy">确认并复制结果</div></div></div>`
-  // $(`.${contentWrapClassName} .infos`).after(str);
-  function addScrollEvent() {
-    var scrollTop = $(`.${contentWrapClassName} .infos .infos-box`).scrollTop()
-    var divHeight = 0;
-    for (var i = 0; i < list.length; i++) {
-      divHeight = divHeight + parseInt($('#' + contentWrapClassName + i).css('height')) + parseInt($('#' + contentWrapClassName + i).parent().next().css('height')) + 20
-      if (divHeight > scrollTop) {
-        var anchor = 2 * i;
-        $(`.${contentWrapClassName} .anchors ul`).children().eq(anchor).addClass('active').siblings().removeClass('active');
-        return;
-      }
-    }
-  }
-  $(`.${contentWrapClassName} .infos .infos-box`).scroll(throttle(addScrollEvent, 200));
-  addLinkClickEvent(contentWrapClassName);
-  adjustHeight();
-  adjustWidth()
-  getcheck()
-  getResult(pushInfo)
-  copy()
-  getprinting()
-}
-
-function getprinting() {
-  $('.printing').click(function () {
-    $('.foot').hide()
-    $('.hel').hide()
-    $('#Print').css({
-      'height': 'auto', //高度自动
-    }).jqprint();
-    $('.foot').show()
-    $('.hel').show()
-
-  })
-
-}
-
-function getcheck() {
-  $('input:radio').click(function () {
-    var domName = $(this).attr('name');
-    var $radio = $(this);
-    if ($radio.data('waschecked') == true) {
-      $radio.prop('checked', false);
-      $("input:radio[name='" + domName + "']").data('waschecked', false);
-    } else {
-      $radio.prop('checked', true);
-      $("input:radio[name='" + domName + "']").data('waschecked', false);
-      $radio.data('waschecked', true);
-    }
-    console.log("选中状态:", $(this).prop("checked"));
-    console.log($("input:radio[name='" + domName + "']:checked").val());
-  });
-}
-
-function copy() {
-  $(".copy").click(function () {
-    var texts = document.getElementById("result_title").innerText;
-    if (texts == '') {
-      return
-    }
-    var inputs = document.getElementById("inputs");
-    inputs.value = texts; // 修改文本框的内容(赋值内容)
-    inputs.select(); // 选中文本
-    document.execCommand("copy"); // 执行浏览器复制命令
-    Toast('复制成功', 500)
-    setTimeout(() => {
-      window.close()
-    }, 500)
-
-  })
-
-}
-
-function getResult(pushInfo) {
-  $(".but").click(function () {
-    let arr = [];
-    let num = 0
-    let result
-    let key = false
-    $(".contentList").each(function (i) {
-      if ($(this).find('input[type="radio"]:checked').val() == undefined) {
-        $(this).find(".item-titles").addClass('chColor');
-      } else {
-        $(this).find(".item-titles").removeClass('chColor');
-      }
-      if ($(this).find('input[type="checkbox"]:checked').val() == undefined) {
-        $(this).find(".item-title").addClass('chColor');
-      } else {
-        $(this).find(".item-title").removeClass('chColor');
-      }
-    });
-    if (!$(".contentList").find(".item-title").hasClass('chColor')) {
-      $('input[type="radio"]:checked').each(function () {
-        if (Number($(this).val())) {
-          num += parseFloat($(this).val())
-        } else {
-          arr.push($(this).attr("data_obj"))
-        }
-      });
-      $('input[type="checkbox"]:checkbox:checked').each(function () {
-        if (Number($(this).val())) {
-          num += parseFloat($(this).val())
-        } else {
-          arr.push($(this).attr("data_obj"))
-        }
-      });
-      tmp = arr.join(",");
-      if (pushInfo.length > 0) {
-        for (var i = 0; i < pushInfo.length; i++) {
-          if (pushInfo[i].content.max >= num >= pushInfo[i].content.min) {
-            if (tmp) {
-              result = pushInfo[i].result + ';' + tmp
-            } else {
-              result = pushInfo[i].result
-            }
-          }
-        }
-      } else {
-        result = tmp
-      }
-
-      $(".result_title").attr({
-        "title": result
-      });
-      $(".hel").attr({
-        "title": result
-      });
-      $(".result_title").html(result);
-      $(".score").html('总分:' + num + '分');
-      $(".score").css('display', 'block')
-      $(".result").css('display', 'block')
-      $(".foot").css('display', 'block')
-    } else {
-      Toast('温馨提示:必填选项不能为空~', 500)
-    }
-  })
-
-  $(".printing").hover(
-    function () {
-      $(".slideImg").attr("src", printing2);
-    }, function () {
-      $(".slideImg").attr("src", printing);
-
-    });
-
-}
-
-function addLinkClickEvent(contentWrapClassName) {
-  $(`.${contentWrapClassName} .anchors li:first`).addClass("active");
-  $(`.${contentWrapClassName}  .anchors li>a`).on("click", function () {
-
-    const that = this
-    setTimeout(function(){
-      $(`.${contentWrapClassName} .anchors .active`).removeClass('active');
-      $(that).parent().addClass("active");
-    },20)
-
-  });
-}
-
-function renderTab(detailList, scale){
-  $(".tabList").html('')
-  if(detailList['静态知识']){
-    $(".tabList").append(`<span class="tab" data-module="staticKnowledge" data-title="`+showName+`">静态知识</span>`)
-    //$(".titleCont .title").html(showName);
-  }
-  if(detailList['临床路径']){
-    $(".tabList").append(`<span class="tab" data-module="clinicalPathway" data-title="`+clinicalPathwayName+`">临床路径</span>`)
-    //$(".titleCont .title").html(clinicalPathwayName);
-  }
-  if(detailList['注意事项']){
-    $(".tabList").append(`<span class="tab" data-module="notice" data-title="`+noticeName+`">注意事项</span>`)
-    //$(".titleCont .title").html(noticeName);
-  }
-  if (scale) {
-    $(".tabList").append(`<span class="tab" data-module="scale" data-title="` + showName + `">评估内容</span>`)
-    //$(".tabBox .title").html(noticeName);
-  }
-  $(".tabList .tab").eq(selectedTab).addClass("activeTab")
-  let defaultModuleName = $(".tabList .tab").eq(selectedTab).attr("data-module")
-  $(`.${defaultModuleName}`).css("display","block")
-  bindTabClick()
-}
-function bindTabClick(){
-  $(".tabList .tab").on("click", function(){
-    const moduleName = $(this).attr("data-module")
-    //const display = $(`.${moduleName}`).css("display")
-      selectedTab=$('.tabList .tab').index(this);
-      $(".titleCont .title").html($(this).attr('data-title'));
-    //if(display == "none"){
-      $(".activeTab").removeClass("activeTab")
-      $(this).addClass("activeTab")
-      $(".container").css("display","none")
-      $(`.${moduleName}`).css("display","block")
-      $(`.${moduleName} .infos`).scrollTop(0)
-    //}
-  })
-  $("#openWin").on("click",function(){
-    const type= getUrlArgObject('type');
-    const hospitalId= getUrlArgObject('hospitalId');
-    const hisName= getUrlArgObject('hisName');
-    const hisDetailName= getUrlArgObject('hisDetailName');console.log(selectedDrop)
-    openNewWin("staticInfoOut.html?hospitalId="+encodeURIComponent(hospitalId)+"&hisName="+encodeURIComponent(hisName)+"&hisDetailName="+encodeURIComponent(hisDetailName||'')+"&type="+encodeURIComponent(type)+"&d="+selectedDrop+"&t="+selectedTab);
-  })
-}
-function adjustHeight() {
-  var ht = window.innerHeight || document.documentElement.clientHeight;
-    $(".content,.content .infos").height(ht - 198 + "px");
-  /*$(".anchors").height(ht - 258 + "px");*/
-}
-function adjustWidth() {
-  var wt = window.innerWidth || document.documentElement.clientWidth;
-  $(".titleH2").width(wt- 0.2*wt -33 - 200 - 17 - 40 -15 + 'px')
-    //$("pre").width(wt- 0.2*wt - 200 + 'px')
-}
-$(window).on('resize', function(){
-  adjustHeight()
-  adjustWidth()
-})
-

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 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

@@ -7,31 +7,24 @@ const webpack = require('webpack');
 const proxyHost = "http://192.168.2.241:6060";
 module.exports = {
   entry: {
-    index: path.resolve(__dirname, 'src/js', 'index.js'),
-    page: path.resolve(__dirname, 'src', 'page.js'),
-    information: path.resolve(__dirname, 'src/js', 'information.js'),
+    //index: path.resolve(__dirname, 'src/js', 'index.js'),
+    //information: path.resolve(__dirname, 'src/js', 'information.js'),
     informationOut: path.resolve(__dirname, 'src/js', 'informationOut.js'),
     disclaimer: path.resolve(__dirname, 'src/js', 'disclaimer.js'),
     version: path.resolve(__dirname, 'src/js', 'version.js'),
     scale: path.resolve(__dirname, 'src/js', 'scale.js'),
-    illness: path.resolve(__dirname, 'src/js', 'illness.js'),
-    treatplan: path.resolve(__dirname, 'src/js', 'treatplan.js'),
-    indexHorizontal: path.resolve(__dirname, 'src/js', 'indexHorizontal.js'),
-    staticSearch: path.resolve(__dirname, 'src/js', 'staticSearch.js'),
+    //staticSearch: path.resolve(__dirname, 'src/js', 'staticSearch.js'),
     emergency: path.resolve(__dirname, 'src/js', 'emergency.js'),
-    icssIndex: path.resolve(__dirname, 'src/js', 'icssIndex.js'),
-    view: path.resolve(__dirname, 'src/js', 'view.js'),
     cdss: path.resolve(__dirname, 'src/js', 'cdss.js'),
     cdssHorizontal: path.resolve(__dirname, 'src/js', 'cdssHorizontal.js'),
     smartAlert: path.resolve(__dirname, 'src/js', 'smartAlert.js'),
     caseWriteStandard: path.resolve(__dirname, 'src/js', 'caseWriteStandard.js'),
     generalTreat:path.resolve(__dirname, 'src/js', 'generalTreat.js'),
     cdssPlan:path.resolve(__dirname, 'src/js', 'cdssPlan.js'),
-    check:path.resolve(__dirname, 'src/js', 'check.js'),
     homeStatic:path.resolve(__dirname, 'src/js', 'homeStatic.js'),
     searchStaticList:path.resolve(__dirname, 'src/js', 'searchStaticList.js'),
     staticInfo:path.resolve(__dirname, 'src/js', 'staticInfo.js'),
-    staticInfoOut:path.resolve(__dirname, 'src/js', 'staticInfoOut.js'),
+    //staticInfoOut:path.resolve(__dirname, 'src/js', 'informationOut.js'),
     vendor: 'lodash'// 多个页面所需的公共库文件,防止重复打包带入
   },
   output: {
@@ -44,19 +37,6 @@ module.exports = {
     alias: {} //配置别名可以加快webpack查找模块的速度
   },
   plugins: [// 多入口的html文件用chunks这个参数来区分
-    new HtmlWebpackPlugin({
-      title: 'index',
-      template: path.resolve(__dirname, 'src/html', 'index.html'),
-      filename: 'index.html',
-      chunks: ['index', 'vendor', 'common'],
-      inject: true,
-      hash: true, //防止缓存
-      minify: {
-        removeAttributeQuotes: true, //压缩 去掉引号
-        removeComments: true, //移除HTML中的注释
-        collapseWhitespace: true //删除空白符与换行符
-      }
-    }),
     new HtmlWebpackPlugin({
       title: 'homeStatic',
       template: path.resolve(__dirname, 'src/html', 'homeStatic.html'),
@@ -70,19 +50,6 @@ module.exports = {
         collapseWhitespace: true //删除空白符与换行符
       }
     }),
-    new HtmlWebpackPlugin({
-      title: 'staticInfoOut',
-      template: path.resolve(__dirname, 'src/html', 'staticInfoOut.html'),
-      filename: 'staticInfoOut.html',
-      chunks: ['staticInfoOut', 'vendor', 'common'],
-      inject: true,
-      hash: true, //防止缓存
-      minify: {
-        removeAttributeQuotes: true, //压缩 去掉引号
-        removeComments: true, //移除HTML中的注释
-        collapseWhitespace: true //删除空白符与换行符
-      }
-    }),
     new HtmlWebpackPlugin({
       title: 'staticInfo',
       template: path.resolve(__dirname, 'src/html', 'staticInfo.html'),
@@ -109,19 +76,6 @@ module.exports = {
         collapseWhitespace: true //删除空白符与换行符
       }
     }),
-    new HtmlWebpackPlugin({
-      title: 'index',
-      template: path.resolve(__dirname, 'src/html', 'check.html'),
-      filename: 'check.html',
-      chunks: ['check', 'vendor', 'common'],
-      inject: true,
-      hash: true, //防止缓存
-      minify: {
-        removeAttributeQuotes: true, //压缩 去掉引号
-        removeComments: true, //移除HTML中的注释
-        collapseWhitespace: true //删除空白符与换行符
-      }
-    }),
     new HtmlWebpackPlugin({
       title: '智能警示',
       template: path.resolve(__dirname, 'src/html', 'smartAlert.html'),
@@ -174,46 +128,7 @@ module.exports = {
         collapseWhitespace: true //删除空白符与换行符
       }
     }),
-    new HtmlWebpackPlugin({
-      title: '病情提示',
-      template: path.resolve(__dirname, 'src/html', 'illness.html'),
-      filename: 'illness.html',
-      chunks: ['illness', 'vendor', 'common'],
-      inject: true,
-      hash: true, //防止缓存
-      minify: {
-        removeAttributeQuotes: true, //压缩 去掉引号
-        removeComments: true, //移除HTML中的注释
-        collapseWhitespace: true //删除空白符与换行符
-      }
-    }),
-    new HtmlWebpackPlugin({
-      title: '治疗方案',
-      template: path.resolve(__dirname, 'src/html', 'treatplan.html'),
-      filename: 'treatplan.html',
-      chunks: ['treatplan', 'vendor', 'common'],
-      inject: true,
-      hash: true, //防止缓存
-      minify: {
-        removeAttributeQuotes: true, //压缩 去掉引号
-        removeComments: true, //移除HTML中的注释
-        collapseWhitespace: true //删除空白符与换行符
-      }
-    }),
-    new HtmlWebpackPlugin({
-      title: 'page',
-      template: path.resolve(__dirname, 'src/html', 'page.html'),
-      filename: 'page.html',
-      chunks: ['page', 'vendor', 'common'],
-      inject: true,
-      hash: true, //防止缓存
-      minify: {
-        removeAttributeQuotes: true, //压缩 去掉引号
-        removeComments: true, //移除HTML中的注释
-        collapseWhitespace: true //删除空白符与换行符
-      }
-    }),
-    new HtmlWebpackPlugin({
+    /*new HtmlWebpackPlugin({
       title: 'information',
       template: path.resolve(__dirname, 'src/html', 'information.html'),
       filename: 'information.html',
@@ -225,7 +140,7 @@ module.exports = {
         removeComments: true, //移除HTML中的注释
         collapseWhitespace: true //删除空白符与换行符
       }
-    }),
+    }),*/
     new HtmlWebpackPlugin({
       title: 'informationOut',
       template: path.resolve(__dirname, 'src/html', 'informationOut.html'),
@@ -239,19 +154,6 @@ module.exports = {
         collapseWhitespace: true //删除空白符与换行符
       }
     }),
-    new HtmlWebpackPlugin({
-      title: 'drugInfo',
-      template: path.resolve(__dirname, 'src/html', 'drugInfo.html'),
-      filename: 'drugInfo.html',
-      chunks: ['information', 'vendor', 'common'],
-      inject: true,
-      hash: true, //防止缓存
-      minify: {
-        removeAttributeQuotes: true, //压缩 去掉引号
-        removeComments: true, //移除HTML中的注释
-        collapseWhitespace: true //删除空白符与换行符
-      }
-    }),
     new HtmlWebpackPlugin({
       title: '免责声明',
       template: path.resolve(__dirname, 'src/html', 'disclaimer.html'),
@@ -291,32 +193,6 @@ module.exports = {
         collapseWhitespace: true //删除空白符与换行符
       }
     }),
-    new HtmlWebpackPlugin({
-      title: 'indexHorizontal',
-      template: path.resolve(__dirname, 'src/html', 'indexHorizontal.html'),
-      filename: 'indexHorizontal.html',
-      chunks: ['indexHorizontal', 'vendor', 'common'],
-      inject: true,
-      hash: true, //防止缓存
-      minify: {
-        removeAttributeQuotes: true, //压缩 去掉引号
-        removeComments: true, //移除HTML中的注释
-        collapseWhitespace: true //删除空白符与换行符
-      }
-    }),
-    new HtmlWebpackPlugin({
-      title: 'staticSearch',
-      template: path.resolve(__dirname, 'src/html', 'staticSearch.html'),
-      filename: 'staticSearch.html',
-      chunks: ['staticSearch', 'vendor', 'common'],
-      inject: true,
-      hash: true, //防止缓存
-      minify: {
-        removeAttributeQuotes: true, //压缩 去掉引号
-        removeComments: true, //移除HTML中的注释
-        collapseWhitespace: true //删除空白符与换行符
-      }
-    }),
     new HtmlWebpackPlugin({
       title: 'emergency',
       template: path.resolve(__dirname, 'src/html', 'emergency.html'),
@@ -330,19 +206,6 @@ module.exports = {
         collapseWhitespace: true //删除空白符与换行符
       }
     }),
-    new HtmlWebpackPlugin({
-      title: 'icssIndex',
-      template: path.resolve(__dirname, 'src/html', 'icssIndex.html'),
-      filename: 'icssIndex.html',
-      chunks: ['icssIndex', 'vendor', 'common'],
-      inject: true,
-      hash: true, //防止缓存
-      minify: {
-        removeAttributeQuotes: true, //压缩 去掉引号
-        removeComments: true, //移除HTML中的注释
-        collapseWhitespace: true //删除空白符与换行符
-      }
-    }),
     new HtmlWebpackPlugin({
       title: 'cdss',
       template: path.resolve(__dirname, 'src/html', 'cdss.html'),
@@ -357,7 +220,7 @@ module.exports = {
       }
     }),
     new HtmlWebpackPlugin({
-      title: 'cdss',
+      title: 'cdssHorizontal',
       template: path.resolve(__dirname, 'src/html', 'cdssHorizontal.html'),
       filename: 'cdssHorizontal.html',
       chunks: ['cdssHorizontal', 'vendor', 'common'],
@@ -369,7 +232,6 @@ module.exports = {
         collapseWhitespace: true //删除空白符与换行符
       }
     }),
-    
     new HtmlWebpackPlugin({
       title: 'view',
       template: path.resolve(__dirname, 'src/html', 'view.html'),