From f1bef9915146708023016430233ddece93b45e79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Thu, 19 Oct 2023 15:49:55 +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 | 37 ++ api/pagesC/healthdata/index.js | 13 + components/BloodPressure/BloodPressure.vue | 445 ++++++++++++++++++ components/BloodSugar/BloodSugar.vue | 438 +++++++++++++++++ .../Bloodtemperature/Bloodtemperature.vue | 425 +++++++++++++++++ pages.json | 40 +- pages/homepage/homepage.vue | 23 +- .../Physicalexamination.vue | 94 ++-- pagesC/addPressure/addPressure.vue | 229 +++++++++ pagesC/addTemperature/addTemperature.vue | 206 ++++++++ pagesC/addequipment/addequipment.vue | 162 +++++++ pagesC/addsugar/addsugar.vue | 228 +++++++++ pagesC/healthdata/healthdata.vue | 99 ++++ static/pageC/BindDevice.png | Bin 0 -> 1705 bytes static/pageC/ScanAdd.png | Bin 0 -> 1058 bytes 15 files changed, 2382 insertions(+), 57 deletions(-) create mode 100644 api/examinationapi/add.js create mode 100644 api/pagesC/healthdata/index.js create mode 100644 components/BloodPressure/BloodPressure.vue create mode 100644 components/BloodSugar/BloodSugar.vue create mode 100644 components/Bloodtemperature/Bloodtemperature.vue create mode 100644 pagesC/addPressure/addPressure.vue create mode 100644 pagesC/addTemperature/addTemperature.vue create mode 100644 pagesC/addequipment/addequipment.vue create mode 100644 pagesC/addsugar/addsugar.vue create mode 100644 pagesC/healthdata/healthdata.vue create mode 100644 static/pageC/BindDevice.png create mode 100644 static/pageC/ScanAdd.png diff --git a/api/examinationapi/add.js b/api/examinationapi/add.js new file mode 100644 index 0000000..2f1eccf --- /dev/null +++ b/api/examinationapi/add.js @@ -0,0 +1,37 @@ +import request from "../request.js" + +//上传血糖 +export function savebg(data) { + return request({ + url: `/fd/ps/bg/save`, + method: 'post', + data, + header: { + Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') + } + }) +} + +//上传血压 +export function savebp(data) { + return request({ + url: `/fd/ps/bp/save`, + method: 'post', + data, + header: { + Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') + } + }) +} + +//上传体温 +export function savetemp(data) { + return request({ + url: `/fd/ps/temp/save`, + method: 'post', + data, + header: { + Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') + } + }) +} \ No newline at end of file diff --git a/api/pagesC/healthdata/index.js b/api/pagesC/healthdata/index.js new file mode 100644 index 0000000..ba57abd --- /dev/null +++ b/api/pagesC/healthdata/index.js @@ -0,0 +1,13 @@ +import request from "@/api/request.js" + +//获取体征记录 +export function record(data) { + return request({ + url: `/fd/ps/record`, + data, + method: 'get', + header: { + // region: uni.getStorageSync('region'), + } + }) +} \ No newline at end of file diff --git a/components/BloodPressure/BloodPressure.vue b/components/BloodPressure/BloodPressure.vue new file mode 100644 index 0000000..a5f6fc0 --- /dev/null +++ b/components/BloodPressure/BloodPressure.vue @@ -0,0 +1,445 @@ + + + + + \ No newline at end of file diff --git a/components/BloodSugar/BloodSugar.vue b/components/BloodSugar/BloodSugar.vue new file mode 100644 index 0000000..59946de --- /dev/null +++ b/components/BloodSugar/BloodSugar.vue @@ -0,0 +1,438 @@ + + + + + \ No newline at end of file diff --git a/components/Bloodtemperature/Bloodtemperature.vue b/components/Bloodtemperature/Bloodtemperature.vue new file mode 100644 index 0000000..455120b --- /dev/null +++ b/components/Bloodtemperature/Bloodtemperature.vue @@ -0,0 +1,425 @@ + + + + + \ No newline at end of file diff --git a/pages.json b/pages.json index 3abd619..af91147 100644 --- a/pages.json +++ b/pages.json @@ -32,6 +32,12 @@ "enablePullDownRefresh": false, "navigationStyle": "custom" } + }, { + "path": "pages/startup/startup", + "style": { + "navigationStyle": "custom", + "enablePullDownRefresh": false + } }, { "path": "pages/medicalservice/medicalservice", @@ -532,6 +538,38 @@ "navigationBarTitleText": "签约协议", "enablePullDownRefresh": false } + }, { + "path": "addequipment/addequipment", + "style": { + "navigationBarTitleText": "设备绑定", + "enablePullDownRefresh": false + } + + }, { + "path": "healthdata/healthdata", + "style": { + "navigationBarTitleText": "体征检测", + "enablePullDownRefresh": false + } + + }, { + "path": "addsugar/addsugar", + "style": { + "navigationBarTitleText": "记录血糖", + "enablePullDownRefresh": false + } + }, { + "path": "addPressure/addPressure", + "style": { + "navigationBarTitleText": "记录血压", + "enablePullDownRefresh": false + } + }, { + "path": "addTemperature/addTemperature", + "style": { + "navigationBarTitleText": "记录体温", + "enablePullDownRefresh": false + } } // { // "path": "contractsigningprotocol/contractsigningprotocol", @@ -581,4 +619,4 @@ } ] } -} \ No newline at end of file +} diff --git a/pages/homepage/homepage.vue b/pages/homepage/homepage.vue index bcb5034..a366f0a 100644 --- a/pages/homepage/homepage.vue +++ b/pages/homepage/homepage.vue @@ -86,8 +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') @@ -100,7 +100,7 @@ }) }else{ this.patientName='' - + } }, methods: { @@ -191,13 +191,16 @@ }, // 体征检测 sign() { - if (!this.userinfo) { - this.gologin(); - } else { - uni.navigateTo({ - url: "/pagesC/Physicalexamination/Physicalexamination" - }) - } + uni.navigateTo({ + url: "/pagesC/Physicalexamination/Physicalexamination" + }) + // if (!this.userinfo) { + // this.gologin(); + // } else { + // uni.navigateTo({ + // url: "/pagesC/Physicalexamination/Physicalexamination" + // }) + // } }, // 服务预约 goappoint() { diff --git a/pagesC/Physicalexamination/Physicalexamination.vue b/pagesC/Physicalexamination/Physicalexamination.vue index a18f978..5d6844a 100644 --- a/pagesC/Physicalexamination/Physicalexamination.vue +++ b/pagesC/Physicalexamination/Physicalexamination.vue @@ -7,7 +7,6 @@ 绑定设备,关注健康 - @@ -18,7 +17,7 @@ - + 血糖 @@ -30,7 +29,7 @@ - + 血压 @@ -41,45 +40,8 @@ 快来测量吧~ - - - - 体温 - - - 您30天未测量 - - - 快来测量吧~ - - - - - - BMI - - - 您30天未测量 - - - 快来测量吧~ - - - - - - 心率 - - - 您30天未测量 - - - 快来测量吧~ - - - - + 血脂 @@ -91,7 +53,19 @@ - + + + BMI + + + 您30天未测量 + + + 快来测量吧~ + + + + 血氧 @@ -103,13 +77,37 @@ + + + 心率 + + + 您30天未测量 + + + 快来测量吧~ + + + + + + 体温 + + + 您30天未测量 + + + 快来测量吧~ + + + + + - - \ No newline at end of file + diff --git a/pagesC/addPressure/addPressure.vue b/pagesC/addPressure/addPressure.vue new file mode 100644 index 0000000..88bf613 --- /dev/null +++ b/pagesC/addPressure/addPressure.vue @@ -0,0 +1,229 @@ + + + + + \ No newline at end of file diff --git a/pagesC/addTemperature/addTemperature.vue b/pagesC/addTemperature/addTemperature.vue new file mode 100644 index 0000000..a94685a --- /dev/null +++ b/pagesC/addTemperature/addTemperature.vue @@ -0,0 +1,206 @@ + + + + + \ No newline at end of file diff --git a/pagesC/addequipment/addequipment.vue b/pagesC/addequipment/addequipment.vue new file mode 100644 index 0000000..4da696d --- /dev/null +++ b/pagesC/addequipment/addequipment.vue @@ -0,0 +1,162 @@ + + + + + \ No newline at end of file diff --git a/pagesC/addsugar/addsugar.vue b/pagesC/addsugar/addsugar.vue new file mode 100644 index 0000000..527fda3 --- /dev/null +++ b/pagesC/addsugar/addsugar.vue @@ -0,0 +1,228 @@ + + + + + \ No newline at end of file diff --git a/pagesC/healthdata/healthdata.vue b/pagesC/healthdata/healthdata.vue new file mode 100644 index 0000000..bd704e5 --- /dev/null +++ b/pagesC/healthdata/healthdata.vue @@ -0,0 +1,99 @@ + + + + + \ No newline at end of file diff --git a/static/pageC/BindDevice.png b/static/pageC/BindDevice.png new file mode 100644 index 0000000000000000000000000000000000000000..ded4a96413b03f35752a9c4775ed633ade03f356 GIT binary patch literal 1705 zcmd6n`!~}K0LCY_a*w=-$}**tG?zv$Nh}k~tXzs(N>VbHrkdPuF}Y{%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000000000000..69ea187fb0237dc0b2fc3e9784516aeb250a39bd GIT binary patch literal 1058 zcmeAS@N?(olHy`uVBq!ia0vp^bAecugBeKXCrbYTQaJ%WA+A6=^um2i6msESC#``!{doIT*L;$EKLF+r{C}vs9m1aym9i z{S=DNcy>E{>xZM0K74w)cbDvXjhX;%DfXK1?MizX`M(>>?~Tf^zst?f(6dW${Q>uS z^I+C@Eyv3bOx`8ve_(;%C8qaRcm;OfKl6)U+WPqw`Q?QV`EN32*)v<#EBR!s&%U0t zFmt8CVk3vSuQHEreWN3LVf~wc4Dm{)MaR0bZwm5V_^NPEN9NhhiD%ZzeXB_2WQt8n z=PKOzIr3Qe``Ei%E|j`kuxFSHYVA(D-xcI_Y}JD47p)3%uQpw2YuMEja+cX?@|5NN zZRa;R%RJrKZ+~v<yDlBC3$ZeO!hQS)eJ4VyYB5g z`STBc`dFU|-Zb61C+}tWy!=XTZAHDRxi`AM5zv1(OKdYzd1y=ikr^v$ngdp3Ta5_daOA jztM48obv*+bbB@B=;wX! z&o6v(uKc20WS~jc+-E!s^;wsA=53n%rm=U*&gneYVhhXpvJNT=vhSZ;&R4k6y5(ZW ztV{-@)Z0?Cc5G?${T#gh&9@|njn0fKLC7y=9Z+8u~(~t=eL# z6!q$j!oq}`*V5%>FKG4)a=kiK$=g&GWpHtg+_T%+=(*Idb9c+m> UF?U-AF!M2Zy85}Sb4q9e02P7`TmS$7 literal 0 HcmV?d00001