|
|
|
@ -155,7 +155,7 @@ class _NewLoginPage extends State<NewLoginPage> {
|
|
|
|
|
Color statusCodeLineColor = Color(0xFFE7E3E3); |
|
|
|
|
|
|
|
|
|
countdown() { |
|
|
|
|
if (_timer?.isActive ?? true) return; |
|
|
|
|
if (_timer?.isActive ?? false) return; |
|
|
|
|
int countdown = 60; |
|
|
|
|
_timer = Timer.periodic(Duration(seconds: 1), (timer) { |
|
|
|
|
countdown--; |
|
|
|
@ -718,9 +718,11 @@ class _NewLoginPage extends State<NewLoginPage> {
|
|
|
|
|
}, |
|
|
|
|
child: Container( |
|
|
|
|
width: double.infinity, |
|
|
|
|
height: 57.h, |
|
|
|
|
height: 57, |
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
margin: EdgeInsets.only(top: 14.h, bottom: 12.h), |
|
|
|
|
margin: EdgeInsets.only( |
|
|
|
|
top: 14.h, bottom: 12.h, |
|
|
|
|
), |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
borderRadius: BorderRadius.circular(6), |
|
|
|
|
color: Color(0xFF32A060), |
|
|
|
@ -740,14 +742,14 @@ class _NewLoginPage extends State<NewLoginPage> {
|
|
|
|
|
// if (widget.arguments != null) { |
|
|
|
|
// Navigator.of(context).pop(); |
|
|
|
|
// } else { |
|
|
|
|
ExamineInstance.instance.isExamine = true; |
|
|
|
|
ExamineInstance.instance.isExamine = false; |
|
|
|
|
Navigator.of(context) |
|
|
|
|
.popAndPushNamed('/router/main_page'); |
|
|
|
|
// } |
|
|
|
|
}, |
|
|
|
|
child: Container( |
|
|
|
|
width: double.infinity, |
|
|
|
|
height: 57.h, |
|
|
|
|
height: 57, |
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
borderRadius: BorderRadius.circular(6), |
|
|
|
@ -780,7 +782,7 @@ class _NewLoginPage extends State<NewLoginPage> {
|
|
|
|
|
"assets/image/login_bott.webp", |
|
|
|
|
fit: BoxFit.fill, |
|
|
|
|
width: double.infinity, |
|
|
|
|
height: 120.h, |
|
|
|
|
height: 120, |
|
|
|
|
), |
|
|
|
|
) |
|
|
|
|
], |
|
|
|
@ -976,8 +978,6 @@ class _NewLoginPage extends State<NewLoginPage> {
|
|
|
|
|
"mobile": mobile, |
|
|
|
|
"verification": v |
|
|
|
|
}).catchError((onError) { |
|
|
|
|
SmartDialog.showToast(AppUtils.dioErrorTypeToString(onError.type), |
|
|
|
|
alignment: Alignment.center); |
|
|
|
|
return BaseData()..isSuccess = false; |
|
|
|
|
}); |
|
|
|
|
if (baseData?.isSuccess ?? false) { |
|
|
|
|