Browse Source

修改医嘱提醒样式

张保健 5 years ago
parent
commit
ffebc380e2

+ 9 - 9
src/pages/layout/SideBar.vue View File

3
       <div class="column">
3
       <div class="column">
4
         <div class="head"><img :src="$store.getters.user.org.org_logo" alt=""></div>
4
         <div class="head"><img :src="$store.getters.user.org.org_logo" alt=""></div>
5
         <ul class="sidebar">
5
         <ul class="sidebar">
6
-            <li :class="active_index == 0 ? 'active' : ''">
6
+            <li style="position: relative;" :class="active_index == 0 ? 'active' : ''">
7
                 <router-link to="/main"> <span class="iconfont">&#xe6e6;</span><p>记录</p></router-link>
7
                 <router-link to="/main"> <span class="iconfont">&#xe6e6;</span><p>记录</p></router-link>
8
               <span class="redpoint" v-if="total_read_dot">{{total_read_dot > 99?total_read_dot+'+':total_read_dot}}</span>
8
               <span class="redpoint" v-if="total_read_dot">{{total_read_dot > 99?total_read_dot+'+':total_read_dot}}</span>
9
             </li>
9
             </li>
40
 <style style="stylesheet/scss" lang="scss" scoped>
40
 <style style="stylesheet/scss" lang="scss" scoped>
41
   .redpoint{
41
   .redpoint{
42
   display:inline-block;
42
   display:inline-block;
43
-  height:16px;
44
-  width:16px;
45
-  line-height:16px;
43
+  height:20px;
44
+  width:20px;
45
+  line-height:20px;
46
   text-align:center;
46
   text-align:center;
47
-  font-size:0.1em;
48
-  border-radius:16px;
47
+  font-size:0.2em;
48
+  border-radius:20px;
49
   color:#fff;
49
   color:#fff;
50
   background:red;
50
   background:red;
51
-  position: relative;
52
-  top: -8px;
53
-  right: 8px;
51
+  position: absolute;
52
+  top: -5px;
53
+  right: -15px;
54
   }
54
   }
55
 .sideColumn {
55
 .sideColumn {
56
   float: left;
56
   float: left;

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

5
       <!-- <router-link :to="{path:'/details',  query: {patient_id: patient.patient_id, date: patient.schedule_date}}"> -->
5
       <!-- <router-link :to="{path:'/details',  query: {patient_id: patient.patient_id, date: patient.schedule_date}}"> -->
6
       <div class="kehu">
6
       <div class="kehu">
7
 
7
 
8
-        <div class="tx">
8
+        <div style="position: relative;" class="tx">
9
             <img :src="patient.patient.avatar.length > 0 ? patient.patient.avatar : '../../assets/product/test.jpg'"
9
             <img :src="patient.patient.avatar.length > 0 ? patient.patient.avatar : '../../assets/product/test.jpg'"
10
                  alt="">
10
                  alt="">
11
-            <span class="redpoint" v-if="getStatus(patient)">{{getUnReadNum(patient) > 99?getUnReadNum(patient)+"+":getUnReadNum(patient)}}
12
-           </span>
11
+            <span class="redpoint" v-if="getStatus(patient)">{{getUnReadNum(patient) > 99?getUnReadNum(patient)+"+":getUnReadNum(patient)}}</span>
13
           <div class="right">
12
           <div class="right">
14
-            <h3 class="name">{{patient.patient.name}}<span class="yc" v-show="isAbnormal(patient)">异常</span></h3>
13
+            <h3 class="name">{{patient.patient.name}}<span class="el-icon-bell yztx" v-if="getStatus(patient)"> 医嘱</span> <span class="yc" v-show="isAbnormal(patient)">异常</span></h3>
15
             <span class="num">{{ genderText(patient) }} | {{ age(patient) }}岁</span>
14
             <span class="num">{{ genderText(patient) }} | {{ age(patient) }}岁</span>
16
             <!-- 性别、年龄 -->
15
             <!-- 性别、年龄 -->
17
 
16
 
337
   }
336
   }
338
   .redpoint{
337
   .redpoint{
339
   display:inline-block;
338
   display:inline-block;
340
-  height:16px;
341
-  width:16px;
342
-  line-height:16px;
339
+  height:20px;
340
+  width:20px;
341
+  line-height:18px;
343
   text-align:center;
342
   text-align:center;
344
-  font-size:0.1em;
345
-  border-radius:16px;
343
+  font-size:0.8em;
344
+  border-radius:20px;
346
   color:#fff;
345
   color:#fff;
347
   background:red;
346
   background:red;
348
-  position: relative;
347
+  position: absolute;
349
   top: -8px;
348
   top: -8px;
350
-  right: 8px;
349
+  left: 0.7rem;
350
+  border:1px solid #fff;
351
+  }
352
+  .yztx{
353
+    margin: 0 15px;
354
+    padding: 5px 15px;
355
+    background-color: red;
356
+    color: #fff;
357
+    border-radius: 15px;
351
   }
358
   }
