This commit is contained in:
wyf
2025-08-15 10:16:35 +08:00
parent b2fd885192
commit 7cffe978ae
11 changed files with 253 additions and 197 deletions

View File

@@ -514,12 +514,30 @@ class _MhtSleepReportPageState extends State<MhtSleepReportPage> {
sleepReport:
sleepReportController
.sleepReport.value,
onRefresh: () {
// 这里写刷新逻辑
String data =
MyUtils.formatDate(
calendarController
.selectedDate
.value!);
loadSleepReport(data);
},
),
SizedBox(height: 25.rpx),
VitalSignsWidget(
sleepReport:
sleepReportController
.sleepReport.value,
onRefresh: () {
// 这里写刷新逻辑
String data =
MyUtils.formatDate(
calendarController
.selectedDate
.value!);
loadSleepReport(data);
},
),
],
)
@@ -661,7 +679,7 @@ class _MhtSleepReportPageState extends State<MhtSleepReportPage> {
logTitle: "查询睡眠报告",
method: MyHttpMethod.get,
queryUrl:
"https://sleepdata.he-info.com/api/analysis/sleep/analysis?mac=${homeController.selectDevcie.value}&time=${data}&type=${sleepReportController.model.type}",
"https://sleepdata.he-info.com/api/analysis/sleep/analysis?mac=${homeController.selectDevcie.value}&time=${data}&type=1",
onSuccess: (res) {
isLoading.value = false;
print(res);