|
|
@@ -2,7 +2,7 @@ import PageContainerBehavior from "../../../../core/behavior/page-container.beha
|
|
|
|
|
|
// module/health/pages/home/home.ts
|
|
|
import { toPatientPage } from "../../router";
|
|
|
-import { healthIndexMethod, healthPatientMethod,getCareRecordListMethod } from "../../request";
|
|
|
+import { healthIndexMethod, healthPatientMethod } from "../../request";
|
|
|
import { healthIndex2Progress } from "../../tools/health-index";
|
|
|
|
|
|
Component({
|
|
|
@@ -28,6 +28,7 @@ Component({
|
|
|
this.setData({ 'healthPatient.loading': true, })
|
|
|
try {
|
|
|
const data = await healthPatientMethod();
|
|
|
+ console.log(data, "获取患者信息");
|
|
|
this.setData({
|
|
|
'healthPatient.data': data,
|
|
|
'healthPatient.loading': false,
|
|
|
@@ -41,9 +42,11 @@ Component({
|
|
|
}
|
|
|
},
|
|
|
async getHealthIndex(id?: string) {
|
|
|
+ console.log(id, "获取健康指数");
|
|
|
this.setData({ 'healthIndex.loading': true, })
|
|
|
try {
|
|
|
const data = await healthIndexMethod(id);
|
|
|
+ console.log(data, "获取身体数据");
|
|
|
this.setData({
|
|
|
'healthIndex.data': healthIndex2Progress(data),
|
|
|
'healthIndex.loading': false,
|