See999 преди 4 години
родител
ревизия
f61876df12

BIN
src/assets/images/S16.png Целия файл


BIN
src/assets/images/S17.png Целия файл


BIN
src/assets/images/T1.png Целия файл


BIN
src/assets/images/T2.png Целия файл


BIN
src/assets/images/T3.png Целия файл


BIN
src/assets/images/banner_03.png Целия файл


BIN
src/assets/images/none.png Целия файл


+ 11 - 2
src/main.js Целия файл

@@ -11,6 +11,7 @@ import "./permission";
11 11
 
12 12
 import "@/styles/reset.scss";
13 13
 import "@/styles/variables.scss";
14
+import "@/styles/newStyle.scss";
14 15
 // import "@/styles/style.scss";
15 16
 // eslint-disable-next-line import/no-duplicates
16 17
 // import Vant from "vant";
@@ -47,7 +48,11 @@ import {
47 48
   Toast,
48 49
   Search,
49 50
   IndexBar,
50
-  IndexAnchor
51
+  IndexAnchor,
52
+  Swipe,
53
+  SwipeItem,
54
+  Col,
55
+  Row
51 56
   // eslint-disable-next-line no-irregular-whitespace,import/no-duplicates
52 57
 } from "vant";
53 58
 Vue.use(DropdownMenu)
@@ -74,7 +79,11 @@ Vue.use(DropdownMenu)
74 79
   .use(Toast)
75 80
   .use(Search)
76 81
   .use(IndexBar)
77
-  .use(IndexAnchor);
82
+  .use(IndexAnchor)
83
+  .use(Swipe)
84
+  .use(SwipeItem)
85
+  .use(Col)
86
+  .use(Row);
78 87
 // import "@/lib/flexible.js";
79 88
 
80 89
 // main.js

+ 246 - 0
src/pages/doctorAdvice/components/deviceManagement.vue Целия файл

@@ -0,0 +1,246 @@
1
+<template>
2
+  <div class="deviceManagement">
3
+    <div>
4
+      <div class="toolBox">
5
+        <div class="toolOne" @click="startShow = true">
6
+          <div style="display: flex;align-items: center;">
7
+            {{ startTime }}
8
+            <van-icon name="arrow-down" />
9
+          </div>
10
+        </div>
11
+        <div class="toolOne" @click="endShow = true">
12
+          <div style="display: flex;align-items: center;">
13
+            {{ endTime }}
14
+            <van-icon name="arrow-down" />
15
+          </div>
16
+        </div>
17
+      </div>
18
+      <div class="noimgBox">
19
+        <img src="../../../assets/images/none.png" alt />
20
+      </div>
21
+      <!-- <div class="adviceBox">
22
+        <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
23
+          <div class="adviceOne" v-for="item in 3" :key="index">
24
+            <div class="adviceTitle">
25
+              <p>2019.09.01</p>
26
+              <van-icon class="ellipsis" name="ellipsis" @click="newShow = true" />
27
+            </div>
28
+            <div class="orderContent">
29
+              <p>血压</p>
30
+              <p>血糖</p>
31
+              <p>体重</p>
32
+              <p>体温</p>
33
+              <p>心率</p>
34
+            </div>
35
+            <div class="all">全部</div>
36
+          </div>
37
+        </van-list>
38
+      </div>-->
39
+    </div>
40
+    <div class="add">
41
+      <div style="display: flex;align-items: center;">
42
+        <van-icon class="addIcon" name="add" />新增
43
+      </div>
44
+    </div>
45
+
46
+    <!-- 弹出层 -->
47
+    <div>
48
+      <van-popup v-model="typeShow" position="bottom" :style="{ height: '40%' }">
49
+        <van-picker show-toolbar :columns="columns" @cancel="onCancel" @confirm="onConfirm" />
50
+      </van-popup>
51
+      <van-popup v-model="startShow" position="bottom" :style="{ height: '40%' }">
52
+        <van-datetime-picker
53
+          v-model="currentDate"
54
+          type="date"
55
+          :min-date="minDate"
56
+          :max-date="maxDate"
57
+          @confirm="getstartTime"
58
+          @cancel="startShow = false"
59
+        />
60
+      </van-popup>
61
+      <van-popup v-model="endShow" position="bottom" :style="{ height: '40%' }">
62
+        <van-datetime-picker
63
+          v-model="currentDate"
64
+          type="date"
65
+          :min-date="minDate"
66
+          :max-date="maxDate"
67
+          @confirm="getstartTime2"
68
+          @cancel="endShow = false"
69
+        />
70
+      </van-popup>
71
+      <van-action-sheet v-model="newShow" :actions="actions" cancel-text="取消" @cancel="onCancel" />
72
+    </div>
73
+  </div>
74
+</template>
75
+
76
+<script>
77
+export default {
78
+  data() {
79
+    return {
80
+      newShow: false,
81
+      typeShow: false,
82
+      startShow: false,
83
+      endShow: false,
84
+      type: "请选择",
85
+      columns: [
86
+        "杭州",
87
+        "宁波",
88
+        "温州",
89
+        "嘉兴",
90
+        "湖州",
91
+        "杭州",
92
+        "宁波",
93
+        "温州",
94
+        "嘉兴",
95
+        "湖州"
96
+      ],
97
+      startTime: "请选择",
98
+      endTime: "请选择",
99
+      minDate: new Date(1970, 0, 1),
100
+      maxDate: new Date(2025, 10, 1),
101
+      currentDate: new Date(),
102
+      actions: [{ name: "编辑" }, { name: "删除" }]
103
+    };
104
+  },
105
+  methods: {
106
+    onCancel() {
107
+      this.typeShow = false;
108
+    },
109
+    onConfirm(value) {
110
+      this.type = value;
111
+      this.typeShow = false;
112
+    },
113
+    getstartTime(value) {
114
+      console.log(value);
115
+      let year = value.getFullYear();
116
+      let month = value.getMonth() + 1;
117
+      let day = value.getDate();
118
+      if (month >= 1 && month <= 9) {
119
+        month = `0${month}`;
120
+      }
121
+      if (day >= 1 && day <= 9) {
122
+        day = `0${day}`;
123
+      }
124
+
125
+      this.startTime = `${year}-${month}-${day}`;
126
+      this.startShow = false;
127
+    },
128
+    getstartTime2(value) {
129
+      console.log(value);
130
+      let year = value.getFullYear();
131
+      let month = value.getMonth() + 1;
132
+      let day = value.getDate();
133
+      if (month >= 1 && month <= 9) {
134
+        month = `0${month}`;
135
+      }
136
+      if (day >= 1 && day <= 9) {
137
+        day = `0${day}`;
138
+      }
139
+
140
+      this.endTime = `${year}-${month}-${day}`;
141
+      this.endShow = false;
142
+    }
143
+  }
144
+};
145
+</script>
146
+
147
+<style lang="scss" scoped>
148
+.deviceManagement {
149
+  height: 100%;
150
+  overflow-y: auto;
151
+  .toolBox {
152
+    display: flex;
153
+    height: 3.125rem;
154
+    align-items: center;
155
+    .toolOne {
156
+      width: 5.625rem;
157
+      height: 1.875rem;
158
+      background: rgba(246, 246, 246, 1);
159
+      border-radius: 5px;
160
+      text-align: center;
161
+      font-size: 0.8125rem;
162
+      color: #8d8d8d;
163
+      display: flex;
164
+      align-items: center;
165
+      justify-content: space-around;
166
+      margin-left: 0.8125rem;
167
+    }
168
+  }
169
+  .adviceBox {
170
+    padding: 0 1.125rem;
171
+    margin-bottom: 3.125rem;
172
+  }
173
+  .adviceOne {
174
+    box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.1);
175
+    padding-bottom: 0.625rem;
176
+  }
177
+  .adviceTitle {
178
+    padding-top: 0.625rem;
179
+    display: flex;
180
+    align-items: center;
181
+    justify-content: space-between;
182
+    p {
183
+      color: #000000;
184
+      font-weight: bold;
185
+      font-size: 0.9375rem;
186
+    }
187
+    .ellipsis {
188
+      font-size: 1.25rem;
189
+      color: #cccccc;
190
+    }
191
+  }
192
+  .orderContent {
193
+    font-size: 0.875rem;
194
+    color: rgba(49, 50, 52, 1);
195
+    margin-top: 0.625rem;
196
+    p {
197
+      line-height: 1.25rem;
198
+    }
199
+  }
200
+  .doctorBox {
201
+    font-size: 0.75rem;
202
+    color: rgba(152, 152, 152, 1);
203
+    line-height: 1.125rem;
204
+    display: flex;
205
+    align-items: center;
206
+    justify-content: space-between;
207
+    margin-top: 0.625rem;
208
+  }
209
+  .all {
210
+    font-size: 0.8125rem;
211
+    color: #5b98ff;
212
+    margin-top: 0.625rem;
213
+  }
214
+  .noimgBox {
215
+    margin-top: 40%;
216
+    img {
217
+      width: 6.25rem;
218
+      height: 6.25rem;
219
+      margin: 0 auto;
220
+      display: block;
221
+    }
222
+  }
223
+  .add {
224
+    position: fixed;
225
+    bottom: 0;
226
+    left: 0;
227
+    width: 100%;
228
+    height: 2.75rem;
229
+    background: rgba(255, 255, 255, 1);
230
+    box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1);
231
+    display: flex;
232
+    align-items: center;
233
+    justify-content: space-around;
234
+    font-size: 0.9375rem;
235
+    color: #979798;
236
+    .addIcon {
237
+      color: #5b98ff;
238
+      font-size: 1.25rem;
239
+      margin-right: 0.25rem;
240
+    }
241
+  }
242
+}
243
+::-webkit-scrollbar {
244
+  width: 0;
245
+}
246
+</style>

