Explorar el Código

Merge branch 'new_pad_branch' of http://git.shengws.com/zhangbj/xt_pad into new_pad_branch

xiaoming_global hace 5 años
padre
commit
6a2ff6cdbb

+ 103 - 19
src/pages/home/login.vue Ver fichero

@@ -10,21 +10,11 @@
10 10
             <ul>
11 11
               <li>
12 12
                 <span class="iconfont">&#xe78b;</span>
13
-                <input
14
-                  placeholder="请输入手机号"
15
-                  type="tel"
16
-                  class="tel"
17
-                  v-model="form.mobile"
18
-                />
13
+                <input placeholder="请输入手机号" type="tel" class="tel" v-model="form.mobile" />
19 14
               </li>
20 15
               <li>
21 16
                 <span class="iconfont">&#xe6c0;</span>
22
-                <input
23
-                  placeholder="请输入密码"
24
-                  type="password"
25
-                  class="tel"
26
-                  v-model="form.pwd"
27
-                />
17
+                <input placeholder="请输入密码" type="password" class="tel" v-model="form.pwd" />
28 18
               </li>
29 19
             </ul>
30 20
           </div>
@@ -39,15 +29,13 @@
39 29
             :disabled="loginDisable"
40 30
           >
41 31
             登录
42
-          </button> -->
32
+          </button>-->
43 33
           <button
44 34
             class="loginBtn"
45 35
             @click="submitForm"
46 36
             :class="loginDisable ? 'disableLoginBtn' : ''"
47 37
             :disabled="loginDisable"
48
-          >
49
-            登录
50
-          </button>
38
+          >登录</button>
51 39
 
52 40
           <!-- <router-link to="/forgetPassword"> -->
53 41
           <div class="newForget" style="display:none">忘记密码</div>
@@ -57,6 +45,17 @@
57 45
           <a href="">免密码登录</a>
58 46
           <a href="">忘记密码?</a>
59 47
           </div>-->
48
+          <div class="agree">
49
+            <el-checkbox v-model="agreement">
50
+              我已阅读并同意
51
+              <!-- <router-link to="/privacyPolicy"> -->
52
+
53
+              <!-- </router-link> -->
54
+            </el-checkbox>
55
+            <!-- <router-link to="/privacyPolicy"> -->
56
+            <span class="agreeText" @click="agree">《隐私服务协议》</span>
57
+            <!-- </router-link> -->
58
+          </div>
60 59
         </div>
61 60
       </div>
62 61
     </div>
@@ -77,7 +76,8 @@ export default {
77 76
         mobile: "",
78 77
         pwd: ""
79 78
       },
80
-      checked: false
79
+      checked: false,
80
+      agreement: true
81 81
     };
82 82
   },
83 83
   computed: {
@@ -215,6 +215,9 @@ export default {
215 215
     //清除cookie
216 216
     clearCookie: function() {
217 217
       this.setCookie("", "", -1); //修改2值都为空,天数为负1天就好了
218
+    },
219
+    agree() {
220
+      this.$router.push({ path: "/privacyPolicy" });
218 221
     }
219 222
   }
220 223
 };
