a,领锁,点击+号时,如果获取网络时间失败,不进入下一页,提示必须联网 b. 开锁时:有网络时间则同步,无网络则不同步时间 c. 同步时间功能:必须有网才同步时间,确定和通通锁不一致 2、修改登录、注册、修改密码选择跟当前ip不是用一个国家的时候,弹窗提示
19 lines
578 B
Dart
Executable File
19 lines
578 B
Dart
Executable File
|
|
import 'package:get/get.dart';
|
|
import '../lockSet/lockSetInfo_entity.dart';
|
|
|
|
class LockTimeState{// 0普通状态(可用) 1连接中(不可用)
|
|
|
|
LockTimeState() {
|
|
final map = Get.arguments;
|
|
lockSetInfoData.value = map['lockSetInfoData'];
|
|
}
|
|
Rx<LockSetInfoData> lockSetInfoData = LockSetInfoData().obs;
|
|
RxString dateTime = ''.obs;
|
|
int differentialTime = 0;
|
|
|
|
RxBool ifCurrentScreen = true.obs; // 是否是当前界面,用于判断是否需要针对当前界面进行展示
|
|
RxInt sureBtnState = 0.obs;
|
|
|
|
int serverTime = 0;// 服务器时间即UTC+0时间
|
|
} |