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/pagesB/familymemberdetail/familymemberdetail.js b/api/pagesB/familymemberdetail/familymemberdetail.js
new file mode 100644
index 0000000..230a60a
--- /dev/null
+++ b/api/pagesB/familymemberdetail/familymemberdetail.js
@@ -0,0 +1,16 @@
+import request from "../../request.js"
+// 获取家庭成员详情
+export function getInfo(patientCode) {
+ return request({
+ url: `/applet/register/getInfo/${patientCode}`,
+ method: 'GET'
+ })
+}
+// 解绑账号
+
+export function delFamilyItem(patientCode) {
+ return request({
+ url: `/applet/register/unbinding/${patientCode}`,
+ method: 'GET'
+ })
+}
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 @@
+
+
+
+
+ — 正常范围 —
+
+
+ + 添加数据
+
+
+
+
+ 收缩压
+
+
+ 90-140mmHg
+
+
+
+
+ 舒张压
+
+
+ 60-90mmHg
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+ 注:全部视图主要展示全部血压数值的趋势曲线 单位:mmHg
+
+
+
+
+
+
+ 平均值
+
+
+ {{echartData.calc.avgVal?echartData.calc.avgVal:'暂无'}}
+
+
+
+
+ 最大
+
+
+
+ {{echartData.calc.maxDbpVal?echartData.calc.maxDbpVal:'暂无'}}
+
+ {{echartData.calc.maxSbpVal?echartData.calc.maxSbpVal:'暂无'}}
+
+
+
+
+ 最小
+
+
+
+ {{echartData.calc.minDbpVal?echartData.calc.minDbpVal:'暂无'}}
+
+ {{echartData.calc.minSbpVal?echartData.calc.minSbpVal:'暂无'}}
+
+
+
+
+
+
+
+
+
+
+
+
+
\ 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 @@
+
+
+
+
+ — 正常范围 —
+
+
+ + 添加数据
+
+
+
+
+ 餐前血糖
+
+
+ 4.4-7.0mmol/L
+
+
+
+
+ 餐后/凌晨/睡前/随机
+
+
+ 4.4-10.0mmol/L
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+ 注:全部视图主要展示全部血糖数值的趋势曲线 单位:mmol/L
+
+
+
+
+
+
+ 最大
+
+
+ {{echartData.calc.maxVal?echartData.calc.maxVal:'暂无'}}
+
+
+
+
+ 最小
+
+
+ {{echartData.calc.minVal?echartData.calc.minVal:'暂无'}}
+
+
+
+
+
+
+
+
+
+
+
+
+
\ 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 @@
+
+
+
+
+ — 正常范围 —
+
+
+ + 添加数据
+
+
+
+
+ 体温
+
+
+ 36—37摄氏度
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+ 注:全部视图主要展示全部体温数值的趋势曲线
+
+
+
+
+
+
+ 平均值
+
+
+ {{echartData.calc.avgVal?echartData.calc.avgVal:'暂无'}}
+
+
+
+
+ 最大
+
+
+ {{echartData.calc.maxVal?echartData.calc.maxVal:'暂无'}}
+
+
+
+
+ 最小
+
+
+ {{echartData.calc.minVal?echartData.calc.minVal:'暂无'}}
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages.json b/pages.json
index 3abd619..0abc871 100644
--- a/pages.json
+++ b/pages.json
@@ -18,20 +18,18 @@
}
},
- {
- "path": "pages/startup/startup",
- "style": {
- "navigationStyle": "custom",
- "enablePullDownRefresh": false
- }
- },
-
{
"path": "pages/homepage/homepage",
"style": {
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
+ }, {
+ "path": "pages/startup/startup",
+ "style": {
+ "navigationStyle": "custom",
+ "enablePullDownRefresh": false
+ }
},
{
"path": "pages/medicalservice/medicalservice",
@@ -329,6 +327,7 @@
"style": {
"navigationBarTitleText": "家庭成员详情",
"enablePullDownRefresh": false
+
}
}, {
"path": "consultationplatform/consultationplatform",
@@ -532,6 +531,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 +612,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/pagesB/familymemberdetail/familymemberdetail.vue b/pagesB/familymemberdetail/familymemberdetail.vue
index fc0dd3f..33760d4 100644
--- a/pagesB/familymemberdetail/familymemberdetail.vue
+++ b/pagesB/familymemberdetail/familymemberdetail.vue
@@ -58,9 +58,11 @@
})
},
onShow() {
-
+
},
methods: {
+
+
closebtn() {
this.show = false;
},
@@ -157,4 +159,4 @@
}
}
}
-
\ No newline at end of file
+
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 @@
+
+
+
+
+ 舒张压
+
+
+
+ mmHg
+
+
+
+
+ 收缩压
+
+
+
+ mmHg
+
+
+
+
+ 心率
+
+
+
+ 次/分钟
+
+
+
+
+ 记录时间:
+
+ {{measureTime}}
+
+
+
+
+
+
+
+ 保存
+
+
+
+
+
+
+
+
\ 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 @@
+
+
+
+
+ 体温
+
+
+
+ ℃
+
+
+
+
+ 记录时间:
+
+ {{measureTime}}
+
+
+
+
+
+
+
+ 保存
+
+
+
+
+
+
+
+
\ 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 @@
+
+
+
+
+
+
+ mmol/L
+
+
+
+
+ 记录时间:
+
+ {{measureTime}}
+
+
+
+
+
+
+
+ 测量场景
+
+
+ 凌晨
+ 早餐前
+ 早晨后
+ 午餐前
+ 午餐后
+ 晚餐前
+ 晚餐后
+ 睡前2小时
+
+
+
+
+ 添加
+
+
+
+
+
+
+
+
+
\ 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 0000000..ded4a96
Binary files /dev/null and b/static/pageC/BindDevice.png differ
diff --git a/static/pageC/ScanAdd.png b/static/pageC/ScanAdd.png
new file mode 100644
index 0000000..69ea187
Binary files /dev/null and b/static/pageC/ScanAdd.png differ