将验证码改为密码,去掉获取验证码按钮

hmxc
张萌 4 years ago
parent fbe673a845
commit 75ad466ab4

@ -23,7 +23,7 @@ class SignInPage extends StatefulWidget {
class _SignInPageState extends State<SignInPage> { class _SignInPageState extends State<SignInPage> {
TextEditingController _phone = new TextEditingController(text: '17855823545'); TextEditingController _phone = new TextEditingController(text: '17855823545');
TextEditingController _code = new TextEditingController(text: '000000'); TextEditingController _code = new TextEditingController(text: '000000');
String _verifyStr = '获取验证码'; // String _verifyStr = '获取验证码';
AppBar _appBar() { AppBar _appBar() {
return AppBar( return AppBar(
elevation: 0, elevation: 0,
@ -94,17 +94,17 @@ class _SignInPageState extends State<SignInPage> {
), ),
), ),
SizedBox(width: Screenutil.length(16)), SizedBox(width: Screenutil.length(16)),
InkWell( // InkWell(
child: Text( // child: Text(
_verifyStr, // _verifyStr,
style: TextStyle( // style: TextStyle(
color: BaseStyle.color999999, // color: BaseStyle.color999999,
fontSize: BaseStyle.fontSize28, // fontSize: BaseStyle.fontSize28,
fontWeight: FontWeight.w500, // fontWeight: FontWeight.w500,
), // ),
), // ),
onTap: null, // onTap: null,
), // ),
], ],
) )
: SizedBox(), : SizedBox(),
@ -144,7 +144,7 @@ class _SignInPageState extends State<SignInPage> {
Navigator.pop(context); Navigator.pop(context);
(_phone.text == '17855823545') && (_code.text == '000000') (_phone.text == '17855823545') && (_code.text == '000000')
? ARoute.push(context, UserAuthenticationPage()) ? ARoute.push(context, UserAuthenticationPage())
: showToast('账号或验证码错误!'); : showToast('账号或码错误!');
}, },
); );
} }
@ -211,7 +211,7 @@ class _SignInPageState extends State<SignInPage> {
AssetsImage.PHONELOGO, _phone, '请输入手机号码', false), AssetsImage.PHONELOGO, _phone, '请输入手机号码', false),
SizedBox(height: Screenutil.length(27)), SizedBox(height: Screenutil.length(27)),
_containerTextField( _containerTextField(
AssetsImage.CODELOGO, _code, '请输入验证', true), AssetsImage.CODELOGO, _code, '请输入', true),
SizedBox(height: Screenutil.length(59)), SizedBox(height: Screenutil.length(59)),
_inkWellLogin(), _inkWellLogin(),
Row( Row(

Loading…
Cancel
Save