From f0905941d53e871a70e2a7d69f2c1f7f75245d38 Mon Sep 17 00:00:00 2001
From: panliang <1163816051@qq.com>
Date: Tue, 17 Oct 2023 12:27:29 +0800
Subject: [PATCH] patient detail
---
src/pages.json | 3 ++-
src/pages/patient/detail.vue | 11 ++++-------
src/pages/record/detail.vue | 2 +-
3 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/src/pages.json b/src/pages.json
index 6ebc3b8..c58c9fe 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -33,7 +33,8 @@
{
"path": "pages/patient/detail",
"style": {
- "navigationBarTitleText": "初诊信息"
+ "navigationBarTitleText": "初诊信息",
+ "enablePullDownRefresh": true
}
},
{
diff --git a/src/pages/patient/detail.vue b/src/pages/patient/detail.vue
index 6b5c7ee..ba6ae5d 100644
--- a/src/pages/patient/detail.vue
+++ b/src/pages/patient/detail.vue
@@ -7,8 +7,8 @@
-->
-
-
+
+
@@ -38,6 +38,7 @@ export default {
doctor_id: '',
doctor: {},
},
+ type: '',
}
},
onLoad(e) {
@@ -57,11 +58,7 @@ export default {
uni.stopPullDownRefresh()
if (res.status == 0) {
this.info = res.data
- if (res.data.images) {
- this.$refs['images'].setList(res.data.images.map(value => {
- return { url: value }
- }))
- }
+ this.type = this.info.type ? this.info.type.name : ''
uni.setNavigationBarTitle({ title: this.info.name })
}
}).catch(error => {
diff --git a/src/pages/record/detail.vue b/src/pages/record/detail.vue
index 706ea76..b173af6 100644
--- a/src/pages/record/detail.vue
+++ b/src/pages/record/detail.vue
@@ -61,7 +61,7 @@ export default {
uni.stopPullDownRefresh()
if (res.status == 0) {
this.info = res.data
- this.type.text = this.info.type.name
+ this.type.text = this.info.type ? this.info.type.name : ''
}
},