|
|
|
@ -39,7 +39,7 @@ class _LoginPageState extends State<LoginPage> {
|
|
|
|
|
int _countDownNum = 59;
|
|
|
|
|
late TextEditingController _phoneController;
|
|
|
|
|
late TextEditingController _smsCodeController;
|
|
|
|
|
late FocusNode _phoneFocusNode;
|
|
|
|
|
late FocusNode _phoneFocusNode ;
|
|
|
|
|
late FocusNode _smsCodeFocusNode;
|
|
|
|
|
bool _cantSelected = false;
|
|
|
|
|
|
|
|
|
@ -63,8 +63,8 @@ class _LoginPageState extends State<LoginPage> {
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
void dispose() {
|
|
|
|
|
_phoneFocusNode.dispose();
|
|
|
|
|
_smsCodeFocusNode.dispose();
|
|
|
|
|
_phoneFocusNode.unfocus();
|
|
|
|
|
_smsCodeFocusNode.unfocus();
|
|
|
|
|
_phoneController.dispose();
|
|
|
|
|
_smsCodeController.dispose();
|
|
|
|
|
super.dispose();
|
|
|
|
@ -132,7 +132,7 @@ class _LoginPageState extends State<LoginPage> {
|
|
|
|
|
data: {'phone': _phoneController.text, 'code': _smsCodeController.text});
|
|
|
|
|
if (base.code == 0) {
|
|
|
|
|
await UserTool.userProvider.setToken(base.data['token']);
|
|
|
|
|
Get.to(() => const TabNavigator());
|
|
|
|
|
Get.offAll(() => const TabNavigator());
|
|
|
|
|
} else {
|
|
|
|
|
CloudToast.show(base.msg);
|
|
|
|
|
}
|
|
|
|
|