更新验证码选择区号

This commit is contained in:
wyf
2025-12-10 15:22:17 +08:00
parent 793dddfba8
commit fb5a17830b
19 changed files with 671 additions and 438 deletions

View File

@@ -207,6 +207,15 @@ class _BodyDevicePageState extends State<BodyDeviceWidget> {
_pageController.animateToPage(index,
duration: const Duration(milliseconds: 300), curve: Curves.easeInOut);
BodyDeviceController deviceController = Get.find();
if (index == 0) {
deviceController.model.type = 1;
homeController.model.type = 1;
} else if (index == 1) {
deviceController.model.type = 2;
homeController.model.type = 2;
}
deviceController.updateAll();
await deviceController.getDeviceList();
await deviceController.getSleepReport();
}