From 84646f202d062dfd907d0146acd3998391ce76af Mon Sep 17 00:00:00 2001 From: datang Date: Wed, 6 Apr 2022 17:39:28 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E9=99=86=E2=80=94=E2=80=94=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E6=98=BE=E7=A4=BA=E7=9A=84=E7=99=BB=E9=99=86=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=E5=BA=94=E8=AF=A5=E4=BC=98=E5=85=88=E4=B8=BA=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E7=A0=81=E7=99=BB=E9=99=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/sign/login/other_login_page.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/pages/sign/login/other_login_page.dart b/lib/pages/sign/login/other_login_page.dart index f86323a2..3118ca5a 100644 --- a/lib/pages/sign/login/other_login_page.dart +++ b/lib/pages/sign/login/other_login_page.dart @@ -26,7 +26,7 @@ class OtherLoginPage extends StatefulWidget { class _OtherLoginPageState extends State { PageController _controller = PageController(); - List _tabs = ['账号登录', '验证码登录']; + List _tabs = [ '验证码登录','账号登录']; int _currentIndex = 0; TextEditingController _tel = TextEditingController(); TextEditingController _psd = TextEditingController(); @@ -66,7 +66,7 @@ class _OtherLoginPageState extends State { Flexible( child: PageView( controller: _controller, - children: [_accountView(), _verificationView()], + children: [_verificationView(), _accountView()], ), ), BottomTip(), @@ -113,7 +113,8 @@ class _OtherLoginPageState extends State { await UserTool.dataProvider.addHistories(); await UserTool.userProvider.setLogin(response.data['data']); } else { - BotToast.showText(text: response.data['message']); + // BotToast.showText(text: response.data['message']); + BotToast.showText(text: '账号尚未注册,请使用验证码登陆'); } } catch (e) { print(e.toString());