352
 </style>
359
 </style>
353
 
360
 

+ 10 - 9
src/pages/main/RecordPage.vue View File

9
       <van-col :span="6">
9
       <van-col :span="6">
10
         <div class="department">
10
         <div class="department">
11
           <ul>
11
           <ul>
12
-            <li :class="index == 0? 'active':'' " @click="ClickTab(0)">
12
+            <li style="position: relative;" :class="index == 0? 'active':'' " @click="ClickTab(0)">
13
               {{'候诊区'}}
13
               {{'候诊区'}}
14
               <span class="redpoint" v-if="un_read_wait_num">{{un_read_wait_num > 99 ? un_read_wait_num+'+':un_read_wait_num}}</span>
14
               <span class="redpoint" v-if="un_read_wait_num">{{un_read_wait_num > 99 ? un_read_wait_num+'+':un_read_wait_num}}</span>
15
             </li>
15
             </li>
16
-            <li :class="index == 1? 'active':'' " @click="ClickTab(1)">
16
+            <li style="position: relative;" :class="index == 1? 'active':'' " @click="ClickTab(1)">
17
               {{'透析区'}}
17
               {{'透析区'}}
18
               <span class="redpoint" v-if="un_read_dialysis_num">{{un_read_dialysis_num > 99 ? un_read_dialysis_num+'+':un_read_dialysis_num}}</span>
18
               <span class="redpoint" v-if="un_read_dialysis_num">{{un_read_dialysis_num > 99 ? un_read_dialysis_num+'+':un_read_dialysis_num}}</span>
19
             </li>
19
             </li>
156
 
156
 
157
   .redpoint{
157
   .redpoint{
158
   display:inline-block;
158
   display:inline-block;
159
-  height:16px;
160
-  width:16px;
161
-  line-height:16px;
159
+  height:20px;
160
+  width:20px;
161
+  line-height:18px;
162
   text-align:center;
162
   text-align:center;
163
-  font-size:0.1em;
164
-  border-radius:16px;
163
+  font-size:0.8em;
164
+  border-radius:20px;
165
   color:#fff;
165
   color:#fff;
166
   background:red;
166
   background:red;
167
-  position: relative;
167
+  position: absolute;
168
   top: -8px;
168
   top: -8px;
169
-  right: 8px;
169
+  right: -8px;
170
+  border: 1px solid #fff;
170
   }
171
   }
171
 </style>
172
 </style>
172
 
173
 

+ 9 - 8
src/pages/main/today/TodayTab.vue View File

16
             <img src="@/assets/record/4.png">
16
             <img src="@/assets/record/4.png">
17
             <p>透前评估</p>
17
             <p>透前评估</p>
18
           </li>
18
           </li>
19
-          <li @click="menuClick(4)">
19
+          <li style="position: relative;" @click="menuClick(4)">
20
             <img src="@/assets/record/5.png">
20
             <img src="@/assets/record/5.png">
21
             <span class="redpoint" v-if="getUnReadNum()">{{getUnReadNum()}}
21
             <span class="redpoint" v-if="getUnReadNum()">{{getUnReadNum()}}
22
            </span>
22
            </span>
1067
 }
1067
 }
1068
   .redpoint{
1068
   .redpoint{
1069
   display:inline-block;
1069
   display:inline-block;
1070
-  height:16px;
1071
-  width:16px;
1072
-  line-height:16px;
1070
+  height:20px;
1071
+  width:20px;
1072
+  line-height:18px;
1073
   text-align:center;
1073
   text-align:center;
1074
-  font-size:0.1em;
1075
-  border-radius:16px;
1074
+  font-size:0.8em;
1075
+  border-radius:20px;
1076
   color:#fff;
1076
   color:#fff;
1077
   background:red;
1077
   background:red;
1078
-  position: relative;
1078
+  position: absolute;
1079
+  border: 1px solid #fff;
1079
   top: -8px;
1080
   top: -8px;
1080
-  right: 8px;
1081
+  right: -8px;
1081
   }
1082
   }
1082
 </style>
1083
 </style>
1083
 
1084