From 7bfad8624efcdb9fd082fe757502954930640aae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com>
Date: Mon, 23 Oct 2023 09:53:46 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/examinationapi/add.js | 34 ++++
pages.json | 19 +-
pages/homepage/homepage.vue | 8 +-
.../Physicalexamination.vue | 2 +-
pagesC/addequipment/addequipment.vue | 79 ++++++---
pagesC/devicelist/devicelist.vue | 165 ++++++++++++++++++
6 files changed, 272 insertions(+), 35 deletions(-)
create mode 100644 pagesC/devicelist/devicelist.vue
diff --git a/api/examinationapi/add.js b/api/examinationapi/add.js
index 5fb0768..ac068e9 100644
--- a/api/examinationapi/add.js
+++ b/api/examinationapi/add.js
@@ -93,3 +93,37 @@ export function recordlast(identity) {
}
})
}
+
+//设备列表
+export function bound(identity) {
+ return request({
+ url: `/fd/device/bound/${identity}`,
+ method: 'get',
+ header: {
+ Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
+ }
+ })
+}
+//解绑
+export function unbind(data) {
+ return request({
+ url: `/fd/device/unbind`,
+ method: 'post',
+ data,
+ header: {
+ Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
+ }
+ })
+}
+
+//添加设备
+export function binding(data) {
+ return request({
+ url: `/fd/device/binding`,
+ method: 'post',
+ data,
+ header: {
+ Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
+ }
+ })
+}
\ No newline at end of file
diff --git a/pages.json b/pages.json
index a2865ca..94b98d3 100644
--- a/pages.json
+++ b/pages.json
@@ -4,6 +4,12 @@
},
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
+ "path": "pages/homepage/homepage",
+ "style": {
+ "enablePullDownRefresh": false,
+ "navigationStyle": "custom"
+ }
+ }, {
"path": "pages/myinformation/myinformation",
"style": {
"enablePullDownRefresh": false,
@@ -17,14 +23,7 @@
"enablePullDownRefresh": false
}
},
-
{
- "path": "pages/homepage/homepage",
- "style": {
- "enablePullDownRefresh": false,
- "navigationStyle": "custom"
- }
- }, {
"path": "pages/startup/startup",
"style": {
"navigationStyle": "custom",
@@ -599,6 +598,12 @@
"navigationBarTitleText": "记录心率",
"enablePullDownRefresh": false
}
+ }, {
+ "path": "devicelist/devicelist",
+ "style": {
+ "navigationBarTitleText": "设备列表",
+ "enablePullDownRefresh": false
+ }
}
]
}],
diff --git a/pages/homepage/homepage.vue b/pages/homepage/homepage.vue
index a366f0a..4b1fe7b 100644
--- a/pages/homepage/homepage.vue
+++ b/pages/homepage/homepage.vue
@@ -86,11 +86,8 @@
onShow() {
uni.setStorageSync("region", 1)
this.userinfo = uni.getStorageSync('userinfo');
-
-
if (this.userinfo) {
this.patientName = this.userinfo.patientName
- console.log(this.patientName,'000')
checkSignApply(this.userinfo.cardNo).then(res => {
if (res.data.code != 0) {
this.checkSign = true
@@ -98,9 +95,8 @@
this.checkSign = false
}
})
- }else{
- this.patientName=''
-
+ } else {
+ this.patientName = ''
}
},
methods: {
diff --git a/pagesC/Physicalexamination/Physicalexamination.vue b/pagesC/Physicalexamination/Physicalexamination.vue
index bd81073..10592a7 100644
--- a/pagesC/Physicalexamination/Physicalexamination.vue
+++ b/pagesC/Physicalexamination/Physicalexamination.vue
@@ -387,7 +387,7 @@
},
goaddequipment() {
uni.navigateTo({
- url: "/pagesC/addequipment/addequipment"
+ url: "/pagesC/devicelist/devicelist"
})
},
gohealthdata(index) {
diff --git a/pagesC/addequipment/addequipment.vue b/pagesC/addequipment/addequipment.vue
index 4da696d..ca82717 100644
--- a/pagesC/addequipment/addequipment.vue
+++ b/pagesC/addequipment/addequipment.vue
@@ -19,29 +19,37 @@
- 血压计
- 血糖仪
+ 血压计
+ 血糖仪
+ 动态血压仪
保存
+
+
+
\ No newline at end of file