Преглед изворни кода

修改化验辅检标题样式

zhangxc пре 5 година
родитељ
комит
133c06d83e
2 измењених фајлова са 5 додато и 4 уклоњено
  1. 1 1
      src/css/indexHorizontal.less
  2. 4 3
      src/js/indexHorizontal.js

+ 1 - 1
src/css/indexHorizontal.less

@@ -277,7 +277,7 @@
     margin-top: 10px;
 }
 .labAndPacsRecommend  .labAndPacsTitle {
-    padding:5px; 
+    padding: 0 5px; 
     margin-right: 5px;
     background: #e2eaf2;
     border-radius: 4px;

+ 4 - 3
src/js/indexHorizontal.js

@@ -151,17 +151,18 @@ function getTipsInfo() {
 
 function getPageInfo() {
   Promise.all([getConf(),getPushInfo(),getTreatment(),getTipsInfo()]).then(([res1, res2, res3,res4]) =>{
-    if(pushInfo&&pushInfo.code == 0) {
+    const {pushInfo, treatInfo, tipsInfo} = window
+    if(pushInfo&&pushInfo.code&&pushInfo.code == 0) {
       pushResult = pushInfo.data;
     } else {
       pushResult = {};
     }
-    if(treatInfo&&treatInfo.code == 0) {
+    if(treatInfo&&treatInfo.code&&treatInfo.code == 0) {
       treatResult = treatInfo.data
     } else {
       treatResult = {}
     }
-    if(tipsInfo&&tipsInfo.code == 0) {
+    if(tipsInfo&&tipsInfo.code&&tipsInfo.code == 0) {
       tipsResult = tipsInfo.data
     } else {
       tipsResult = {}