+ 246 - 0
src/pages/doctorAdvice/components/medicationPlan.vue Целия файл

@@ -0,0 +1,246 @@
1
+<template>
2
+  <div class="medicationPlan">
3
+    <div>
4
+      <div class="toolBox">
5
+        <div class="toolOne" @click="startShow = true">
6
+          <div style="display: flex;align-items: center;">
7
+            {{ startTime }}
8
+            <van-icon name="arrow-down" />
9
+          </div>
10
+        </div>
11
+        <div class="toolOne" @click="endShow = true">
12
+          <div style="display: flex;align-items: center;">
13
+            {{ endTime }}
14
+            <van-icon name="arrow-down" />
15
+          </div>
16
+        </div>
17
+      </div>
18
+      <div class="noimgBox">
19
+        <img src="../../../assets/images/none.png" alt />
20
+      </div>
21
+      <!-- <div class="adviceBox">
22
+        <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
23
+          <div class="adviceOne" v-for="item in 3" :key="index">
24
+            <div class="adviceTitle">
25
+              <p>2019.09.01</p>
26
+              <van-icon class="ellipsis" name="ellipsis" @click="newShow = true" />
27
+            </div>
28
+            <div class="orderContent">
29
+              <p>血压</p>
30
+              <p>血糖</p>
31
+              <p>体重</p>
32
+              <p>体温</p>
33
+              <p>心率</p>
34
+            </div>
35
+            <div class="all">全部</div>
36
+          </div>
37
+        </van-list>
38
+      </div>-->
39
+    </div>
40
+    <div class="add">
41
+      <div style="display: flex;align-items: center;">
42
+        <van-icon class="addIcon" name="add" />新增
43
+      </div>
44
+    </div>
45
+
46
+    <!-- 弹出层 -->
47
+    <div>
48
+      <van-popup v-model="typeShow" position="bottom" :style="{ height: '40%' }">
49
+        <van-picker show-toolbar :columns="columns" @cancel="onCancel" @confirm="onConfirm" />
50
+      </van-popup>
51
+      <van-popup v-model="startShow" position="bottom" :style="{ height: '40%' }">
52
+        <van-datetime-picker
53
+          v-model="currentDate"
54
+          type="date"
55
+          :min-date="minDate"
56
+          :max-date="maxDate"
57
+          @confirm="getstartTime"
58
+          @cancel="startShow = false"
59
+        />
60
+      </van-popup>
61
+      <van-popup v-model="endShow" position="bottom" :style="{ height: '40%' }">
62
+        <van-datetime-picker
63
+          v-model="currentDate"
64
+          type="date"
65
+          :min-date="minDate"
66
+          :max-date="maxDate"
67
+          @confirm="getstartTime2"
68
+          @cancel="endShow = false"
69
+        />
70
+      </van-popup>
71
+      <van-action-sheet v-model="newShow" :actions="actions" cancel-text="取消" @cancel="onCancel" />
72
+    </div>
73
+  </div>
74
+</template>
75
+
76
+<script>
77
+export default {
78
+  data() {
79
+    return {
80
+      newShow: false,
81
+      typeShow: false,
82
+      startShow: false,
83
+      endShow: false,
84
+      type: "请选择",
85
+      columns: [
86
+        "杭州",
87
+        "宁波",
88
+        "温州",
89
+        "嘉兴",
90
+        "湖州",
91
+        "杭州",
92
+        "宁波",
93
+        "温州",
94
+        "嘉兴",
95
+        "湖州"
96
+      ],
97
+      startTime: "请选择",
98
+      endTime: "请选择",
99
+      minDate: new Date(1970, 0, 1),
100
+      maxDate: new Date(2025, 10, 1),
101
+      currentDate: new Date(),
102
+      actions: [{ name: "编辑" }, { name: "删除" }]
103
+    };
104
+  },
105
+  methods: {
106
+    onCancel() {
107
+      this.typeShow = false;
108
+    },
109
+    onConfirm(value) {
110
+      this.type = value;
111
+      this.typeShow = false;
112
+    },
113
+    getstartTime(value) {
114
+      console.log(value);
115
+      let year = value.getFullYear();
116
+      let month = value.getMonth() + 1;
117
+      let day = value.getDate();
118
+      if (month >= 1 && month <= 9) {
119
+        month = `0${month}`;
120
+      }
121
+      if (day >= 1 && day <= 9) {
122
+        day = `0${day}`;
123
+      }
124
+
125
+      this.startTime = `${year}-${month}-${day}`;
126
+      this.startShow = false;
127
+    },
128
+    getstartTime2(value) {
129
+      console.log(value);
130
+      let year = value.getFullYear();
131
+      let month = value.getMonth() + 1;
132
+      let day = value.getDate();
133
+      if (month >= 1 && month <= 9) {
134
+        month = `0${month}`;
135
+      }
136
+      if (day >= 1 && day <= 9) {
137
+        day = `0${day}`;
138
+      }
139
+
140
+      this.endTime = `${year}-${month}-${day}`;
141
+      this.endShow = false;
142
+    }
143
+  }
144
+};
145
+</script>
146
+
147
+<style lang="scss" scoped>
148
+.medicationPlan {
149
+  height: 100%;
150
+  overflow-y: auto;
151
+  .toolBox {
152
+    display: flex;
153
+    height: 3.125rem;
154
+    align-items: center;
155
+    .toolOne {
156
+      width: 5.625rem;
157
+      height: 1.875rem;
158
+      background: rgba(246, 246, 246, 1);
159
+      border-radius: 5px;
160
+      text-align: center;
161
+      font-size: 0.8125rem;
162
+      color: #8d8d8d;
163
+      display: flex;
164
+      align-items: center;
165
+      justify-content: space-around;
166
+      margin-left: 0.8125rem;
167
+    }
168
+  }
169
+  .adviceBox {
170
+    padding: 0 1.125rem;
171
+    margin-bottom: 3.125rem;
172
+  }
173
+  .adviceOne {
174
+    box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.1);
175
+    padding-bottom: 0.625rem;
176
+  }
177
+  .adviceTitle {
178
+    padding-top: 0.625rem;
179
+    display: flex;
180
+    align-items: center;
181
+    justify-content: space-between;
182
+    p {
183
+      color: #000000;
184
+      font-weight: bold;
185
+      font-size: 0.9375rem;
186
+    }
187
+    .ellipsis {
188
+      font-size: 1.25rem;
189
+      color: #cccccc;
190
+    }
191
+  }
192
+  .orderContent {
193
+    font-size: 0.875rem;
194
+    color: rgba(49, 50, 52, 1);
195
+    margin-top: 0.625rem;
196
+    p {
197
+      line-height: 1.25rem;
198
+    }
199
+  }
200
+  .doctorBox {
201
+    font-size: 0.75rem;
202
+    color: rgba(152, 152, 152, 1);
203
+    line-height: 1.125rem;
204
+    display: flex;
205
+    align-items: center;
206
+    justify-content: space-between;
207
+    margin-top: 0.625rem;
208
+  }
209
+  .all {
210
+    font-size: 0.8125rem;
211
+    color: #5b98ff;
212
+    margin-top: 0.625rem;
213
+  }
214
+  .noimgBox {
215
+    margin-top: 40%;
216
+    img {
217
+      width: 6.25rem;
218
+      height: 6.25rem;
219
+      margin: 0 auto;
220
+      display: block;
221
+    }
222
+  }
223
+  .add {
224
+    position: fixed;
225
+    bottom: 0;
226
+    left: 0;
227
+    width: 100%;
228
+    height: 2.75rem;
229
+    background: rgba(255, 255, 255, 1);
230
+    box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1);
231
+    display: flex;
232
+    align-items: center;
233
+    justify-content: space-around;
234
+    font-size: 0.9375rem;
235
+    color: #979798;
236
+    .addIcon {
237
+      color: #5b98ff;
238
+      font-size: 1.25rem;
239
+      margin-right: 0.25rem;
240
+    }
241
+  }
242
+}
243
+::-webkit-scrollbar {
244
+  width: 0;
245
+}
246
+</style>

+ 246 - 0
src/pages/doctorAdvice/components/recoverNotes.vue Целия файл

