fix: 修复重置密码没有响应问题
This commit is contained in:
parent
e20e6702b9
commit
42a6ef0dcc
@ -105,7 +105,7 @@ class _StarLockForgetPasswordPageState
|
||||
height: 36.w,
|
||||
),
|
||||
),
|
||||
hintText:'请输入手机号或者邮箱'.tr,
|
||||
hintText: '请输入手机号或者邮箱'.tr,
|
||||
keyboardType: TextInputType.number,
|
||||
inputFormatters: <TextInputFormatter>[
|
||||
LengthLimitingTextInputFormatter(30),
|
||||
@ -127,8 +127,7 @@ class _StarLockForgetPasswordPageState
|
||||
height: 36.w,
|
||||
),
|
||||
),
|
||||
hintText:
|
||||
'请输入密码'.tr,
|
||||
hintText: '请输入密码'.tr,
|
||||
inputFormatters: <TextInputFormatter>[
|
||||
LengthLimitingTextInputFormatter(20),
|
||||
]),
|
||||
@ -155,8 +154,7 @@ class _StarLockForgetPasswordPageState
|
||||
height: 36.w,
|
||||
),
|
||||
),
|
||||
hintText:
|
||||
'确认密码'.tr,
|
||||
hintText: '确认密码'.tr,
|
||||
inputFormatters: <TextInputFormatter>[
|
||||
LengthLimitingTextInputFormatter(20),
|
||||
]),
|
||||
@ -204,7 +202,8 @@ class _StarLockForgetPasswordPageState
|
||||
// height: 60.h,
|
||||
padding: EdgeInsets.all(10.h),
|
||||
decoration: BoxDecoration(
|
||||
color: (state.canSendCode.value && state.canResend.value)
|
||||
color: (state.canSendCode.value &&
|
||||
state.canResend.value)
|
||||
? AppColors.mainColor
|
||||
: AppColors.btnDisableColor,
|
||||
borderRadius: BorderRadius.circular(5)),
|
||||
@ -233,12 +232,12 @@ class _StarLockForgetPasswordPageState
|
||||
isDisabled: state.canSub.value,
|
||||
onClick: state.canSub.value
|
||||
? () async {
|
||||
final bool isNetWork =
|
||||
await LockMainLogic.to()?.judgeTheNetwork() ??
|
||||
false;
|
||||
if (!isNetWork) {
|
||||
return;
|
||||
}
|
||||
// final bool isNetWork =
|
||||
// await LockMainLogic.to()?.judgeTheNetwork() ??
|
||||
// false;
|
||||
// if (!isNetWork) {
|
||||
// return;
|
||||
// }
|
||||
logic.resetPassword();
|
||||
}
|
||||
: null);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user