Browse Source

修改样式

See999 4 years ago
parent
commit
87e7872272
4 changed files with 67 additions and 37 deletions
  1. 12 8
      src/pages/layout/SideBar.vue
  2. 41 18
      src/pages/main/PatientBox.vue
  3. 13 11
      src/pages/main/RecordPage.vue
  4. 1 0
      src/styles/style.scss

+ 12 - 8
src/pages/layout/SideBar.vue View File

@@ -3,17 +3,15 @@
3 3
     <div class="column">
4 4
       <!-- <div class="head"><img :src="$store.getters.user.org.org_logo" alt=""></div> -->
5 5
       <ul class="sidebar">
6
-        <li
7
-          style="position: relative;"
8
-          :class="active_index == 0 ? 'active' : ''"
9
-        >
6
+        <li style="position: relative;" :class="active_index == 0 ? 'active' : ''">
10 7
           <router-link to="/main">
11 8
             <span class="iconfont">&#xe6e6;</span>
12 9
             <p>记录</p>
13 10
           </router-link>
14
-          <span class="redpoint" v-if="total_read_dot">
15
-            {{ total_read_dot > 99 ? total_read_dot + "+" : total_read_dot }}
16
-          </span>
11
+          <span
12
+            class="redpoint"
13
+            v-if="total_read_dot"
14
+          >{{ total_read_dot > 99 ? total_read_dot + "+" : total_read_dot }}</span>
17 15
         </li>
18 16
         <li :class="active_index == 1 ? 'active' : ''">
19 17
           <router-link to="/monitoring">
