解绑设备

This commit is contained in:
czz
2025-06-24 15:38:18 +08:00
parent c21896a408
commit 1522f2e4c9
17 changed files with 706 additions and 472 deletions

View File

@@ -146,13 +146,13 @@ class DevicePeopleInfo extends GetView<PeopleInfoController> {
...List.generate(controller.model.peopleList.length,
(index) {
final person = controller.model.peopleList[index];
String location_ = '';
if ("${data["bindMacB"]}".length > 6 &&
(person["direction"] == 1 ||
person["direction"] == 2)) {
location_ =
person["direction"] == 1 ? '左侧' : '右侧';
}
// String location_ = '';
// if ("${data["bindMacB"]}".length > 6 &&
// (person["direction"] == 1 ||
// person["direction"] == 2)) {
// location_ =
// person["direction"] == 1 ? '左侧' : '右侧';
// }
return ClickableContainer(
backgroundColor: Color(0xFF003058),
@@ -176,9 +176,8 @@ class DevicePeopleInfo extends GetView<PeopleInfoController> {
),
),
),
if (location_.isNotEmpty)
getInfoRow(context,
"姓名:${person["name"] ?? "-"}"),
getInfoRow(
context, "姓名:${person["name"] ?? "-"}"),
getInfoRow(context,
"性别:${person["gender"] == null ? "-" : (person["gender"] == 1 ? "" : "")}"),
getInfoRow(context,