@@ -223,7 +226,7 @@ export default {
223 226
 <style rel="stylesheet/scss" lang="scss" scoped>
224 227
 .container {
225 228
   // background: $white-bg;
226
-  background: #f5f5f5;
229
+  background: #fff;
227 230
   @include box-sizing;
228 231
   position: fixed;
229 232
   width: 100%;
@@ -235,7 +238,7 @@ export default {
235 238
     width: 90%;
236 239
     height: 90%;
237 240
     margin: auto;
238
-    box-shadow: 0px 2px 25px 0px rgba(37, 143, 252, 0.1);
241
+    // box-shadow: 0px 2px 25px 0px rgba(37, 143, 252, 0.1);
239 242
     border-radius: 14px;
240 243
     background: #fff;
241 244
   }
@@ -336,5 +339,86 @@ export default {
336 339
   .remember {
337 340
     float: left;
338 341
   }
342
+  .agreeText {
343
+    color: #409eff;
344
+    font-size: 14px;
345
+  }
346
+}
347
+</style>
348
+
349
+<style lang="scss">
350
+.remember {
351
+  .el-checkbox__inner {
352
+    @media only screen and (min-width: 415px) and (max-width: 767px) {
353
+      width: 20px;
354
+      height: 20px;
355
+    }
356
+    @media only screen and (min-width: 768px) {
357
+      width: 20px;
358
+      height: 20px;
359
+    }
360
+  }
361
+  .el-checkbox__inner::after {
362
+    @media only screen and (min-width: 415px) and (max-width: 767px) {
363
+      left: 7px;
364
+      height: 12px;
365
+      width: 4px;
366
+    }
367
+
368
+    @media only screen and (min-width: 768px) {
369
+      left: 7px;
370
+      height: 12px;
371
+      width: 4px;
372
+    }
373
+  }
374
+  .el-checkbox__label {
375
+    @media only screen and (min-width: 415px) and (max-width: 767px) {
376
+      font-size: 0.45rem;
377
+    }
378
+    @media only screen and (min-width: 768px) {
379
+      font-size: 0.45rem;
380
+    }
381
+  }
382
+}
383
+.agree {
384
+  .el-checkbox__inner {
385
+    @media only screen and (min-width: 415px) and (max-width: 767px) {
386
+      width: 20px;
387
+      height: 20px;
388
+    }
389
+    @media only screen and (min-width: 768px) {
390
+      width: 20px;
391
+      height: 20px;
392
+    }
393
+  }
394
+  .el-checkbox__inner::after {
395
+    @media only screen and (min-width: 415px) and (max-width: 767px) {
396
+      left: 7px;
397
+      height: 12px;
398
+      width: 4px;
399
+    }
400
+
401
+    @media only screen and (min-width: 768px) {
402
+      left: 7px;
403
+      height: 12px;
404
+      width: 4px;
405
+    }
406
+  }
407
+  .el-checkbox__label {
408
+    @media only screen and (min-width: 415px) and (max-width: 767px) {
409
+      font-size: 0.45rem;
410
+    }
411
+    @media only screen and (min-width: 768px) {
412
+      font-size: 0.45rem;
413
+    }
414
+  }
415
+  .agreeText {
416
+    @media only screen and (min-width: 415px) and (max-width: 767px) {
417
+      font-size: 0.45rem;
418
+    }
419
+    @media only screen and (min-width: 768px) {
420
+      font-size: 0.45rem;
421
+    }
422
+  }
339 423
 }
340 424
 </style>

+ 7 - 6
src/pages/main/PatientBox.vue Ver fichero

@@ -26,9 +26,7 @@
26 26
           <div class="right">
27 27
             <h3 class="name">
28 28
               {{ patient.patient.name }}
29
-              <span class="el-icon-bell yztx" v-if="getStatus(patient)"
30
-                >医嘱</span
31
-              >
29
+              <span class="yztx" v-if="getStatus(patient)">医嘱</span>
32 30
               <span class="yc" v-show="isAbnormal(patient)">异常</span>
33 31
             </h3>
34 32
             <span class="num"
@@ -39,7 +37,7 @@
39 37
         </div>
40 38
         <div
41 39
           class="online"
42
-          style="flex:1.3;"
40
+          style="flex:1.1;"
43 41
           v-show="computeState(patient) != 4"
44 42
         >
45 43
           <p :class="stateColor(patient)">{{ stateText(patient) }}</p>
@@ -344,7 +342,7 @@ export default {
344 342
         height: 1rem;
345 343
         border-radius: 50%;
346 344
         float: left;
347
-        margin: 0 0.3rem 0 0;
345
+        margin: 0 0.2rem 0 0;
348 346
       }
349 347
       .right {
350 348
         float: left;
@@ -357,6 +355,9 @@ export default {
357 355
           @media only screen and (max-width: 415px) {
358 356
             font-size: 0.45rem;
359 357
           }
358
+          @media only screen and (min-width: 416px) and (max-width: 767px) {
359
+            font-size: 0.4rem;
360
+          }
360 361
           .yc {
361 362
             background: #ff7979;
362 363
             color: #fff;
@@ -455,7 +456,7 @@ export default {
455 456
   padding: 3px 10px;
456 457
   background-color: #f56c6c;
457 458
   color: #fff;
458
-  border-radius: 15px;
459
+  border-radius: 3px;
459 460
   font-size: 0.32rem;
460 461
   @media only screen and (max-width: 415px) {
461 462
     font-size: 0.34rem !important;

+ 4 - 1
src/pages/main/dialog/OrdersDialog.vue Ver fichero

@@ -1402,9 +1402,12 @@
1402 1402
 }
1403 1403
 .table {
1404 1404
   width: 1200px;
1405
-  @media only screen and (max-width: 767px) {
1405
+  @media only screen and (max-width: 415px) {
1406 1406
       width: 850px;
1407 1407
     }
1408
+    @media only screen and (min-width: 415px) and (max-width: 767px) {
1409
+      width: 1000px;
1410
+    }
1408 1411
   tr {
1409 1412
     th {
1410 1413
       background: $main-color;

+ 1 - 1
src/pages/main/dialog/TwoMenu.vue Ver fichero

@@ -150,7 +150,7 @@ export default {
150 150
   @media only screen and (max-width: 812px) {
151 151
     min-height: 8rem !important;
152 152
   }
153
-  @media only screen and (min-width: 415px) and (max-width: 737px) {
153
+  @media only screen and (min-width: 415px) and (max-width: 767px) {
154 154
     max-height: 12.6rem !important;
155 155
   }
156 156
   ul {

+ 15 - 26
src/pages/main/dialog/new_order/AddNewOrders.vue Ver fichero

@@ -18,12 +18,7 @@
18 18
         <div style="overflow: hidden;">
19 19
           <div class="cell" style="margin-top: 0;">
20 20
             <label>医嘱类型</label>
21
-            <el-input
22
-              class="typeInput"
23
-              ref="advice_type"
24
-              value="临时"
25
-              disabled
26
-            ></el-input>
21
+            <el-input class="typeInput" ref="advice_type" value="临时" disabled></el-input>
27 22
           </div>
28 23
           <div class="cell" style="margin-top: 0;">
29 24
             <label>开始时间</label>
@@ -43,11 +38,7 @@
43 38
             <label>开嘱时间 {{ record_date_str }}</label>
44 39
           </div>
45 40
         </div>
46
-        <div
47
-          id="newDialogContent"
48
-          class="DialogContent choose"
49
-          style="height: 6.2rem;"
50
-        >
41
+        <div id="newDialogContent" class="DialogContent choose" style="height: 6.2rem;">
51 42
           <div class="newAddTable">
52 43
             <table class="table">
53 44
               <tr>
@@ -70,20 +61,16 @@
70 61
                 >
71 62
                   <td
72 63
                     style="text-align: left; padding-left: 5px; padding-right: 5px;"
73
-                  >
74
-                    {{ advice.title }}
75
-                  </td>
76
-                  <td v-if="advice.advice_desc">
77
-                    {{ advice.advice_desc }}{{ advice.drug_spec_unit }}
78
-                  </td>
64
+                  >{{ advice.title }}</td>
65
+                  <td v-if="advice.advice_desc">{{ advice.advice_desc }}{{ advice.drug_spec_unit }}</td>
79 66
                   <td v-if="advice.prescribing_number">
80 67
                     {{ advice.prescribing_number
81 68
                     }}{{ advice.prescribing_number_unit }}
82 69
                   </td>
83 70
                   <td v-else></td>
84
-                  <td v-if="advice.single_dose">
85
-                    {{ advice.single_dose }} {{ advice.single_dose_unit }}
86
-                  </td>
71
+                  <td
72
+                    v-if="advice.single_dose"
73
+                  >{{ advice.single_dose }} {{ advice.single_dose_unit }}</td>
87 74
                   <td v-else></td>
88 75
                   <td>{{ advice.delivery_way }}</td>
89 76
                   <td>{{ advice.execution_frequency }}</td>
@@ -100,12 +87,8 @@
100 87
                 >
101 88
                   <td
102 89
                     style="text-align: left; padding-right: 5px; padding-left: 25px;"
103
-                  >
104
-                    {{ subdrug.title }}
105
-                  </td>
106
-                  <td>
107
-                    {{ subdrug.advice_desc }} {{ subdrug.drug_spec_unit }}
108
-                  </td>
90
+                  >{{ subdrug.title }}</td>
91
+                  <td>{{ subdrug.advice_desc }} {{ subdrug.drug_spec_unit }}</td>
109 92
                   <td>
110 93
                     <span v-if="subdrug.prescribing_number">
111 94
                       {{ subdrug.prescribing_number
@@ -250,6 +233,11 @@ export default {
250 233
       parseTime(this.start_time, "{y}-{m}-{d} {h}:{i}") + ":00";
251 234
   },
252 235
   methods: {
236
+    ok() {
237
+      // alert(1);
238
+      // this.$refs.start_time_picker.close();
239
+      console.log(this.$refs.start_time_picker);
240
+    },
253 241
     backAction: function() {
254 242
       this.$emit("back-action");
255 243
     },
@@ -386,6 +374,7 @@ export default {
386 374
     didSelectStartTime: function(time) {
387 375
       this.start_time_str = parseTime(time, "{y}-{m}-{d} {h}:{i}") + ":00";
388 376
       console.log(".");
377
+      console.log(this.$refs.start_time_picker);
389 378
     },
390 379
     didSelectTemplateAdvice: function(resp_advices) {
391 380
       this.show_dialog_key = 0;

+ 5 - 1
src/router/index.js Ver fichero

@@ -1,7 +1,6 @@
1 1
 import Vue from "vue";
2 2
 import Router from "vue-router";
3 3
 
4
-
5 4
 Vue.use(Router);
6 5
 
7 6
 export default new Router({
@@ -75,6 +74,11 @@ export default new Router({
75 74
       path: "/changePassword",
76 75
       name: "changePassword",
77 76
       component: () => import("@/pages/personal/ChangePassword")
77
+    },
78
+    {
79
+      path: "/privacyPolicy",
80
+      name: "privacyPolicy",
81
+      component: () => import("@/pages/home/privacyPolicy")
78 82
     }
79 83
   ]
80 84
 });