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 : '' } },