@@ -0,0 +1,246 @@
1
+<template>
2
+  <div class="recoverNotes">
3
+    <div>
4
+      <div class="toolBox">
5
+        <div class="toolOne" @click="startShow = true">
6
+          <div style="display: flex;align-items: center;">
7
+            {{ startTime }}
8
+            <van-icon name="arrow-down" />
9
+          </div>
10
+        </div>
11
+        <div class="toolOne" @click="endShow = true">
12
+          <div style="display: flex;align-items: center;">
13
+            {{ endTime }}
14
+            <van-icon name="arrow-down" />
15
+          </div>
16
+        </div>
17
+      </div>
18
+      <div class="noimgBox">
19
+        <img src="../../../assets/images/none.png" alt />
20
+      </div>
21
+      <!-- <div class="adviceBox">
22
+        <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
23
+          <div class="adviceOne" v-for="item in 3" :key="index">
24
+            <div class="adviceTitle">
25
+              <p>2019.09.01</p>
26
+              <van-icon class="ellipsis" name="ellipsis" @click="newShow = true" />
27
+            </div>
28
+            <div class="orderContent">
29
+              <p>血压</p>
30
+              <p>血糖</p>
31
+              <p>体重</p>
32
+              <p>体温</p>
33
+              <p>心率</p>
34
+            </div>
35
+            <div class="all">全部</div>
36
+          </div>
37
+        </van-list>
38
+      </div>-->
39
+    </div>
40
+    <div class="add">
41
+      <div style="display: flex;align-items: center;">
42
+        <van-icon class="addIcon" name="add" />新增
43
+      </div>
44
+    </div>
45
+
46
+    <!-- 弹出层 -->
47
+    <div>
48
+      <van-popup v-model="typeShow" position="bottom" :style="{ height: '40%' }">
49
+        <van-picker show-toolbar :columns="columns" @cancel="onCancel" @confirm="onConfirm" />
50
+      </van-popup>
51
+      <van-popup v-model="startShow" position="bottom" :style="{ height: '40%' }">
52
+        <van-datetime-picker
53
+          v-model="currentDate"
54
+          type="date"
55
+          :min-date="minDate"
56
+          :max-date="maxDate"
57
+          @confirm="getstartTime"
58
+          @cancel="startShow = false"
59
+        />
60
+      </van-popup>
61
+      <van-popup v-model="endShow" position="bottom" :style="{ height: '40%' }">
62
+        <van-datetime-picker
63
+          v-model="currentDate"
64
+          type="date"
65
+          :min-date="minDate"
66
+          :max-date="maxDate"
67
+          @confirm="getstartTime2"
68
+          @cancel="endShow = false"
69
+        />
70
+      </van-popup>
71
+      <van-action-sheet v-model="newShow" :actions="actions" cancel-text="取消" @cancel="onCancel" />
72
+    </div>
73
+  </div>
74
+</template>
75
+
76
+<script>
77
+export default {
78
+  data() {
79
+    return {
80
+      newShow: false,
81
+      typeShow: false,
82
+      startShow: false,
83
+      endShow: false,
84
+      type: "请选择",
85
+      columns: [
86
+        "杭州",
87
+        "宁波",
88
+        "温州",
89
+        "嘉兴",
90
+        "湖州",
91
+        "杭州",
92
+        "宁波",
93
+        "温州",
94
+        "嘉兴",
95
+        "湖州"
96
+      ],
97
+      startTime: "请选择",
98
+      endTime: "请选择",
99
+      minDate: new Date(1970, 0, 1),
100
+      maxDate: new Date(2025, 10, 1),
101
+      currentDate: new Date(),
102
+      actions: [{ name: "编辑" }, { name: "删除" }]
103
+    };
104
+  },
105
+  methods: {
106
+    onCancel() {
107
+      this.typeShow = false;
108
+    },
109
+    onConfirm(value) {
110
+      this.type = value;
111
+      this.typeShow = false;
112
+    },
113
+    getstartTime(value) {
114
+      console.log(value);
115
+      let year = value.getFullYear();
116
+      let month = value.getMonth() + 1;
117
+      let day = value.getDate();
118
+      if (month >= 1 && month <= 9) {
119
+        month = `0${month}`;
120
+      }
121
+      if (day >= 1 && day <= 9) {
122
+        day = `0${day}`;
123
+      }
124
+
125
+      this.startTime = `${year}-${month}-${day}`;
126
+      this.startShow = false;
127
+    },
128
+    getstartTime2(value) {
129
+      console.log(value);
130
+      let year = value.getFullYear();
131
+      let month = value.getMonth() + 1;
132
+      let day = value.getDate();
133
+      if (month >= 1 && month <= 9) {
134
+        month = `0${month}`;
135
+      }
136
+      if (day >= 1 && day <= 9) {
137
+        day = `0${day}`;
138
+      }
139
+
140
+      this.endTime = `${year}-${month}-${day}`;
141
+      this.endShow = false;
142
+    }
143
+  }
144
+};
145
+</script>
146
+
147
+<style lang="scss" scoped>
148
+.recoverNotes {
149
+  height: 100%;
150
+  overflow-y: auto;
151
+  .toolBox {
152
+    display: flex;
153
+    height: 3.125rem;
154
+    align-items: center;
155
+    .toolOne {
156
+      width: 5.625rem;
157
+      height: 1.875rem;
158
+      background: rgba(246, 246, 246, 1);
159
+      border-radius: 5px;
160
+      text-align: center;
161
+      font-size: 0.8125rem;
162
+      color: #8d8d8d;
163
+      display: flex;
164
+      align-items: center;
165
+      justify-content: space-around;
166
+      margin-left: 0.8125rem;
167
+    }
168
+  }
169
+  .adviceBox {
170
+    padding: 0 1.125rem;
171
+    margin-bottom: 3.125rem;
172
+  }
173
+  .adviceOne {
174
+    box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.1);
175
+    padding-bottom: 0.625rem;
176
+  }
177
+  .adviceTitle {
178
+    padding-top: 0.625rem;
179
+    display: flex;
180
+    align-items: center;
181
+    justify-content: space-between;
182
+    p {
183
+      color: #000000;
184
+      font-weight: bold;
185
+      font-size: 0.9375rem;
186
+    }
187
+    .ellipsis {
188
+      font-size: 1.25rem;
189
+      color: #cccccc;
190
+    }
191
+  }
192
+  .orderContent {
193
+    font-size: 0.875rem;
194
+    color: rgba(49, 50, 52, 1);
195
+    margin-top: 0.625rem;
196
+    p {
197
+      line-height: 1.25rem;
198
+    }
199
+  }
200
+  .doctorBox {
201
+    font-size: 0.75rem;
202
+    color: rgba(152, 152, 152, 1);
203
+    line-height: 1.125rem;
204
+    display: flex;
205
+    align-items: center;
206
+    justify-content: space-between;
207
+    margin-top: 0.625rem;
208
+  }
209
+  .all {
210
+    font-size: 0.8125rem;
211
+    color: #5b98ff;
212
+    margin-top: 0.625rem;
213
+  }
214
+  .noimgBox {
215
+    margin-top: 40%;
216
+    img {
217
+      width: 6.25rem;
218
+      height: 6.25rem;
219
+      margin: 0 auto;
220
+      display: block;
221
+    }
222
+  }
223
+  .add {
224
+    position: fixed;
225
+    bottom: 0;
226
+    left: 0;
227
+    width: 100%;
228
+    height: 2.75rem;
229
+    background: rgba(255, 255, 255, 1);
230
+    box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1);
231
+    display: flex;
232
+    align-items: center;
233
+    justify-content: space-around;
234
+    font-size: 0.9375rem;
235
+    color: #979798;
236
+    .addIcon {
237
+      color: #5b98ff;
238
+      font-size: 1.25rem;
239
+      margin-right: 0.25rem;
240
+    }
241
+  }
242
+}
243
+::-webkit-scrollbar {
244
+  width: 0;
245
+}
246
+</style>

+ 252 - 0
src/pages/doctorAdvice/components/signsRecord.vue Целия файл

