更新
This commit is contained in:
@@ -102,8 +102,8 @@ class DeviceInfoWidget extends GetView {
|
||||
children: [
|
||||
_buildInfoRow(
|
||||
'设备ID'.tr,
|
||||
deviceListController
|
||||
.model.deviceList[index]["mac".tr] ??
|
||||
deviceListController.model
|
||||
.deviceList[index]["mac".tr] ??
|
||||
'',
|
||||
valueColor: (deviceListController
|
||||
.model.deviceList[index]
|
||||
@@ -410,16 +410,16 @@ class DeviceInfoWidget extends GetView {
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
getNameByType(device) {
|
||||
if (device['device_type'] == null) {
|
||||
return '未知类型设备'.tr;
|
||||
}
|
||||
if (device['device_type'] == 2) {
|
||||
return 'SWES 智能床'.tr;
|
||||
}
|
||||
if (device['device_type'] == 3) {
|
||||
return 'SWES 智能床垫'.tr;
|
||||
}
|
||||
getNameByType(device) {
|
||||
if (device['device_type'] == null) {
|
||||
return '未知类型设备'.tr;
|
||||
}
|
||||
if (device['device_type'] == 2) {
|
||||
return '智能电动床'.tr;
|
||||
}
|
||||
if (device['device_type'] == 3) {
|
||||
return '律动智能床垫'.tr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user