更新验证码选择区号
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -25,6 +25,7 @@ import 'package:vbvs_app/enum/BindType.dart';
|
||||
import 'package:vbvs_app/model/api_response.dart';
|
||||
import 'package:vbvs_app/pages/device_bind/componnet/bind_dialog.dart';
|
||||
|
||||
|
||||
class DeviceDataComponentWidget extends StatefulWidget {
|
||||
final Map<String, dynamic> device;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user