Browse Source

删掉多余的注释

Luolei 6 years ago
parent
commit
e1a1331283
7 changed files with 5 additions and 78 deletions
  1. 0 13
      src/css/index.less
  2. 0 25
      src/index.js
  3. 0 7
      src/js/drugInfo.js
  4. 0 7
      src/js/information.js
  5. 2 2
      src/js/promise.js
  6. 0 19
      src/js/scale.js
  7. 3 5
      src/page.js

+ 0 - 13
src/css/index.less

@@ -53,19 +53,6 @@
       .medicine {
         border-bottom: 1px solid @grayColor;
         position: relative;
-        // a {
-        //   display: none;
-        //   width: 28px;
-        //   height: 28px;
-        //   position: absolute;
-        //   top: -20px;
-        //   left: 50%;
-        //   margin-left: -14px;
-        //   background: url("../images/tmp1.png") center center no-repeat;
-        // }
-        // a:hover {
-        //   background: url("../images/tmp2.png") center center no-repeat;
-        // }
       }
       .medicine:hover {
         color: @colorBlue;

+ 0 - 25
src/index.js

@@ -5,32 +5,7 @@ import './js/popup';
 import {post,config,getUrlArgObject} from './js/promise.js';
 import {bqtsFun,ybzlFun,cyywFun,knzdFun,jtFun,tjwzFun,tjtgFun,tjhyFun,tjfjFun,yszdFun} from './js/indexDom';
 //地址栏参数 ?age=99&lisJson=&diseaseId=&diagJson=糖尿病&pastJson=无心脏病&otherJson=无高血压&pacsJson=腹部B超:无异常, 报告日期:2019-05-07&sex=男&symptomJson=恶心呕吐腰痛&vitalJson=血压左上肢13/12mmHg
-
-// var msg= {
-// 	age: 28,
-//   diag: "急性胰腺炎",
-//   diseaseId: 280,
-//   featureType: "1,4,5,6,7,8,22",
-//   lis: [
-//     {
-//       detailName: "HGB*3/HCT",
-//       maxValue: "",
-//       minValue: "",
-//       name: "血常规",
-//       otherValue: "",
-//       source: "0",
-//       time: "2019-05-07 17:11",
-//       uniqueName: "血常规-HGB*3/HCT",
-//       units: "",
-//       value: "4"
-//     }
-//   ],
-//   other: "无高血压",
-//   pacs: "腹部B超:无异常, 报告日期:2019-05-07",
-//   sex: 1,
 //   symptom: "恶心呕吐腰痛", //胸痛,背痛,恶心,呕吐     //恶心呕吐腰痛   //牙周袋形成
-//   vital: "血压左上肢13/12mmHg",
-// }
 var msg = {
   age: getUrlArgObject('age'),
   diseaseId: getUrlArgObject('diseaseId') || 21773,

+ 0 - 7
src/js/drugInfo.js

@@ -2,8 +2,6 @@ import {post, imageUrlPrefix,getUrlArgObject, throttle} from './promise.js';
 (function(){
     getInfomation();
     function getInfomation(){
-        // var infoUrl ="http://" + window.location.host+'/icss-web/kl/introduce/get_by_itemidAndType';
-        // var infoUrl ="http://" + window.location.host+'/api/icss/introduceInfo/getByQuestionId';
         var infoUrl ='http://192.168.2.236:5050/api/icss/introduceInfo/getByQuestionId'
       
         var param = {
@@ -21,7 +19,6 @@ import {post, imageUrlPrefix,getUrlArgObject, throttle} from './promise.js';
             }
             var list  = data.introduceDetailList;
             $("h1").html(data.tagName);
-            //list.map((item,i) =>{
             for(var i=0;i<list.length;i++) {
                 item = list[i];
                 item.content = item.content.replace(/{imageUrlPrefix}/g, imageUrlPrefix)
@@ -33,7 +30,6 @@ import {post, imageUrlPrefix,getUrlArgObject, throttle} from './promise.js';
                     '<div class="contentBox">' + item.content + '<div>';
                 $(".infos").append(str);
                 $(".anchors ul").append(anchors);
-                //});
             }
             addLinkClickEvent();
             adjustHeight();
@@ -44,9 +40,6 @@ import {post, imageUrlPrefix,getUrlArgObject, throttle} from './promise.js';
                 for (var i = 0; i < list.length; i++) {
                     divHeight = divHeight + parseInt($('#' + list[i].id).css('height')) + parseInt($('#' + list[i].id).parent().next().css('height')) +40
                     if(divHeight > scrollTop) {
-                        // this.setState({
-                        //     currentIndex: i
-                        // })
                         var anchor = 2*i
 
                         $('.anchors ul').children().eq(anchor).addClass('active').siblings().removeClass('active')

+ 0 - 7
src/js/information.js

@@ -9,8 +9,6 @@ import {post, throttle, imageUrlPrefix, getUrlArgObject} from './promise.js';
         var param = {
             "type":  getUrlArgObject('type'),
             "questionId":  getUrlArgObject('questionId'),
-            // "type": 7,
-            // "questionId": 21773,
             "position": getUrlArgObject('position')
         };
 
@@ -27,7 +25,6 @@ import {post, throttle, imageUrlPrefix, getUrlArgObject} from './promise.js';
             var list  = data.introduceDetailList;
             $("h1").html(data.tagName);
             $("h1").css({"color": "#267FD7","borderBottom":"4px solid  #E9E9E9","padding":"0px 60px 50px 0px"});
-            //list.map((item,i) =>{
             for(var i=0;i<list.length;i++) {
                 item = list[i];
                 item.content = item.content.replace(/{imageUrlPrefix}/g, imageUrlPrefix)
@@ -42,7 +39,6 @@ import {post, throttle, imageUrlPrefix, getUrlArgObject} from './promise.js';
                 }
                 $(".infos").append(str);
                 $(".anchors ul").append(anchors);
-                //});
             }
             addLinkClickEvent();
             adjustHeight();
@@ -54,9 +50,6 @@ import {post, throttle, imageUrlPrefix, getUrlArgObject} from './promise.js';
                 for (var i = 0; i < list.length; i++) {
                     divHeight = divHeight + parseInt($('#' + list[i].id).css('height')) + parseInt($('#' + list[i].id).parent().next().css('height')) +40
                     if(divHeight > scrollTop) {
-                        // this.setState({
-                        //     currentIndex: i
-                        // })
                         var anchor = 2*i
 
                         $('.anchors ul').children().eq(anchor).addClass('active').siblings().removeClass('active')

+ 2 - 2
src/js/promise.js

@@ -1,8 +1,8 @@
 const qs = require('qs');
 import '@babel/polyfill'
 const config = {
-  pushInner:'http://192.168.2.236:5050/api/icss/push/pushInner',
-  calculate:'http://192.168.2.236:5050/api/icss/calc/calculate',
+  pushInner:'/api/icss/push/pushInner',
+  calculate:'/api/icss/calc/calculate',
 }
 const imageUrlPrefix = 'http://192.168.2.241:82';
 const getUrlArgObject = (parm) => {  

+ 0 - 19
src/js/scale.js

@@ -21,30 +21,18 @@ $(function(){
       "sex": getUrlArgObject('sex') || 1,
       "diag": getUrlArgObject('diag') || "肺结核(复诊); ",
       "lis": getUrlArgObject('lis')?JSON.parse(getUrlArgObject('lis')) : []
-
-      // "age": 28,
-      // "featureType": '21',
-      // "scaleId": id,
-      // "scaleName": name,
-      // "sex": 1,
-      // "diag": "肺结核(复诊); ",
-      // "lis":  []
-    
     }
 
     if(id){
-
         post(url, params).then((res) => {
             const data = res.data.data
             if(res.data.code==0){
                 scaleInfo = data.scale;
-                // console.log('量表数据为:',scaleInfo);
                 for (var i = 0; i < scaleInfo.length; i++) {
                     if( scaleInfo[i].type == 1) {
                         var scaleList = JSON.parse(scaleInfo[i].content)
                         console.log('scaleList', scaleList)
                         renderCalcu(scaleList)
-                       
                     } else {
                         $('.content').append(scaleInfo[i].content)
                     }
@@ -56,19 +44,13 @@ $(function(){
                         scaleList.group[indexList[0]].rows[indexList[1]].row[indexList[2]].details[i].select = 0
                     }
                     scaleList.group[indexList[0]].rows[indexList[1]].row[indexList[2]].details[indexList[3]].select = 1
-                    // console.log('this',$(this).parent().parent().parent().attr('class'))
                     const className = $(this).parent().parent().parent().attr('data-group')
                     for(let i = 0; i < $('.'+className).length; i++) {
                         $('.'+className).eq(i).removeClass('noSelect')
                     }
-                    // for(let i = 0; i < $(this).parent().parent().parent().parent().find(className).length; i++) {
-                    //     $(this).parent().parent().parent().parent().find(className).eq(i).removeClass('noSelect')
-                    // }
-                    // $(this).parent().parent().parent().removeClass('noSelect')
                 })
 
                 $('.calcuBtn').on('click', function() {
-                    // console.log('scaleList', scaleList)
                     let allSelect = true
                     for (let i = 0; i < scaleList.group.length; i++) {
                         for (let j = 0; j < scaleList.group[i].rows.length; j++) {
@@ -76,7 +58,6 @@ $(function(){
                                 let itemSelect = false
                                 for (let x = 0; x < scaleList.group[i].rows[j].row.length; x++) {
                                     
-                                    // console.log('scaleList.group[i].rows[j].row[x].details', scaleList.group[i].rows[j].row[x].details)
                                     for (let y = 0; y < scaleList.group[i].rows[j].row[x].details.length; y++) {
                                         if (scaleList.group[i].rows[j].row[x].details[y].select == 1) {
                                             itemSelect = true

+ 3 - 5
src/page.js

@@ -1,6 +1,5 @@
-import './css/page.css'
+import './css/page.css';
 
-// 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 = [
   {
     detailName: "HGB*3/HCT",
@@ -14,6 +13,5 @@ var lis = [
     units: "",
     value: "4"
   }
-]
-$(".iframeContainer").attr("src",'index.html?age=22&lisJson='+JSON.stringify(lis)+'&diagJson=糖尿病&pastJson=无心脏病&otherJson=无高血压&pacsJson=腹部B超:无异常, 报告日期:2019-05-07&sex=男&symptomJson=恶心呕吐腰痛&vitalJson=血压左上肢13/12mmHg')
-// $(".iframeContainer").attr("src",'index.html?age=99&lisJson=[{detailName: "HGB*3/HCT",maxValue: "",minValue: "",name: "血常规",otherValue: "",source: "0",time: "2019-05-07 17:11",uniqueName: "血常规-HGB*3/HCT",units: "",value: "4"}]&diagJson=急性胰腺炎&pastJson=无心脏病&otherJson=无高血压&pacsJson=腹部B超:无异常, 报告日期:2019-05-07&sex=男&symptomJson=恶心呕吐腰痛&vitalJson=血压左上肢13/12mmHg')
+];
+$(".iframeContainer").attr("src",'index.html?age=22&lisJson='+JSON.stringify(lis)+'&diagJson=糖尿病&pastJson=无心脏病&otherJson=无高血压&pacsJson=腹部B超:无异常, 报告日期:2019-05-07&sex=男&symptomJson=恶心呕吐腰痛&vitalJson=血压左上肢13/12mmHg')