Browse Source

修改多行症状时问题

zhangxc 5 years ago
parent
commit
529cfa0447
2 changed files with 3 additions and 2 deletions
  1. 1 1
      src/js/index.js
  2. 2 1
      src/js/indexVertDom.js

+ 1 - 1
src/js/index.js

@@ -212,8 +212,8 @@ function getPageInfo() {
       }
     ]
     window.pushMessage = medicalIndications;//计算的需要的相关数据
+
     for(let i = 0; i < confArr.length; i++) {
-  
       switch(confArr[i].code) {
         case "inquiry_show":  //问诊症状
           renderRecommendInfo('symptomRecommend', '问诊症状', symptomRecommend, false)

+ 2 - 1
src/js/indexVertDom.js

@@ -39,11 +39,12 @@ function renderRecommendInfo(className,title,data, hasInfo, type, position) {
 }
 
 function renderMultRecommendInfo(className,title,data, hasInfo, type, position) {
+    console.log('data', data)
     const str = `<div class="recommendInfoWrapper ${className}">
                     <h4><i></i>${title}</h4>
                     <div class="recommendInfoBox ${className + 'box'}"></div>
                 </div>`
-    $('.recommendInfoWrapper').append(str)
+    $('.recommendWrap').append(str)
     for(let i = 0; i < data.length; i++) {
         let childrenNodeBoxStr  = `<div class="labAndPacsBox ${data[i].className} clearfix"> </div>`
         let childrenNodeStr =  `<span class="labAndPacsTitle">${data[i].title}<i></i></span>`