52 lines
1.3 KiB
Dart
Executable File
52 lines
1.3 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 {
|
|
final List unopenDoorTimeList = [
|
|
'1天',
|
|
'2天',
|
|
'3天',
|
|
'4天',
|
|
'5天',
|
|
'6天',
|
|
'7天',
|
|
'8天',
|
|
'9天',
|
|
'10天',
|
|
'11天',
|
|
'12天',
|
|
'13天',
|
|
'14天',
|
|
'15天',
|
|
];
|
|
|
|
var isUnOpenNotice = false.obs; // 是否N天未开门提醒
|
|
var unOpenDoorTime = 3.obs; // 未开门时间
|
|
|
|
var getLockId = 0.obs;
|
|
var lockUserKeys = LockUserListKeys().obs;
|
|
var emailReceiverList = [].obs;
|
|
var phoneReceiverList = [].obs;
|
|
var emailListStr = ''.obs;
|
|
var phontListStr = ''.obs;
|
|
|
|
var msgNoticeInfo = MsgNoticeData().obs;
|
|
|
|
NDaysUnopenedState() {
|
|
Map map = Get.arguments;
|
|
if (map['lockId'] != null) {
|
|
getLockId.value = map['lockId'];
|
|
}
|
|
|
|
if (map['lockSetInfoData'] != null) {
|
|
msgNoticeInfo.value = map['lockSetInfoData'];
|
|
isUnOpenNotice.value =
|
|
msgNoticeInfo.value.dayNotOpenDoorState == 1 ? true : false;
|
|
if (msgNoticeInfo.value.dayNotOpenDoorValue != 0) {
|
|
unOpenDoorTime.value = msgNoticeInfo.value.dayNotOpenDoorValue!;
|
|
}
|
|
}
|
|
}
|
|
}
|