设备 预约接口

This commit is contained in:
czz
2025-06-12 17:38:31 +08:00
parent d5c3addd4a
commit d8b46c41ad
13 changed files with 267 additions and 521 deletions

View File

@@ -16,6 +16,36 @@ class MattressControlPage extends StatefulWidget {
class _MattressControlPageState extends State<MattressControlPage> {
final controller = Get.put(ControlCardController());
final data ={
"_id": "6840ee86693db58798000000",
"uid": "68465947a0cff49592000000",
"bind_type": 1,
"device_type": 1,
"mac": "B43A45C3E9A8",
"bind_mac": null,
"position": 0,
"share_uid": null,
"person": {
"name": "bb",
"gender": 0,
"birthday": "2025/05/27",
"weight": "10",
"height": "100",
"disease": []
},
"show": true,
"create_time": 1749085830536,
"shareNum": 0,
"status": {
"signal": -1,
"status": 0,
"inBed": 0,
"upgrade": 0,
"failure": 0,
"updateTime": 1749110182000
},
"code": "B43A45C3E9A8"
};
int selectedIndex = 1; // 当前选中的tab索引
@override
Widget build(BuildContext context) {
@@ -98,7 +128,7 @@ class _MattressControlPageState extends State<MattressControlPage> {
highlightColor: Colors.transparent,
padding: EdgeInsets.only(right: 38.rpx),
onTap: () {
Get.toNamed('/bluetoothPage');
Get.toNamed('/bluetoothPage', arguments: data);
},
child: Icon(Icons.tune,
color: Colors.white, size: 42.rpx))