@@ -0,0 +1,252 @@
1
+<template>
2
+  <div class="signsRecord">
3
+    <div>
4
+      <div class="toolBox">
5
+        <div class="toolOne" @click="typeShow = true">
6
+          <div style="display: flex;align-items: center;">
7
+            {{ type }}
8
+            <van-icon name="arrow-down" />
9
+          </div>
10
+        </div>
11
+        <div class="toolOne" @click="startShow = true">
12
+          <div style="display: flex;align-items: center;">
13
+            {{ startTime }}
14
+            <van-icon name="arrow-down" />
15
+          </div>
16
+        </div>
17
+        <div class="toolOne" @click="endShow = true">
18
+          <div style="display: flex;align-items: center;">
19
+            {{ endTime }}
20
+            <van-icon name="arrow-down" />
21
+          </div>
22
+        </div>
23
+      </div>
24
+      <div class="noimgBox">
25
+        <img src="../../../assets/images/none.png" alt />
26
+      </div>
27
+      <!-- <div class="adviceBox">
28
+        <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
29
+          <div class="adviceOne" v-for="item in 3" :key="index">
30
+            <div class="adviceTitle">
31
+              <p>2019.09.01</p>
32
+              <van-icon class="ellipsis" name="ellipsis" @click="newShow = true" />
33
+            </div>
34
+            <div class="orderContent">
35
+              <p>血压</p>
36
+              <p>血糖</p>
37
+              <p>体重</p>
38
+              <p>体温</p>
39
+              <p>心率</p>
40
+            </div>
41
+            <div class="all">全部</div>
42
+          </div>
43
+        </van-list>
44
+      </div>-->
45
+    </div>
46
+    <div class="add">
47
+      <div style="display: flex;align-items: center;">
48
+        <van-icon class="addIcon" name="add" />新增
49
+      </div>
50
+    </div>
51
+
52
+    <!-- 弹出层 -->
53
+    <div>
54
+      <van-popup v-model="typeShow" position="bottom" :style="{ height: '40%' }">
55
+        <van-picker show-toolbar :columns="columns" @cancel="onCancel" @confirm="onConfirm" />
56
+      </van-popup>
57
+      <van-popup v-model="startShow" position="bottom" :style="{ height: '40%' }">
58
+        <van-datetime-picker
59
+          v-model="currentDate"
60
+          type="date"
61
+          :min-date="minDate"
62
+          :max-date="maxDate"
63
+          @confirm="getstartTime"
64
+          @cancel="startShow = false"
65
+        />
66
+      </van-popup>
67
+      <van-popup v-model="endShow" position="bottom" :style="{ height: '40%' }">
68
+        <van-datetime-picker
69
+          v-model="currentDate"
70
+          type="date"
71
+          :min-date="minDate"
72
+          :max-date="maxDate"
73
+          @confirm="getstartTime2"
74
+          @cancel="endShow = false"
75
+        />
76
+      </van-popup>
77
+      <van-action-sheet v-model="newShow" :actions="actions" cancel-text="取消" @cancel="onCancel" />
78
+    </div>
79
+  </div>
80
+</template>
81
+
82
+<script>
83
+export default {
84
+  data() {
85
+    return {
86
+      newShow: false,
87
+      typeShow: false,
88
+      startShow: false,
89
+      endShow: false,
90
+      type: "请选择",
91
+      columns: [
92
+        "杭州",
93
+        "宁波",
94
+        "温州",
95
+        "嘉兴",
96
+        "湖州",
97
+        "杭州",
98
+        "宁波",
99
+        "温州",
100
+        "嘉兴",
101
+        "湖州"
102
+      ],
103
+      startTime: "请选择",
104
+      endTime: "请选择",
105
+      minDate: new Date(1970, 0, 1),
106
+      maxDate: new Date(2025, 10, 1),
107
+      currentDate: new Date(),
108
+      actions: [{ name: "编辑" }, { name: "删除" }]
109
+    };
110
+  },
111
+  methods: {
112
+    onCancel() {
113
+      this.typeShow = false;
114
+    },
115
+    onConfirm(value) {
116
+      this.type = value;
117
+      this.typeShow = false;
118
+    },
119
+    getstartTime(value) {
120
+      console.log(value);
121
+      let year = value.getFullYear();
122
+      let month = value.getMonth() + 1;
123
+      let day = value.getDate();
124
+      if (month >= 1 && month <= 9) {
125
+        month = `0${month}`;
126
+      }
127
+      if (day >= 1 && day <= 9) {
128
+        day = `0${day}`;
129
+      }
130
+
131
+      this.startTime = `${year}-${month}-${day}`;
132
+      this.startShow = false;
133
+    },
134
+    getstartTime2(value) {
135
+      console.log(value);
136
+      let year = value.getFullYear();
137
+      let month = value.getMonth() + 1;
138
+      let day = value.getDate();
139
+      if (month >= 1 && month <= 9) {
140
+        month = `0${month}`;
141
+      }
142
+      if (day >= 1 && day <= 9) {
143
+        day = `0${day}`;
144
+      }
145
+
146
+      this.endTime = `${year}-${month}-${day}`;
147
+      this.endShow = false;
148
+    }
149
+  }
150
+};
151
+</script>
152
+
153
+<style lang="scss" scoped>
154
+.signsRecord {
155
+  height: 100%;
156
+  overflow-y: auto;
157
+  .toolBox {
158
+    display: flex;
159
+    height: 3.125rem;
160
+    justify-content: space-around;
161
+    align-items: center;
162
+    .toolOne {
163
+      width: 5.625rem;
164
+      height: 1.875rem;
165
+      background: rgba(246, 246, 246, 1);
166
+      border-radius: 5px;
167
+      text-align: center;
168
+      font-size: 0.8125rem;
169
+      color: #8d8d8d;
170
+      display: flex;
171
+      align-items: center;
172
+      justify-content: space-around;
173
+    }
174
+  }
175
+  .adviceBox {
176
+    padding: 0 1.125rem;
177
+    margin-bottom: 3.125rem;
178
+  }
179
+  .adviceOne {
180
+    box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.1);
181
+    padding-bottom: 0.625rem;
182
+  }
183
+  .adviceTitle {
184
+    padding-top: 0.625rem;
185
+    display: flex;
186
+    align-items: center;
187
+    justify-content: space-between;
188
+    p {
189
+      color: #000000;
190
+      font-weight: bold;
191
+      font-size: 0.9375rem;
192
+    }
193
+    .ellipsis {
194
+      font-size: 1.25rem;
195
+      color: #cccccc;
196
+    }
197
+  }
198
+  .orderContent {
199
+    font-size: 0.875rem;
200
+    color: rgba(49, 50, 52, 1);
201
+    margin-top: 0.625rem;
202
+    p {
203
+      line-height: 1.25rem;
204
+    }
205
+  }
206
+  .doctorBox {
207
+    font-size: 0.75rem;
208
+    color: rgba(152, 152, 152, 1);
209
+    line-height: 1.125rem;
210
+    display: flex;
211
+    align-items: center;
212
+    justify-content: space-between;
213
+    margin-top: 0.625rem;
214
+  }
215
+  .all {
216
+    font-size: 0.8125rem;
217
+    color: #5b98ff;
218
+    margin-top: 0.625rem;
219
+  }
220
+  .noimgBox {
221
+    margin-top: 40%;
222
+    img {
223
+      width: 6.25rem;
224
+      height: 6.25rem;
225
+      margin: 0 auto;
226
+      display: block;
227
+    }
228
+  }
229
+  .add {
230
+    position: fixed;
231
+    bottom: 0;
232
+    left: 0;
233
+    width: 100%;
234
+    height: 2.75rem;
235
+    background: rgba(255, 255, 255, 1);
236
+    box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1);
237
+    display: flex;
238
+    align-items: center;
239
+    justify-content: space-around;
240
+    font-size: 0.9375rem;
241
+    color: #979798;
242
+    .addIcon {
243
+      color: #5b98ff;
244
+      font-size: 1.25rem;
245
+      margin-right: 0.25rem;
246
+    }
247
+  }
248
+}
249
+::-webkit-scrollbar {
250
+  width: 0;
251
+}
252
+</style>

+ 34 - 34
src/pages/doctorAdvice/index.vue Целия файл

@@ -16,36 +16,28 @@
16 16
       </van-sticky>
17 17
       <van-tab v-for="(item, index) in title" :title="item" :key="index">
18 18
         <doctor-management v-if="active == 0"></doctor-management>
19
-        <dry-weight v-if="active == 1"></dry-weight>
20
-        <course-management v-if="active == 2"></course-management>
21
-        <rescue-record v-if="active == 3"></rescue-record>
19
+        <long-dialysis v-if="active == 1"></long-dialysis>
20
+        <dialysis-record v-if="active == 2"></dialysis-record>
21
+        <dry-weight v-if="active == 3"></dry-weight>
22 22
         <inspection v-if="active == 4"></inspection>
23
-        <long-dialysis v-if="active == 5"></long-dialysis>
24
-        <dialysis-record v-if="active == 6"></dialysis-record>
23
+        <course-management v-if="active == 5"></course-management>
24
+        <rescue-record v-if="active == 6"></rescue-record>
25 25
         <scheduling v-if="active == 7"></scheduling>
26 26
         <education v-if="active == 8"></education>
27
+        <signs-record v-if="active == 9"></signs-record>
28
+        <recover-notes v-if="active == 10"></recover-notes>
29
+        <medication-plan v-if="active == 11"></medication-plan>
30
+        <device-management v-if="active == 12"></device-management>
27 31
       </van-tab>
28 32
     </van-tabs>
29 33
     <van-popup v-model="show" position="top" :style="{ height: '100%' }">
30
-      <div
31
-        style="padding:10px;font-size:1.25rem;text-align:right"
32
-        @click="show = false"
33
-      >
34
+      <div style="padding:10px;font-size:1.25rem;text-align:right" @click="show = false">
34 35
         <van-icon name="cross" />
35 36
       </div>
36
-      <van-search
37
-        v-model="value"
38
-        placeholder="请输入病人名字"
39
-        @cancel="onCancel"
40
-        @search="onSearch"
41
-      />
37
+      <van-search v-model="value" placeholder="请输入病人名字" @cancel="onCancel" @search="onSearch" />
42 38
 
43 39
       <van-index-bar class="indexBar" :sticky="false" highlight-color="#fb6463">
44
-        <van-index-anchor
45
-          v-for="(item, index) in firstNameTwo"
46
-          :key="index"
47
-          :index="index"
48
-        >
40
+        <van-index-anchor v-for="(item, index) in firstNameTwo" :key="index" :index="index">
49 41
           <span class="indexWord">{{ index }}</span>
50 42
           <van-cell
51 43
             @click="chooseCity(citem)"
@@ -58,10 +50,7 @@
58 50
     </van-popup>
59 51
 
60 52
     <van-popup v-model="show1" position="top" :style="{ height: '40%' }">
61
-      <div
62
-        style="padding:10px;font-size:1.25rem;text-align:right"
63
-        @click="show1 = false"
64
-      >
53
+      <div style="padding:10px;font-size:1.25rem;text-align:right" @click="show1 = false">
65 54
         <van-icon name="cross" />
66 55
       </div>
67 56
       <div class="titleBox">
@@ -70,15 +59,14 @@
70 59
           v-for="(item, index) in title"
71 60
           :key="index"
72 61
           @click="changeActive(index)"
73
-        >
74
-          {{ item }}
75
-        </div>
62
+        >{{ item }}</div>
76 63
       </div>
77 64
     </van-popup>
78 65
   </div>
79 66
 </template>
80 67
 
81 68
 <script>
69
+import "../../styles/resetStyle.scss";
82 70
 import DoctorManagement from "@/pages/doctorAdvice/components/DoctorManagement";
83 71
 import DryWeight from "@/pages/doctorAdvice/components/DryWeight";
84 72
 import CourseManagement from "@/pages/doctorAdvice/components/CourseManagement";
@@ -88,6 +76,10 @@ import LongDialysis from "@/pages/doctorAdvice/components/LongDialysis";
88 76
 import DialysisRecord from "@/pages/doctorAdvice/components/DialysisRecord";
