From 0c0cd9dce0e944295a9eef81af3f8f06174120e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Fri, 20 Oct 2023 14:20:18 +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 | 49 +- components/BMI/BMI.vue | 448 ++++++++++++++++++ components/BloodFat/BloodFat.vue | 408 ++++++++++++++++ components/BloodOxygen/BloodOxygen.vue | 425 +++++++++++++++++ components/BloodPressure/BloodPressure.vue | 8 +- components/BloodSugar/BloodSugar.vue | 8 +- components/HeartRate/HeartRate.vue | 425 +++++++++++++++++ .../Temperature.vue} | 6 +- pages.json | 97 ++-- pagesC/addBMI/addBMI.vue | 236 +++++++++ pagesC/addBloodFat/addBloodFat.vue | 247 ++++++++++ pagesC/addBloodOxygen/addBloodOxygen.vue | 225 +++++++++ pagesC/addHeartRate/addHeartRate.vue | 215 +++++++++ pagesC/addPressure/addPressure.vue | 7 +- pagesC/healthdata/healthdata.vue | 32 +- 15 files changed, 2776 insertions(+), 60 deletions(-) create mode 100644 components/BMI/BMI.vue create mode 100644 components/BloodFat/BloodFat.vue create mode 100644 components/BloodOxygen/BloodOxygen.vue create mode 100644 components/HeartRate/HeartRate.vue rename components/{Bloodtemperature/Bloodtemperature.vue => Temperature/Temperature.vue} (99%) create mode 100644 pagesC/addBMI/addBMI.vue create mode 100644 pagesC/addBloodFat/addBloodFat.vue create mode 100644 pagesC/addBloodOxygen/addBloodOxygen.vue create mode 100644 pagesC/addHeartRate/addHeartRate.vue diff --git a/api/examinationapi/add.js b/api/examinationapi/add.js index 2f1eccf..4633e37 100644 --- a/api/examinationapi/add.js +++ b/api/examinationapi/add.js @@ -24,6 +24,17 @@ export function savebp(data) { }) } +//上传血脂 +export function savebf(data) { + return request({ + url: `/fd/ps/bf/save`, + method: 'post', + data, + header: { + Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') + } + }) +} //上传体温 export function savetemp(data) { return request({ @@ -34,4 +45,40 @@ export function savetemp(data) { Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') } }) -} \ No newline at end of file +} + +//上传BMI +export function savebmi(data) { + return request({ + url: `/fd/ps/bmi/save`, + method: 'post', + data, + header: { + Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') + } + }) +} + +//上传血氧 +export function savebo(data) { + return request({ + url: `/fd/ps/bo/save`, + method: 'post', + data, + header: { + Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') + } + }) +} + +//上传心率 +export function savehr(data) { + return request({ + url: `/fd/ps/hr/save`, + method: 'post', + data, + header: { + Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') + } + }) +} diff --git a/components/BMI/BMI.vue b/components/BMI/BMI.vue new file mode 100644 index 0000000..791ac4c --- /dev/null +++ b/components/BMI/BMI.vue @@ -0,0 +1,448 @@ + + + + + \ No newline at end of file diff --git a/components/BloodFat/BloodFat.vue b/components/BloodFat/BloodFat.vue new file mode 100644 index 0000000..6d8b121 --- /dev/null +++ b/components/BloodFat/BloodFat.vue @@ -0,0 +1,408 @@ + + + + + \ No newline at end of file diff --git a/components/BloodOxygen/BloodOxygen.vue b/components/BloodOxygen/BloodOxygen.vue new file mode 100644 index 0000000..2eca5e3 --- /dev/null +++ b/components/BloodOxygen/BloodOxygen.vue @@ -0,0 +1,425 @@ + + + + + \ No newline at end of file diff --git a/components/BloodPressure/BloodPressure.vue b/components/BloodPressure/BloodPressure.vue index a5f6fc0..045e4da 100644 --- a/components/BloodPressure/BloodPressure.vue +++ b/components/BloodPressure/BloodPressure.vue @@ -41,7 +41,7 @@ - 平均值 + 平均 {{echartData.calc.avgVal?echartData.calc.avgVal:'暂无'}} @@ -134,7 +134,7 @@ color: ["#1890FF", "#91CB74", "#FAC858", "#EE6666", "#73C0DE", "#3CA272", "#FC8452", "#9A60B4", "#ea7ccc" ], - dataLabel: false, + dataLabel: true, enableScroll: true, touchMoveLimit: 24, padding: [15, 10, 0, 15], @@ -142,7 +142,7 @@ lineHeight: 40, disableGrid: true, boundaryGap: "center", - fontSize: 12, + fontSize: 10, type: 'grid', gridType: 'dash', itemCount: 4, //x轴单屏显示数据的数量,默认为5个 @@ -442,4 +442,4 @@ } } } - \ No newline at end of file + diff --git a/components/BloodSugar/BloodSugar.vue b/components/BloodSugar/BloodSugar.vue index 59946de..e2bf93c 100644 --- a/components/BloodSugar/BloodSugar.vue +++ b/components/BloodSugar/BloodSugar.vue @@ -120,7 +120,7 @@ color: ["#1890FF", "#91CB74", "#FAC858", "#EE6666", "#73C0DE", "#3CA272", "#FC8452", "#9A60B4", "#ea7ccc" ], - dataLabel: false, + dataLabel: true, enableScroll: true, touchMoveLimit: 24, padding: [15, 10, 0, 15], @@ -128,10 +128,10 @@ lineHeight: 40, disableGrid: true, boundaryGap: "center", - fontSize: 12, + fontSize: 10, type: 'grid', gridType: 'dash', - itemCount: 4, //x轴单屏显示数据的数量,默认为5个 + itemCount: 3, //x轴单屏显示数据的数量,默认为5个 scrollShow: true, //新增是否显示滚动条,默认false scrollAlign: 'left', //滚动条初始位置 }, @@ -435,4 +435,4 @@ } } } - \ No newline at end of file + diff --git a/components/HeartRate/HeartRate.vue b/components/HeartRate/HeartRate.vue new file mode 100644 index 0000000..536f82a --- /dev/null +++ b/components/HeartRate/HeartRate.vue @@ -0,0 +1,425 @@ + + + + + \ No newline at end of file diff --git a/components/Bloodtemperature/Bloodtemperature.vue b/components/Temperature/Temperature.vue similarity index 99% rename from components/Bloodtemperature/Bloodtemperature.vue rename to components/Temperature/Temperature.vue index 455120b..c1711b2 100644 --- a/components/Bloodtemperature/Bloodtemperature.vue +++ b/components/Temperature/Temperature.vue @@ -33,7 +33,7 @@ - 平均值 + 平均 {{echartData.calc.avgVal?echartData.calc.avgVal:'暂无'}} @@ -120,7 +120,7 @@ color: ["#1890FF", "#91CB74", "#FAC858", "#EE6666", "#73C0DE", "#3CA272", "#FC8452", "#9A60B4", "#ea7ccc" ], - dataLabel: false, + dataLabel: true, enableScroll: true, touchMoveLimit: 24, padding: [15, 10, 0, 15], @@ -128,7 +128,7 @@ lineHeight: 40, disableGrid: true, boundaryGap: "center", - fontSize: 12, + fontSize: 10, type: 'grid', gridType: 'dash', itemCount: 4, //x轴单屏显示数据的数量,默认为5个 diff --git a/pages.json b/pages.json index 0abc871..e8306f1 100644 --- a/pages.json +++ b/pages.json @@ -3,21 +3,6 @@ "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue" }, "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages - { - "path": "pages/myinformation/myinformation", - "style": { - "enablePullDownRefresh": false, - "navigationStyle": "custom" - } - }, - { - "path": "pages/register/register", - "style": { - "navigationBarTitleText": "注册", - "enablePullDownRefresh": false - } - }, - { "path": "pages/homepage/homepage", "style": { @@ -25,6 +10,20 @@ "navigationStyle": "custom" } }, { + "path": "pages/myinformation/myinformation", + "style": { + "enablePullDownRefresh": false, + "navigationStyle": "custom" + } + }, + { + "path": "pages/register/register", + "style": { + "navigationBarTitleText": "注册", + "enablePullDownRefresh": false + } + }, + { "path": "pages/startup/startup", "style": { "navigationStyle": "custom", @@ -37,7 +36,7 @@ "enablePullDownRefresh": false, "navigationStyle": "custom" } - }, { + }, { "path": "pages/login/login", "style": { "navigationBarTitleText": "登录", @@ -50,7 +49,7 @@ "navigationStyle": "custom" } }, - { + { "path": "pages/facecollection/facecollection", "style": { "navigationBarTitleText": "人脸采集", @@ -327,7 +326,7 @@ "style": { "navigationBarTitleText": "家庭成员详情", "enablePullDownRefresh": false - + } }, { "path": "consultationplatform/consultationplatform", @@ -403,24 +402,21 @@ "navigationBarTitleText": "履约详情", "enablePullDownRefresh": false } - },{ - "path" : "AddMembers/AddMembers", - "style" : - { - "navigationBarTitleText": "添加成员", - "enablePullDownRefresh": false - } + }, { + "path": "AddMembers/AddMembers", + "style": { + "navigationBarTitleText": "添加成员", + "enablePullDownRefresh": false + } + }, { + "path": "Serviceevaluation/Serviceevaluation", + "style": { + "navigationBarTitleText": "服务评价", + "enablePullDownRefresh": false } - ,{ - "path" : "Serviceevaluation/Serviceevaluation", - "style" : - { - "navigationBarTitleText": "服务评价", - "enablePullDownRefresh": false - } - } - ] + } + ] }, { "root": "pagesC", "pages": [{ @@ -563,14 +559,31 @@ "navigationBarTitleText": "记录体温", "enablePullDownRefresh": false } + }, { + "path": "addBloodFat/addBloodFat", + "style": { + "navigationBarTitleText": "记录血脂", + "enablePullDownRefresh": false + } + }, { + "path": "addBMI/addBMI", + "style": { + "navigationBarTitleText": "记录BMI", + "enablePullDownRefresh": false + } + }, { + "path": "addBloodOxygen/addBloodOxygen", + "style": { + "navigationBarTitleText": "记录血氧", + "enablePullDownRefresh": false + } + }, { + "path": "addHeartRate/addHeartRate", + "style": { + "navigationBarTitleText": "记录心率", + "enablePullDownRefresh": false + } } - // { - // "path": "contractsigningprotocol/contractsigningprotocol", - // "style": { - // "navigationBarTitleText": "签约协议", - // "enablePullDownRefresh": false - // } - // } ] }], "globalStyle": { @@ -612,4 +625,4 @@ } ] } -} +} \ No newline at end of file diff --git a/pagesC/addBMI/addBMI.vue b/pagesC/addBMI/addBMI.vue new file mode 100644 index 0000000..815a9e1 --- /dev/null +++ b/pagesC/addBMI/addBMI.vue @@ -0,0 +1,236 @@ + + + + + \ No newline at end of file diff --git a/pagesC/addBloodFat/addBloodFat.vue b/pagesC/addBloodFat/addBloodFat.vue new file mode 100644 index 0000000..505f067 --- /dev/null +++ b/pagesC/addBloodFat/addBloodFat.vue @@ -0,0 +1,247 @@ + + + + + \ No newline at end of file diff --git a/pagesC/addBloodOxygen/addBloodOxygen.vue b/pagesC/addBloodOxygen/addBloodOxygen.vue new file mode 100644 index 0000000..dae0974 --- /dev/null +++ b/pagesC/addBloodOxygen/addBloodOxygen.vue @@ -0,0 +1,225 @@ + + + + + \ No newline at end of file diff --git a/pagesC/addHeartRate/addHeartRate.vue b/pagesC/addHeartRate/addHeartRate.vue new file mode 100644 index 0000000..7bf3b18 --- /dev/null +++ b/pagesC/addHeartRate/addHeartRate.vue @@ -0,0 +1,215 @@ + + + + + \ No newline at end of file diff --git a/pagesC/addPressure/addPressure.vue b/pagesC/addPressure/addPressure.vue index 88bf613..8462259 100644 --- a/pagesC/addPressure/addPressure.vue +++ b/pagesC/addPressure/addPressure.vue @@ -22,7 +22,7 @@ 心率 - + 次/分钟 @@ -161,7 +161,10 @@ color: #999999; font-size: 28rpx; } + } + .uptext:nth-child(3) { + margin-top: 80rpx; } .uptext:nth-child(2) { @@ -226,4 +229,4 @@ } } } - \ No newline at end of file + diff --git a/pagesC/healthdata/healthdata.vue b/pagesC/healthdata/healthdata.vue index bd704e5..0e9739c 100644 --- a/pagesC/healthdata/healthdata.vue +++ b/pagesC/healthdata/healthdata.vue @@ -11,9 +11,25 @@ + + + + + + + + + + + + - + @@ -25,12 +41,20 @@ } from '@/api/pagesC/healthdata/index.js' import BloodPressure from '../../components/BloodPressure/BloodPressure.vue' import BloodSugar from '../../components/BloodSugar/BloodSugar.vue' - import Bloodtemperature from '../../components/Bloodtemperature/Bloodtemperature.vue' + import Temperature from '../../components/Temperature/Temperature.vue' + import BloodFat from '../../components/BloodFat/BloodFat.vue' + import BMI from '../../components/BMI/BMI.vue' + import BloodOxygen from '../../components/BloodOxygen/BloodOxygen.vue' + import HeartRate from '../../components/HeartRate/HeartRate.vue' export default { components: { BloodPressure, BloodSugar, - Bloodtemperature + Temperature, + BloodFat, + BMI, + BloodOxygen, + HeartRate }, data() { return {