登陆——默认显示的登陆方式应该优先为验证码登陆

pull/1/head
戴余标 3 years ago
parent b240d88854
commit 84646f202d

@ -26,7 +26,7 @@ class OtherLoginPage extends StatefulWidget {
class _OtherLoginPageState extends State<OtherLoginPage> {
PageController _controller = PageController();
List<String> _tabs = ['账号登录', '验证码登录'];
List<String> _tabs = [ '验证码登录','账号登录'];
int _currentIndex = 0;
TextEditingController _tel = TextEditingController();
TextEditingController _psd = TextEditingController();
@ -66,7 +66,7 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
Flexible(
child: PageView(
controller: _controller,
children: [_accountView(), _verificationView()],
children: [_verificationView(), _accountView()],
),
),
BottomTip(),
@ -113,7 +113,8 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
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());

Loading…
Cancel
Save