@@ -68,13 +66,19 @@ export default {
68 66
   position: absolute;
69 67
   top: 3px;
70 68
   right: -16px;
71
-  @media only screen and (max-width: 767px) {
69
+  @media only screen and (max-width: 415px) {
72 70
     height: 16px;
73 71
     width: 16px;
74 72
     line-height: 16px;
75 73
     top: 1px;
76 74
     right: -8px;
77 75
   }
76
+  @media only screen and (min-width: 415px) and (max-width: 767px) {
77
+    height: 20px;
78
+    width: 20px;
79
+    line-height: 21px;
80
+    font-size: 0.36rem;
81
+  }
78 82
 }
79 83
 .sideColumn {
80 84
   // float: left;

+ 41 - 18
src/pages/main/PatientBox.vue View File

@@ -18,28 +18,24 @@
18 18
             "
19 19
             alt
20 20
           />
21
-          <span class="redpoint" v-if="getStatus(patient)">{{
21
+          <span class="redpoint" v-if="getStatus(patient)">
22
+            {{
22 23
             getUnReadNum(patient) > 99
23
-              ? getUnReadNum(patient) + "+"
24
-              : getUnReadNum(patient)
25
-          }}</span>
24
+            ? getUnReadNum(patient) + "+"
25
+            : getUnReadNum(patient)
26
+            }}
27
+          </span>
26 28
           <div class="right">
27 29
             <h3 class="name">
28 30
               {{ patient.patient.name }}
29 31
               <span class="yztx" v-if="getStatus(patient)">医嘱</span>
30 32
               <span class="yc" v-show="isAbnormal(patient)">异常</span>
31 33
             </h3>
32
-            <span class="num"
33
-              >{{ genderText(patient) }} | {{ age(patient) }}岁</span
34
-            >
34
+            <span class="num">{{ genderText(patient) }} | {{ age(patient) }}岁</span>
35 35
             <!-- 性别、年龄 -->
36 36
           </div>
37 37
         </div>
38
-        <div
39
-          class="online"
40
-          style="flex:1.1;"
41
-          v-show="computeState(patient) != 4"
42
-        >
38
+        <div class="online" style="flex:1;" v-show="computeState(patient) != 4">
43 39
           <p :class="stateColor(patient)">{{ stateText(patient) }}</p>
44 40
           <!-- <span class="time">剩余时间 : 90:08</span>     -->
45 41
         </div>
@@ -55,11 +51,11 @@
55 51
             <span class="iconfont">&#xe6de;</span>
56 52
             床位号 :
57 53
             {{
58
-              patient.dialysis_order &&
59
-              patient.dialysis_order.device_number &&
60
-              patient.dialysis_order.device_number.number.length > 0
61
-                ? patient.dialysis_order.device_number.number
62
-                : patient.device_number.number
54
+            patient.dialysis_order &&
55
+            patient.dialysis_order.device_number &&
56
+            patient.dialysis_order.device_number.number.length > 0
57
+            ? patient.dialysis_order.device_number.number
58
+            : patient.device_number.number
63 59
             }}
64 60
           </li>
65 61
           <li>
@@ -298,9 +294,17 @@ export default {
298 294
   @media only screen and (max-width: 415px) {
299 295
     width: 96% !important;
300 296
   }
297
+  @media only screen and (min-width: 415px) and (max-width: 767px) {
298
+    width: 48%;
299
+    margin: 0 1% 0.5rem 0;
300
+  }
301 301
   .function {
302 302
     padding: 0.3rem 0.32rem 0 0.32rem;
303 303
     color: #7b8a97;
304
+    @media only screen and (min-width: 415px) and (max-width: 767px) {
305
+      margin: 0;
306
+      padding: 0.3rem 0.1rem 0 0.1rem;
307
+    }
304 308
     ul {
305 309
       @include display-flex;
306 310
       @include align-items-center;
@@ -334,6 +338,9 @@ export default {
334 338
     @include justify-content-between;
335 339
     border-bottom: 1px #e5e5e5 solid;
336 340
     padding: 0 0 0.3rem 0.32rem;
341
+    @media only screen and (min-width: 415px) and (max-width: 767px) {
342
+      padding: 0 0 0.3rem 0.1rem;
343
+    }
337 344
     .tx {
338 345
       @include display-flex;
339 346
       @include align-items-center;
@@ -397,6 +404,10 @@ export default {
397 404
           font-size: 0.36rem;
398 405
           width: 1.7rem;
399 406
         }
407
+        @media only screen and (min-width: 415px) and (max-width: 767px) {
408
+          width: 1.3rem;
409
+          font-size: 0.36rem;
410
+        }
400 411
       }
401 412
       .blue {
402 413
         background: $main-color;
@@ -443,13 +454,21 @@ export default {
443 454
   top: -6px;
444 455
   left: 0.6rem;
445 456
   border: 1px solid #fff;
446
-  @media only screen and (max-width: 767px) {
457
+  @media only screen and (max-width: 415px) {
447 458
     height: 16px;
448 459
     width: 16px;
449 460
     line-height: 15px;
450 461
     top: -6px;
451 462
     left: 0.6rem;
452 463
   }
464
+  @media only screen and (min-width: 415px) and (max-width: 767px) {
465
+    height: 20px;
466
+    width: 20px;
467
+    line-height: 19px;
468
+    top: -6px;
469
+    left: 0.6rem;
470
+    font-size: 0.36rem;
471
+  }
453 472
 }
454 473
 .yztx {
455 474
   margin: 0 5px;
@@ -461,5 +480,9 @@ export default {
461 480
   @media only screen and (max-width: 415px) {
462 481
     font-size: 0.34rem !important;
463 482
   }
483
+  @media only screen and (min-width: 415px) and (max-width: 767px) {
484
+    margin: 0;
485
+    padding: 3px 3px;
486
+  }
464 487
 }
465 488
 </style>

+ 13 - 11
src/pages/main/RecordPage.vue View File

@@ -76,9 +76,9 @@
76 76
               {{ "候诊区" }}
77 77
               <span class="redpoint" v-if="un_read_wait_num">
78 78
                 {{
79
-                  un_read_wait_num > 99
80
-                    ? un_read_wait_num + "+"
81
-                    : un_read_wait_num
79
+                un_read_wait_num > 99
80
+                ? un_read_wait_num + "+"
81
+                : un_read_wait_num
82 82
                 }}
83 83
               </span>
84 84
             </li>
@@ -90,9 +90,9 @@
90 90
               {{ "透析区" }}
91 91
               <span class="redpoint" v-if="un_read_dialysis_num">
92 92
                 {{
93
-                  un_read_dialysis_num > 99
94
-                    ? un_read_dialysis_num + "+"
95
-                    : un_read_dialysis_num
93
+                un_read_dialysis_num > 99
94
+                ? un_read_dialysis_num + "+"
95
+                : un_read_dialysis_num
96 96
                 }}
97 97
               </span>
98 98
             </li>
@@ -118,11 +118,7 @@
118 118
         <van-button size="small" type="info">临时排班</van-button>
119 119
     </div>-->
120 120
     <div class="area">
121
-      <waiting-area
122
-        v-show="index == 0"
123
-        title="候诊区"
124
-        :search_keyword="search_keyword"
125
-      ></waiting-area>
121
+      <waiting-area v-show="index == 0" title="候诊区" :search_keyword="search_keyword"></waiting-area>
126 122
       <dialysis-area
127 123
         v-show="index == 1"
128 124
         title="透析区"
@@ -284,6 +280,12 @@ export default {
284 280
     width: 16px;
285 281
     line-height: 15px;
286 282
   }
283
+  @media only screen and (min-width: 415px) and (max-width: 767px) {
284
+    height: 20px;
285
+    width: 20px;
286
+    line-height: 20px;
287
+    font-size: 0.36rem;
288
+  }
287 289
 }
288 290
 .box {
289 291
   height: 1rem;

+ 1 - 0
src/styles/style.scss View File

@@ -922,6 +922,7 @@ body {
922 922
   }
923 923
   @media only screen and (min-width: 415px) and (max-width: 767px) {
924 924
     padding-top: 186px;
925
+    padding-left: 0.3rem;
925 926
   }
926 927
 }
927 928
 #app {