89 77
 import Scheduling from "@/pages/doctorAdvice/components/Scheduling";
90 78
 import Education from "@/pages/doctorAdvice/components/Education";
79
+import signsRecord from "@/pages/doctorAdvice/components/signsRecord";
80
+import recoverNotes from "@/pages/doctorAdvice/components/recoverNotes";
81
+import medicationPlan from "@/pages/doctorAdvice/components/medicationPlan";
82
+import deviceManagement from "@/pages/doctorAdvice/components/deviceManagement";
91 83
 import { uParseTime } from "@/utils/tools";
92 84
 import {
93 85
   getPatientDetail,
@@ -107,7 +99,11 @@ export default {
107 99
     LongDialysis,
108 100
     DialysisRecord,
109 101
     Scheduling,
110
-    Education
102
+    Education,
103
+    signsRecord,
104
+    recoverNotes,
105
+    medicationPlan,
106
+    deviceManagement
111 107
   },
112 108
   data() {
113 109
     return {
@@ -115,15 +111,19 @@ export default {
115 111
       show1: false,
116 112
       active: 0,
117 113
       title: [
118
-        "医嘱管理",
119
-        "干体重",
120
-        "病程管理",
121
-        "抢救记录",
122
-        "检验检查",
114
+        "医嘱",
123 115
         "长期透析处方",
124 116
         "透析记录",
117
+        "干体重",
118
+        "检验检查",
119
+        "病程记录",
120
+        "抢救记录",
125 121
         "排班信息",
126
-        "宣教信息"
122
+        "宣教信息",
123
+        "体征记录",
124
+        "康复笔记",
125
+        "用药管理",
126
+        "设备管理"
127 127
       ],
128 128
 
129 129
       searchVal: "",

+ 6 - 1
src/pages/home/index.vue Целия файл

@@ -69,7 +69,7 @@
69 69
       </div>
70 70
     </div>
71 71
 
72
-  </div> -->
72
+  </div>-->
73 73
   <div class="page_home">
74 74
     <div>
75 75
       <router-view />
@@ -175,6 +175,11 @@ export default {
175 175
   .iconOne {
176 176
     font-size: 1.25rem;
177 177
   }
178
+  .van-tabbar-item--active {
179
+    .iconfont {
180
+      color: #1989fa;
181
+    }
182
+  }
178 183
 
179 184
   // .header {
180 185
   //   padding: 0 15px;

+ 21 - 4
src/pages/homeIndex/index.vue Целия файл

@@ -15,7 +15,21 @@
15 15
       </div>
16 16
     </van-sticky>
17 17
     <div class="banner">
18
-      <img src="../../assets/images/homebanner.jpg" alt />
18
+      <!-- <img src="../../assets/images/homebanner.jpg" alt /> -->
19
+      <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
20
+        <van-swipe-item>
21
+          <img src="../../assets/images/banner_03.png" alt />
22
+        </van-swipe-item>
23
+        <!-- <van-swipe-item>
24
+          <img src="../../assets/images/homebanner.jpg" alt />
25
+        </van-swipe-item>
26
+        <van-swipe-item>
27
+          <img src="../../assets/images/homebanner.jpg" alt />
28
+        </van-swipe-item>
29
+        <van-swipe-item>
30
+          <img src="../../assets/images/homebanner.jpg" alt />
31
+        </van-swipe-item>-->
32
+      </van-swipe>
19 33
     </div>
20 34
     <div class="noticeBox">
21 35
       <i class="iconfont icon-public-notice notice"></i>
@@ -105,9 +119,12 @@
105 119
         <div class="applicationOne">
106 120
           <img src="../../assets/images/S13.png" alt />客服中心
107 121
         </div>
108
-        <!--        <div class="applicationOne">-->
109
-        <!--          <img src="../../assets/images/S14.png" alt="" />集成中心-->
110
-        <!--        </div>-->
122
+        <div class="applicationOne">
123
+          <img src="../../assets/images/S16.png" alt />质控上报
124
+        </div>
125
+        <div class="applicationOne">
126
+          <img src="../../assets/images/S17.png" alt />经营中心
127
+        </div>
111 128
       </div>
112 129
     </div>
113 130
   </div>

+ 118 - 35
src/pages/main/RecordPage.vue Целия файл

@@ -6,11 +6,34 @@
6 6
       <!-- <div class="head">
7 7
         <img :src="$store.getters.user.org.org_logo" alt />
8 8
       </div>-->
9
-      <div class="floatLeft">
10
-        <span class="title">{{ $store.getters.user.org.org_short_name }}</span>
9
+      <div class="floatLeftBox">
10
+        <div class="floatLeft">
11
+          <!-- <span class="title">{{ $store.getters.user.org.org_short_name }}</span>
11 12
         <router-link to="/add_urgent_schedule">
12 13
           <p class="order">临时排班</p>
13
-        </router-link>
14
+          </router-link>-->
15
+          <i class="iconfont icon-zuojiantou jiantou"></i>
16
+          <span class="titleName">透析记录</span>
17
+          <van-icon class="icons" name="ellipsis" @click="show = true" />
18
+        </div>
19
+        <van-popup v-model="show" closeable position="top" :style="{ height: '200px' }">
20
+          <div class="popupContent">
21
+            <div class="popupBox">
22
+              <div class="popupBoxOne">
23
+                <img src="../../assets/images/T1.png" alt />
24
+                <p>透析监测</p>
25
+              </div>
26
+              <div class="popupBoxOne">
27
+                <img src="../../assets/images/T2.png" alt />
28
+                <p>透析医嘱</p>
29
+              </div>
30
+              <div class="popupBoxOne" @click="goSchedule">
31
+                <img src="../../assets/images/T3.png" alt />
32
+                <p>临时排班</p>
33
+              </div>
34
+            </div>
35
+          </div>
36
+        </van-popup>
14 37
       </div>
15 38
       <!-- </van-col> -->
16 39
       <!-- <van-col :span="6">
@@ -118,22 +141,33 @@
118 141
         <van-button size="small" type="info">临时排班</van-button>
119 142
     </div>-->
120 143
     <div class="area">
121
-      <waiting-area ref="waitingArea" v-show="index == 0" title="候诊区" :search_keyword="search_keyword"></waiting-area>
122
-      <dialysis-area @refWaitingArea="refWaitingArea" v-show="index == 1" title="透析区" :search_keyword="search_keyword"  @clear_search_keyword="clearKeyword" ></dialysis-area>
144
+      <waiting-area
145
+        ref="waitingArea"
146
+        v-show="index == 0"
147
+        title="候诊区"
148
+        :search_keyword="search_keyword"
149
+      ></waiting-area>
150
+      <dialysis-area
151
+        @refWaitingArea="refWaitingArea"
152
+        v-show="index == 1"
153
+        title="透析区"
154
+        :search_keyword="search_keyword"
155
+        @clear_search_keyword="clearKeyword"
156
+      ></dialysis-area>
123 157
     </div>
124 158
   </div>
125 159
 </template>
126 160
 
127 161
 <script>
128
-import DialysisArea from './DialysisArea'
129
-import WaitingArea from './WaitingArea'
130
-import { Popover } from 'vux'
131
-import { getDialysisScheduals, getWaitingScheduals } from '@/api/dialysis'
132
-import { parseTime } from '@/utils/index'
133
-import { getDialysisOrWaitSelectedConfig } from '@/utils/data_config'
162
+import DialysisArea from "./DialysisArea";
163
+import WaitingArea from "./WaitingArea";
164
+import { Popover } from "vux";
165
+import { getDialysisScheduals, getWaitingScheduals } from "@/api/dialysis";
166
+import { parseTime } from "@/utils/index";
167
+import { getDialysisOrWaitSelectedConfig } from "@/utils/data_config";
134 168
 
135 169
 export default {
136
-  name: 'RecordPage',
170
+  name: "RecordPage",
137 171
   props: {
138 172
     un_read_wait_num: {
139 173
       type: Number
@@ -142,16 +176,17 @@ export default {
142 176
       type: Number
143 177
     }
144 178
   },
145
-  data () {
179
+  data() {
146 180
     return {
147 181
       index: 1,
148
-      search_input: '',
149
-      search_keyword: '',
182
+      search_input: "",
183
+      search_keyword: "",
150 184
       scheduals: [],
151 185
       advice_groups: [],
152 186
       unReadWaitNum: 0,
153
-      unReadDialysisNum: 0
154
-    }
187
+      unReadDialysisNum: 0,
188
+      show: false
189
+    };
155 190
   },
156 191
   components: {
157 192
     DialysisArea,
@@ -162,30 +197,33 @@ export default {
162 197
   },
163 198
 
164 199
   methods: {
165
-    refWaitingArea: function () {
166
-      this.$refs.waitingArea.requestScheduals()
167
-      this.$emit('refAdvice')
200
+    refWaitingArea: function() {
201
+      this.$refs.waitingArea.requestScheduals();
202
+      this.$emit("refAdvice");
203
+    },
204
+    ClickTab: function(tabIndex) {
205
+      this.index = tabIndex;
168 206
     },
169
-    ClickTab: function (tabIndex) {
170
-      this.index = tabIndex
207
+    searchWithKeyword: function() {
208
+      this.$refs.search_field.blur();
209
+      this.search_keyword = this.search_input;
171 210
     },
172
-    searchWithKeyword: function () {
173
-      this.$refs.search_field.blur()
174
-      this.search_keyword = this.search_input
211
+    clearKeyword: function() {
212
+      this.search_input = "";
213
+      this.search_keyword = "";
175 214
     },
176
-    clearKeyword: function () {
177
-      this.search_input = ''
178
-      this.search_keyword = ''
215
+    goSchedule() {
216
+      this.$router.push("/add_urgent_schedule");
179 217
     }
180 218
   },
181
-  created () {
182
-    var index = getDialysisOrWaitSelectedConfig()
183
-    console.log(index)
219
+  created() {
220
+    var index = getDialysisOrWaitSelectedConfig();
221
+    console.log(index);
184 222
     if (index != null) {
185
-      this.index = index
223
+      this.index = index;
186 224
     }
187 225
   }
188
-}
226
+};
189 227
 </script>
190 228
 
191 229
 <style lang="scss" scoped>
@@ -200,10 +238,55 @@ export default {
200 238
   // display: flex;
201 239
   // align-items: center;
202 240
   background: #258ffc;
241
+  .floatLeftBox {
242
+    .van-popup {
243
+      top: 0;
244
+      transform: translate3d(0, 0, 0);
245
+      border-radius: 0;
246
+    }
247
+    .popupContent {
248
+      display: flex;
249
+      justify-content: space-around;
250
+      align-items: center;
251
+      height: 100%;
252
+    }
253
+    .popupBox {
254
+      display: flex;
255
+      justify-content: space-around;
256
+      width: 100%;
257
+      height: 40%;
258
+      .popupBoxOne {
259
+        display: flex;
260
+        align-items: center;
261
+        justify-content: space-around;
262
+        flex-direction: column;
263
+        font-size: 0.44rem;
264
+        img {
265
+          width: 1.7rem;
266
+          height: 1.7rem;
267
+        }
268
+      }
269
+    }
270
+  }
271
+
203 272
   .floatLeft {
204
-    line-height: 1rem;
205 273
     height: 1rem;
206
-    margin-top: 0.1rem;
274
+    // margin-top: 0.1rem;
275
+    display: flex;
276
+    align-items: center;
277
+    justify-content: space-between;
278
+    color: #fff;
279
+    font-size: 0.6rem;
280
+    .titleName {
281
+      font-size: 0.6rem;
282
+    }
283
+    .icons {
284
+      font-size: 0.8rem;
285
+    }
286
+    .jiantou {
287
+      font-size: 0.8rem;
288
+      color: #fff;
289
+    }
207 290
     .order {
208 291
       float: right;
209 292
       font-size: 0.45rem;

+ 280 - 291
src/pages/main/add_urgent_schedule.vue Целия файл

@@ -89,7 +89,6 @@
89 89
             </div>
90 90
           </van-col>
91 91
 
92
-
93 92
           <van-col :span="24">
94 93
             <span class="title">治疗模式:</span>
95 94
             <div class="field_panel">
@@ -116,18 +115,10 @@
116 115
     </div>
117 116
     <side-bar :active_index="0"></side-bar>
118 117
     <van-popup v-model="show_patient_picker" position="bottom" class="popup">
119
-      <van-picker
120
-        :columns="patients"
121
-        value-key="name"
122
-        @change="didChangePatient"
123
-      ></van-picker>
118
+      <van-picker :columns="patients" value-key="name" @change="didChangePatient"></van-picker>
124 119
     </van-popup>
125 120
     <van-popup v-model="show_mode_picker" position="bottom" class="popup">
126
-      <van-picker
127
-        :columns="modes"
128
-        value-key="name"
129
-        @change="didChangeMode"
130
-      ></van-picker>
121
+      <van-picker :columns="modes" value-key="name" @change="didChangeMode"></van-picker>
131 122
     </van-popup>
132 123
     <van-popup v-model="show_bed_picker" position="bottom" class="popup">
133 124
       <van-picker
@@ -149,131 +140,248 @@
149 140
 </template>
150 141
 
151 142
 <script>
152
-  import SideBar from "@/pages/layout/SideBar";
153
-  import { parseTime } from "@/utils";
154
-  import {
155
-    getUrgentScheduleInitData,
156
-    PostSearch,
157
-    postUrgentSchedule
158
-  } from "@/api/dialysis";
159
-  import { Dialog, Toast } from "vant";
143
+import SideBar from "@/pages/layout/SideBar";
144
+import { parseTime } from "@/utils";
145
+import {
146
+  getUrgentScheduleInitData,
147
+  PostSearch,
148
+  postUrgentSchedule
149
+} from "@/api/dialysis";
150
+import { Dialog, Toast } from "vant";
160 151
 
161
-  export default {
162
-    name: "AddUrgentSchedule",
163
-    components: {
164
-      SideBar
165
-    },
166
-    data() {
167
-      return {
168
-        loading: false,
169
-        value: "",
170
-        date: "2019-09-09",
171
-        patient_id: 0,
172
-        mode_id: 0,
173
-        device_id: 0,
174
-        schedule_type: 2,
175
-        zone_name: "",
152
+export default {
153
+  name: "AddUrgentSchedule",
154
+  components: {
155
+    SideBar
156
+  },
157
+  data() {
158
+    return {
159
+      loading: false,
160
+      value: "",
161
+      date: "2019-09-09",
162
+      patient_id: 0,
163
+      mode_id: 0,
164
+      device_id: 0,
165
+      schedule_type: 2,
166
+      zone_name: "",
176 167
 
177
-        show_patient_picker: false,
178
-        show_mode_picker: false,
179
-        show_bed_picker: false,
180
-        show_sch_type_picker: false,
168
+      show_patient_picker: false,
169
+      show_mode_picker: false,
170
+      show_bed_picker: false,
171
+      show_sch_type_picker: false,
181 172
 
182
-        patients: [],
183
-        modes: [],
184
-        schedule_types: [
185
-          { value: 1, text: "上午" },
186
-          { value: 2, text: "下午" },
187
-          { value: 3, text: "晚上" }
188
-        ],
173
+      patients: [],
174
+      modes: [],
175
+      schedule_types: [
176
+        { value: 1, text: "上午" },
177
+        { value: 2, text: "下午" },
178
+        { value: 3, text: "晚上" }
179
+      ],
189 180
 
190
-        origin_device_numbers: [],
191
-        zone_device_map: {},
192
-        zone_names: [],
193
-        current_devices: [],
194
-        zone_device_options: [],
181
+      origin_device_numbers: [],
182
+      zone_device_map: {},
183
+      zone_names: [],
184
+      current_devices: [],
185
+      zone_device_options: [],
195 186
 
196
-        origin_schedules: []
197
-      };
187
+      origin_schedules: []
188
+    };
189
+  },
190
+  computed: {
191
+    patient_name: function() {
192
+      for (let index = 0; index < this.patients.length; index++) {
193
+        const patient = this.patients[index];
194
+        if (patient.id == this.patient_id) {
195
+          return patient.name;
196
+        }
197
+      }
198
+      return "";
198 199
     },
199
-    computed: {
200
-      patient_name: function() {
201
-        for (let index = 0; index < this.patients.length; index++) {
202
-          const patient = this.patients[index];
203
-          if (patient.id == this.patient_id) {
204
-            return patient.name;
205
-          }
200
+    mode_name: function() {
201
+      for (let index = 0; index < this.modes.length; index++) {
202
+        const mode = this.modes[index];
203
+        if (mode.id == this.mode_id) {
204
+          return mode.name;
206 205
         }
207
-        return "";
208
-      },
209
-      mode_name: function() {
210
-        for (let index = 0; index < this.modes.length; index++) {
211
-          const mode = this.modes[index];
212
-          if (mode.id == this.mode_id) {
213
-            return mode.name;
206
+      }
207
+      return "";
208
+    },
209
+    bed_name: function() {
210
+      if (this.zone_name.length > 0 && this.device_id != 0) {
211
+        for (let index = 0; index < this.current_devices.length; index++) {
212
+          const device_number = this.current_devices[index];
213
+          if (device_number.id == this.device_id) {
214
+            return device_number.zone_name + " - " + device_number.number;
214 215
           }
215 216
         }
216
-        return "";
217
-      },
218
-      bed_name: function() {
219
-        if (this.zone_name.length > 0 && this.device_id != 0) {
220
-          for (let index = 0; index < this.current_devices.length; index++) {
221
-            const device_number = this.current_devices[index];
222
-            if (device_number.id == this.device_id) {
223
-              return device_number.zone_name + " - " + device_number.number;
217
+      }
218
+      return "";
219
+    },
220
+    schedule_type_title: function() {
221
+      for (let index = 0; index < this.schedule_types.length; index++) {
222
+        const type = this.schedule_types[index];
223
+        if (type.value == this.schedule_type) {
224
+          return type.text;
225
+        }
226
+      }
227
+      return "";
228
+    }
229
+  },
230
+  created() {
231
+    var today = new Date();
232
+    this.date = parseTime(today, "{y}-{m}-{d}");
233
+    var hour = today.getHours();
234
+    if (hour > 3 && hour < 11) {
235
+      this.schedule_type = 1;
236
+    } else if (hour >= 11 && hour < 18) {
237
+      this.schedule_type = 2;
238
+    } else {
239
+      this.schedule_type = 3;
240
+    }
241
+  },
242
+  mounted() {
243
+    this.loading = true;
244
+    let params = {
245
+      type: this.schedule_type
246
+    };
247
+    console.log(params);
248
+    getUrgentScheduleInitData(params)
249
+      .then(rs => {
250
+        this.loading = false;
251
+        // console.log(rs.data.data)
252
+        if (rs.data.state == 1) {
253
+          this.origin_schedules = rs.data.data.schedules;
254
+          this.patients = rs.data.data.patients;
255
+          console.log(this.patients);
256
+          this.modes = rs.data.data.modes;
257
+          this.origin_device_numbers = rs.data.data.device_numbers;
258
+
259
+          if (this.patients.length > 0) {
260
+            this.patient_id = this.patients[0].id;
261
+          }
262
+          if (this.modes.length > 0) {
263
+            this.mode_id = this.modes[0].id;
264
+          }
265
+
266
+          var zone_device_map = {};
267
+          for (
268
+            let index = 0;
269
+            index < this.origin_device_numbers.length;
270
+            index++
271
+          ) {
272
+            const device_number = this.origin_device_numbers[index];
273
+            if (
274
+              zone_device_map[device_number.zone_name] == null ||
275
+              zone_device_map[device_number.zone_name] == undefined
276
+            ) {
277
+              zone_device_map[device_number.zone_name] = [];
224 278
             }
279
+            zone_device_map[device_number.zone_name].push(device_number);
225 280
           }
226
-        }
227
-        return "";
228
-      },
229
-      schedule_type_title: function() {
230
-        for (let index = 0; index < this.schedule_types.length; index++) {
231
-          const type = this.schedule_types[index];
232
-          if (type.value == this.schedule_type) {
233
-            return type.text;
281
+          this.zone_device_map = zone_device_map;
282
+
283
+          this.zone_names = Object.keys(this.zone_device_map);
284
+          if (this.zone_names.length > 0) {
285
+            this.zone_name = this.zone_names[0];
286
+            this.current_devices = this.zone_device_map[this.zone_name];
287
+            this.device_id = this.current_devices[0].id;
234 288
           }
289
+          this.zone_device_options = [
290
+            { values: this.zone_names },
291
+            // { values: this.getDeviceNumberNames(this.current_devices) },
292
+            { values: this.current_devices }
293
+          ];
294
+          console.log(this.zone_device_options);
295
+        } else {
296
+          Toast.fail(rs.data.msg);
235 297
         }
236
-        return "";
298
+      })
299
+      .catch(err => {
300
+        this.loading = false;
301
+        Toast.fail(err);
302
+      });
303
+  },
304
+  methods: {
305
+    handleSelect(val) {
306
+      this.patient_name = val.name;
307
+      this.patient_id = val.id;
308
+    },
309
+    querySearchAsync(keyword, cb) {
310
+      let key = "";
311
+      if (keyword != undefined) {
312
+        key = keyword;
237 313
       }
238
-    },created(){
314
+      let searchArray = [];
315
+      PostSearch(key).then(response => {
316
+        if (response.data.state == 1) {
317
+          searchArray = response.data.data.patient;
318
+          cb(searchArray);
319
+        } else {
320
+          cb([]);
321
+        }
322
+      });
323
+    },
239 324
 
240
-      var today = new Date();
241
-      this.date = parseTime(today, "{y}-{m}-{d}");
242
-      var hour = today.getHours();
243
-      if (hour > 3 && hour < 11) {
244
-        this.schedule_type = 1;
245
-      } else if (hour >= 11 && hour < 18) {
246
-        this.schedule_type = 2;
247
-      } else {
248
-        this.schedule_type = 3;
249
-      }
325
+    selectPatientAction: function() {
326
+      this.$refs.patient_field.blur();
327
+      this.show_patient_picker = true;
328
+    },
329
+    selectModeAction: function() {
330
+      this.$refs.mode_field.blur();
331
+      this.show_mode_picker = true;
332
+    },
333
+    selectBedAction: function() {
334
+      this.$refs.bed_field.blur();
335
+      this.show_bed_picker = true;
250 336
     },
251
-    mounted() {
337
+    selectSchTypeAction: function() {
338
+      this.$refs.sch_type_field.blur();
339
+      this.show_sch_type_picker = true;
340
+      //
341
+      // this.$nextTick(() => {
342
+      //   // this.$refs.schedule.setColumnIndex(2)
343
+      //   // .setIndexes(this.schedule_type)
344
+      //   console.log(this.$refs.schedule)
345
+      //   console.log(this.$refs.schedule.getColumnIndex)
346
+      //   console.log(this.$refs.schedule.getColumnValue)
347
+      //
348
+      // })
349
+    },
350
+
351
+    didChangePatient: function(picker, patient, index) {
352
+      this.patient_id = patient.id;
353
+    },
354
+    didChangeMode: function(picker, mode, index) {
355
+      this.mode_id = mode.id;
356
+    },
357
+    didChangeBed: function(picker, values, col_index) {
358
+      if (col_index == 0) {
359
+        this.zone_name = values[0];
360
+        this.current_devices = this.zone_device_map[this.zone_name];
361
+        this.device_id = this.current_devices[0].id;
252 362
 
363
+        picker.setColumnValues(1, this.current_devices);
364
+      } else if (col_index == 1) {
365
+        this.device_id = values[1].id;
366
+      }
367
+    },
368
+    didChangeSchType: function(picker, sch_type, index) {
369
+      this.schedule_type = sch_type.value;
253 370
       this.loading = true;
254 371
       let params = {
255 372
         type: this.schedule_type
256 373
       };
257
-      console.log(params);
258 374
       getUrgentScheduleInitData(params)
259 375
         .then(rs => {
260 376
           this.loading = false;
261 377
           // console.log(rs.data.data)
262 378
           if (rs.data.state == 1) {
379
+            this.zone_device_options = [];
263 380
             this.origin_schedules = rs.data.data.schedules;
264 381
             this.patients = rs.data.data.patients;
265
-            console.log(this.patients)
266 382
             this.modes = rs.data.data.modes;
267 383
             this.origin_device_numbers = rs.data.data.device_numbers;
268 384
 
269
-
270
-            if (this.patients.length > 0) {
271
-              this.patient_id = this.patients[0].id;
272
-            }
273
-            if (this.modes.length > 0) {
274
-              this.mode_id = this.modes[0].id;
275
-            }
276
-
277 385
             var zone_device_map = {};
278 386
             for (
279 387
               let index = 0;
@@ -302,8 +410,7 @@
302 410
               // { values: this.getDeviceNumberNames(this.current_devices) },
303 411
               { values: this.current_devices }
304 412
             ];
305
-            console.log(this.zone_device_options )
306
-
413
+            console.log(this.zone_device_options);
307 414
           } else {
308 415
             Toast.fail(rs.data.msg);
309 416
           }
@@ -313,195 +420,74 @@
313 420
           Toast.fail(err);
314 421
         });
315 422
     },
316
-    methods: {
317
-      handleSelect(val) {
318
-        this.patient_name = val.name;
319
-        this.patient_id = val.id;
320
-      },
321
-      querySearchAsync(keyword, cb) {
322
-        let key = "";
323
-        if (keyword != undefined) {
324
-          key = keyword;
325
-        }
326
-        let searchArray = [];
327
-        PostSearch(key).then(response => {
328
-          if (response.data.state == 1) {
329
-            searchArray = response.data.data.patient;
330
-            cb(searchArray);
331
-          } else {
332
-            cb([]);
333
-          }
334
-        });
335
-      },
336
-
337
-      selectPatientAction: function() {
338
-        this.$refs.patient_field.blur();
339
-        this.show_patient_picker = true;
340
-      },
341
-      selectModeAction: function() {
342
-        this.$refs.mode_field.blur();
343
-        this.show_mode_picker = true;
344
-      },
345
-      selectBedAction: function() {
346
-        this.$refs.bed_field.blur();
347
-        this.show_bed_picker = true;
348
-      },
349
-      selectSchTypeAction: function() {
350
-        this.$refs.sch_type_field.blur();
351
-        this.show_sch_type_picker = true;
352
-        //
353
-        // this.$nextTick(() => {
354
-        //   // this.$refs.schedule.setColumnIndex(2)
355
-        //   // .setIndexes(this.schedule_type)
356
-        //   console.log(this.$refs.schedule)
357
-        //   console.log(this.$refs.schedule.getColumnIndex)
358
-        //   console.log(this.$refs.schedule.getColumnValue)
359
-        //
360
-        // })
361
-      },
362
-
363
-      didChangePatient: function(picker, patient, index) {
364
-        this.patient_id = patient.id;
365
-      },
366
-      didChangeMode: function(picker, mode, index) {
367
-        this.mode_id = mode.id;
368
-      },
369
-      didChangeBed: function(picker, values, col_index) {
370
-        if (col_index == 0) {
371
-          this.zone_name = values[0];
372
-          this.current_devices = this.zone_device_map[this.zone_name];
373
-          this.device_id = this.current_devices[0].id;
374
-
375
-          picker.setColumnValues(1, this.current_devices);
376
-        } else if (col_index == 1) {
377
-          this.device_id = values[1].id;
378
-        }
379
-      },
380
-      didChangeSchType: function(picker, sch_type, index) {
381
-        this.schedule_type = sch_type.value;
382
-        this.loading = true;
383
-        let params = {
384
-          type: this.schedule_type
385
-        };
386
-        getUrgentScheduleInitData(params)
387
-          .then(rs => {
388
-            this.loading = false;
389
-            // console.log(rs.data.data)
390
-            if (rs.data.state == 1) {
391
-              this.zone_device_options = []
392
-              this.origin_schedules = rs.data.data.schedules;
393
-              this.patients = rs.data.data.patients;
394
-              this.modes = rs.data.data.modes;
395
-              this.origin_device_numbers = rs.data.data.device_numbers;
396
-
397
-
398
-              var zone_device_map = {};
399
-              for (
400
-                let index = 0;
401
-                index < this.origin_device_numbers.length;
402
-                index++
403
-              ) {
404
-                const device_number = this.origin_device_numbers[index];
405
-                if (
406
-                  zone_device_map[device_number.zone_name] == null ||
407
-                  zone_device_map[device_number.zone_name] == undefined
408
-                ) {
409
-                  zone_device_map[device_number.zone_name] = [];
410
-                }
411
-                zone_device_map[device_number.zone_name].push(device_number);
412
-              }
413
-              this.zone_device_map = zone_device_map;
414 423
 
415
-              this.zone_names = Object.keys(this.zone_device_map);
416
-              if (this.zone_names.length > 0) {
417
-                this.zone_name = this.zone_names[0];
418
-                this.current_devices = this.zone_device_map[this.zone_name];
419
-                this.device_id = this.current_devices[0].id;
420
-              }
421
-              this.zone_device_options = [
422
-                { values: this.zone_names },
423
-                // { values: this.getDeviceNumberNames(this.current_devices) },
424
-                { values: this.current_devices }
425
-              ];
426
-              console.log( this.zone_device_options)
427
-            } else {
428
-              Toast.fail(rs.data.msg);
429
-            }
430
-          })
431
-          .catch(err => {
432
-            this.loading = false;
433
-            Toast.fail(err);
434
-          });
435
-      },
436
-
437
-      submitAction: function() {
438
-
439
-        if (this.patient_id == 0 || this.mode_id == 0 || this.device_id == 0) {
440
-          Toast.fail("请选择班次、床位等");
441
-          return;
442
-        }
424
+    submitAction: function() {
425
+      if (this.patient_id == 0 || this.mode_id == 0 || this.device_id == 0) {
426
+        Toast.fail("请选择班次、床位等");
427
+        return;
428
+      }
443 429
 
444
-        var repeated = false;
445
-        for (let index = 0; index < this.origin_schedules.length; index++) {
446
-          const schedule = this.origin_schedules[index];
447
-          if (
448
-            schedule.bed_id == this.device_id &&
449
-            this.schedule_type == schedule.schedule_type
450
-          ) {
451
-            repeated = true;
452
-            break;
453
-          }
454
-        }
455
-        if (repeated) {
456
-          Dialog.confirm({
457
-            title: "提醒",
458
-            message: "你选择的床位已经被排班,确认要替换吗?"
459
-          })
460
-            .then(() => {
461
-              // on confirm
462
-              this.submit();
463
-            })
464
-            .catch(() => {
465
-              // on cancel
466
-            });
467
-        } else {
468
-          this.submit();
430
+      var repeated = false;
431
+      for (let index = 0; index < this.origin_schedules.length; index++) {
432
+        const schedule = this.origin_schedules[index];
433
+        if (
434
+          schedule.bed_id == this.device_id &&
435
+          this.schedule_type == schedule.schedule_type
436
+        ) {
437
+          repeated = true;
438
+          break;
469 439
         }
470
-      },
471
-      submit: function() {
472
-        var params = {
473
-          patient_id: this.patient_id,
474
-          mode: this.mode_id,
475
-          schedule_type: this.schedule_type,
476
-          bed: this.device_id
477
-        };
478
-        this.loading = true;
479
-        postUrgentSchedule(params)
480
-          .then(rs => {
481
-            this.loading = false;
482
-            var resp = rs.data;
483
-            if (resp.state == 1) {
484
-              var patient = resp.data.patient;
485
-              var schedule = resp.data.schedule;
486
-              this.$router.push({
487
-                path: "/details",
488
-                query: {
489
-                  patient_id: patient.id,
490
-                  date: schedule.schedule_date,
491
-                  patient_name: patient.name
492
-                }
493
-              });
494
-            } else {
495
-              Toast.fail(resp.msg);
496
-            }
440
+      }
441
+      if (repeated) {
442
+        Dialog.confirm({
443
+          title: "提醒",
444
+          message: "你选择的床位已经被排班,确认要替换吗?"
445
+        })
446
+          .then(() => {
447
+            // on confirm
448
+            this.submit();
497 449
           })
498
-          .catch(err => {
499
-            this.loading = false;
500
-            Toast.fail("err");
450
+          .catch(() => {
451
+            // on cancel
501 452
           });
453
+      } else {
454
+        this.submit();
502 455
       }
456
+    },
457
+    submit: function() {
458
+      var params = {
459
+        patient_id: this.patient_id,
460
+        mode: this.mode_id,
461
+        schedule_type: this.schedule_type,
462
+        bed: this.device_id
463
+      };
464
+      this.loading = true;
465
+      postUrgentSchedule(params)
466
+        .then(rs => {
467
+          this.loading = false;
468
+          var resp = rs.data;
469
+          if (resp.state == 1) {
470
+            var patient = resp.data.patient;
471
+            var schedule = resp.data.schedule;
472
+            this.$router.push({
473
+              path: "/details",
474
+              query: {
475
+                patient_id: patient.id,
476
+                date: schedule.schedule_date,
477
+                patient_name: patient.name
478
+              }
479
+            });
480
+          } else {
481
+            Toast.fail(resp.msg);
482
+          }
483
+        })
484
+        .catch(err => {
485
+          this.loading = false;
486
+          Toast.fail("err");
487
+        });
503 488
     }
504
-  };
489
+  }
490
+};
505 491
 </script>
506 492
 
507 493
 
@@ -608,6 +594,7 @@
608 594
 .popup {
609 595
   border-radius: 0 !important;
610 596
   top: initial !important;
597
+  transform: translate3d(0, 0, 0) !important;
611 598
 }
612 599
 .mainBox {
613 600
   display: flex;
@@ -643,7 +630,9 @@
643 630
     }
644 631
   }
645 632
 }
646
-.van-ellipsis {
647
-  font-size: 0.45rem;
633
+.form {
634
+  .van-ellipsis {
635
+    font-size: 0.45rem;
636
+  }
648 637
 }
649 638
 </style>

+ 10 - 1
src/pages/main/index.vue Целия файл

@@ -45,7 +45,7 @@ export default {
45 45
   created() {
46 46
     this.mediaMatches();
47 47
     for (var i = 0; i < this.sqls.length; i++) {
48
-      sqls[i].addListener(this.mediaMatches);
48
+      this.sqls[i].addListener(this.mediaMatches);
49 49
     }
50 50
     // document.documentElement.style.fontSize = 30 + "px";
51 51
     // this.requestScheduals()
@@ -310,3 +310,12 @@ body {
310 310
   }
311 311
 }
312 312
 </style>
313
+<style lang="scss">
314
+.mainBox {
315
+  .van-popup {
316
+    top: 7%;
317
+    transform: translate3d(-50%, 0, 0);
318
+    border-radius: 10px;
319
+  }
320
+}
321
+</style>

+ 23 - 7
src/pages/patientManagement/index.vue Целия файл

@@ -18,19 +18,14 @@
18 18
       </div>
19 19
     </van-sticky>
20 20
     <div class="patientBox">
21
-      <van-list
22
-        v-model="loading"
23
-        :finished="finished"
24
-        finished-text="没有更多了"
25
-        @load="onLoad"
26
-      >
21
+      <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
27 22
         <div
28 23
           class="patientOne"
29 24
           v-for="item in patients"
30 25
           :key="item.id"
31 26
           @click="toPatientDetail(item.id)"
32 27
         >
33
-          <img :src="item.avatar" alt="" />
28
+          <img :src="item.avatar" alt />
34 29
           <p>{{ item.name }}</p>
35 30
         </div>
36 31
       </van-list>
@@ -114,6 +109,27 @@ export default {
114 109
     }
115 110
   },
116 111
   created() {
112
+    const baseSize = 32;
113
+    // 设置 rem 函数
114
+    function setRem() {
115
+      const scale = document.documentElement.clientWidth / 750;
116
+      document.documentElement.style.fontSize =
117
+        baseSize * Math.min(scale, 2) + "px";
118
+      //   // 320 默认大小16px; 320px = 20rem ;每个元素px基础上/16
119
+      //   let htmlWidth =
120
+      //     document.documentElement.clientWidth || document.body.clientWidth;
121
+      //   //得到html的Dom元素
122
+      //   let htmlDom = document.getElementsByTagName("html")[0];
123
+      //   //设置根元素字体大小
124
+      //   htmlDom.style.fontSize = htmlWidth / 23.4375 + "px";
125
+    }
126
+    // 初始化
127
+    setRem();
128
+    // 改变窗口大小时重新设置 rem
129
+    window.onresize = function() {
130
+      setRem();
131
+    };
132
+
117 133
     this.getBloodDialysisPatient();
118 134
   }
119 135
 };

+ 5 - 0
src/styles/resetStyle.scss Целия файл

@@ -0,0 +1,5 @@
1
+.van-popup {
2
+  border-radius: 0;
3
+  transform: translate3d(0, 0, 0);
4
+  // top: initial;
5
+}

+ 5 - 5
src/styles/style.scss Целия файл

@@ -408,10 +408,10 @@ body {
408 408
   }
409 409
 }
410 410
 
411
-.van-popup {
412
-  top: 7%;
413
-  transform: translate3d(-50%, 0, 0);
414
-}
411
+// .van-popup {
412
+//   top: 7%;
413
+//   transform: translate3d(-50%, 0, 0);
414
+// }
415 415
 
416 416
 // 弹窗滚动条
417 417
 ::-webkit-scrollbar {
@@ -458,7 +458,7 @@ body {
458 458
 }
459 459
 
460 460
 .van-popup {
461
-  border-radius: 10px;
461
+  // border-radius: 10px;
462 462
 
463 463
   .Dialog {
464 464
     font-size: 0.36rem;