diff --git a/pages/patients/index.js b/pages/patients/index.js
index 75df8df..8e15f8e 100644
--- a/pages/patients/index.js
+++ b/pages/patients/index.js
@@ -20,7 +20,11 @@ Page({
async getList(append = false) {
if (!this.data.hasMore && append) return;
const res = await request(`doctor/patients?page=${this.page}&page_size=${this.page_size}&username=${this.data.username}`)
- const newList = append ? this.data.list.concat(res.list) : res.list;
+ const arr = res.list.map(item => {
+ item.avatar = item.avatar ? item.avatar : 'https://image-fudan.oss-cn-beijing.aliyuncs.com/mini_images/my/baby.png'
+ return item
+ })
+ const newList = append ? this.data.list.concat(arr) : arr;
this.setData({
list: newList,
hasMore: res.list.length === this.page_size
diff --git a/pages/patients/index.less b/pages/patients/index.less
index acb9bb9..9f9cfa5 100644
--- a/pages/patients/index.less
+++ b/pages/patients/index.less
@@ -20,13 +20,16 @@
height: calc(100% - 180rpx);
position: relative;
z-index: 1;
- padding: 24rpx;
padding-top: 0;
scroll-view{
box-sizing: border-box;
width: 100%;
height: 100%;
padding-top: 12rpx;
+ .scroll-view-box{
+ padding: 0 28rpx;
+ // padding-bottom: 160rpx;
+ }
}
}
.scroll-top{
@@ -102,7 +105,6 @@
}
.box_5 {
border-radius: 100%;
- background-image: url(https://lanhu-dds-backend.oss-cn-beijing.aliyuncs.com/merge_image/imgs/0541ba31b7264f1ab9115b54b31a4f09_mergeImage.png);
width: 84rpx;
height: 84rpx;
border-radius: 84rpx;
diff --git a/pages/patients/index.wxml b/pages/patients/index.wxml
index 31b1ddb..5918081 100644
--- a/pages/patients/index.wxml
+++ b/pages/patients/index.wxml
@@ -3,88 +3,47 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
- {{item.username}}
-
- {{item.sex == 1 ? '男':'女'}} · {{item.age}}
-
+
+
+
+
+
+
+
+
+ {{item.username}}
+
+ {{item.sex == 1 ? '男':'女'}} · {{item.age}}
+
+
+ PELD评分:{{item.risk_value}}
- PELD评分:{{item.risk_value}}
-
- 下次随访时间:{{item.next_follow_date}}
-
-
- 高危
-
-
- 中危
-
-
- 低危
-
-
- 术后{{item.postoperative_duration}}
+ 下次随访时间:{{item.next_follow_date}}
+
+
+ 高危
+
+
+ 中危
+
+
+ 低危
+
+
+ 术后{{item.postoperative_duration}}
+
-