55 lines
1.5 KiB
Dart
Executable File
55 lines
1.5 KiB
Dart
Executable File
import 'package:get/get.dart';
|
|
import 'package:star_lock/main/lockDetail/messageWarn/lockUser/lockUser_entity.dart';
|
|
import 'package:star_lock/main/lockDetail/messageWarn/msgNotification/msgNotification/msgNotification_entity.dart';
|
|
|
|
class NDaysUnopenedState {
|
|
|
|
NDaysUnopenedState() {
|
|
Map map = Get.arguments;
|
|
if (map['lockId'] != null) {
|
|
getLockId.value = map['lockId'];
|
|
}
|
|
|
|
if (map['lockSetInfoData'] != null) {
|
|
msgNoticeInfo.value = map['lockSetInfoData'];
|
|
if (msgNoticeInfo.value.dayNotOpenDoorState == 1) {
|
|
isUnOpenNotice.value = true;
|
|
} else {
|
|
isUnOpenNotice.value = false;
|
|
}
|
|
if (msgNoticeInfo.value.dayNotOpenDoorValue != 0) {
|
|
unOpenDoorTime.value = msgNoticeInfo.value.dayNotOpenDoorValue!;
|
|
}
|
|
}
|
|
}
|
|
final List unopenDoorTimeList = [
|
|
'1' + '天'.tr,
|
|
'2' + '天'.tr,
|
|
'3' + '天'.tr,
|
|
'4' + '天'.tr,
|
|
'5' + '天'.tr,
|
|
'6' + '天'.tr,
|
|
'7' + '天'.tr,
|
|
'8' + '天'.tr,
|
|
'9' + '天'.tr,
|
|
'10' + '天'.tr,
|
|
'11' + '天'.tr,
|
|
'12' + '天'.tr,
|
|
'13' + '天'.tr,
|
|
'14' + '天'.tr,
|
|
'15' + '天'.tr,
|
|
];
|
|
|
|
RxBool isUnOpenNotice = false.obs; // 是否N天未开门提醒
|
|
RxInt unOpenDoorTime = 3.obs; // 未开门时间
|
|
|
|
RxInt getLockId = 0.obs;
|
|
Rx<LockUserListKeys> lockUserKeys = LockUserListKeys().obs;
|
|
RxList emailReceiverList = [].obs;
|
|
RxList phoneReceiverList = [].obs;
|
|
RxString emailListStr = ''.obs;
|
|
RxString phontListStr = ''.obs;
|
|
|
|
Rx<MsgNoticeData> msgNoticeInfo = MsgNoticeData().obs;
|
|
}
|