diff --git a/star_lock/lib/main/lockDetail/lockSet/lockSet/lockSetInfo_entity.dart b/star_lock/lib/main/lockDetail/lockSet/lockSet/lockSetInfo_entity.dart index e427a2ea..e9c62300 100644 --- a/star_lock/lib/main/lockDetail/lockSet/lockSet/lockSetInfo_entity.dart +++ b/star_lock/lib/main/lockDetail/lockSet/lockSet/lockSetInfo_entity.dart @@ -137,6 +137,7 @@ class LockFeature { int? wirelessKeyboard; int? lightingTime; int? passageMode; + int? isSupportCatEye; int? hotelLockCardSystem; int? appUnlockOnline; int? bluetoothBroadcast; @@ -191,6 +192,7 @@ class LockFeature { this.wirelessKeyboard, this.lightingTime, this.passageMode, + this.isSupportCatEye, this.hotelLockCardSystem, this.appUnlockOnline, this.bluetoothBroadcast, @@ -246,6 +248,7 @@ class LockFeature { wirelessKeyboard = json['wirelessKeyboard']; lightingTime = json['lightingTime']; passageMode = json['passageMode']; + isSupportCatEye = json['isSupportCatEye']; hotelLockCardSystem = json['hotelLockCardSystem']; appUnlockOnline = json['appUnlockOnline']; bluetoothBroadcast = json['bluetoothBroadcast']; @@ -302,6 +305,7 @@ class LockFeature { data['wirelessKeyboard'] = wirelessKeyboard; data['lightingTime'] = lightingTime; data['passageMode'] = passageMode; + data['isSupportCatEye'] = isSupportCatEye; data['hotelLockCardSystem'] = hotelLockCardSystem; data['appUnlockOnline'] = appUnlockOnline; data['bluetoothBroadcast'] = bluetoothBroadcast; diff --git a/star_lock/lib/main/lockDetail/lockSet/lockSet/lockSet_page.dart b/star_lock/lib/main/lockDetail/lockSet/lockSet/lockSet_page.dart index c5ab9fdb..646abc06 100644 --- a/star_lock/lib/main/lockDetail/lockSet/lockSet/lockSet_page.dart +++ b/star_lock/lib/main/lockDetail/lockSet/lockSet/lockSet_page.dart @@ -377,8 +377,8 @@ class _LockSetPageState extends State with RouteAware { }); })), //猫眼设置 - Visibility( - visible: true, + Obx(() => Visibility( + visible: state.lockFeature.value.isSupportCatEye == 1 ? true : false, child: CommonItem( leftTitel: TranslationLoader.lanKeys!.catEyeSet!.tr, rightTitle: "", @@ -388,7 +388,7 @@ class _LockSetPageState extends State with RouteAware { Get.toNamed(Routers.catEyeSetPage, arguments: { 'lockSetInfoData': state.lockSetInfoData.value }); - })), + }))), // Obx(() => //自动亮屏已包括至面容开锁模块 // Visibility( @@ -644,11 +644,10 @@ class _LockSetPageState extends State with RouteAware { logic.openCheckingInData((checkingInInfoDataEntity) { if (checkingInInfoDataEntity.data!.companyId == 0) { // logic.showCupertinoAlertDialog(context); - ShowTipView().showIosTipWithContentDialog("创建公司后,考勤功能才能使用".tr, (){ + ShowTipView().showIosTipWithContentDialog("创建公司后,考勤功能才能使用".tr, () { // 删除锁 - Get.toNamed(Routers.checkInCreatCompanyPage, arguments: { - 'lockSetInfoData': state.lockSetInfoData.value - }); + Get.toNamed(Routers.checkInCreatCompanyPage, + arguments: {'lockSetInfoData': state.lockSetInfoData.value}); }); } else { logic.setLockSetGeneralSetting();