|
|
|
@ -192,12 +192,12 @@ class _NewLoginPage extends State<NewLoginPage> {
|
|
|
|
|
setState(() {}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (mobile.length != 11) { |
|
|
|
|
mobileStatus = 2; |
|
|
|
|
mobileErrorText = S.of(context).phone_error; |
|
|
|
|
setState(() {}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
// if (mobile.length != 11) { |
|
|
|
|
// mobileStatus = 2; |
|
|
|
|
// mobileErrorText = S.of(context).phone_error; |
|
|
|
|
// setState(() {}); |
|
|
|
|
// return; |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
var code = _controllerCode.text; |
|
|
|
|
if (code == "") { |
|
|
|
@ -213,7 +213,7 @@ class _NewLoginPage extends State<NewLoginPage> {
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
var invite = _controllerInviteCode.text; |
|
|
|
|
var param = {"capcha": code, "mobile": mobile, "invite": invite}; |
|
|
|
|
var param = {"capcha": code, "mobile": mobile, "invite": invite,"areaCode":area}; |
|
|
|
|
EasyLoading.show(status: S.of(context).zhengzaijiazai); |
|
|
|
|
BaseData value = await apiService.memberLogin(param).catchError((error) { |
|
|
|
|
print(error.message); |
|
|
|
@ -416,7 +416,8 @@ class _NewLoginPage extends State<NewLoginPage> {
|
|
|
|
|
style: TextStyle( |
|
|
|
|
height: 1.h, |
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
color: statusPhoneTextColor, |
|
|
|
|
// color: statusPhoneTextColor, |
|
|
|
|
color: Color(0xFF353535), |
|
|
|
|
), |
|
|
|
|
onChanged: (value) { |
|
|
|
|
if (value != null && value.isNotEmpty) { |
|
|
|
@ -456,20 +457,21 @@ class _NewLoginPage extends State<NewLoginPage> {
|
|
|
|
|
Container( |
|
|
|
|
height: 1.h, |
|
|
|
|
width: MediaQuery.of(context).size.width - 80.h, |
|
|
|
|
color: statusPhoneLineColor, |
|
|
|
|
// color: statusPhoneLineColor, |
|
|
|
|
color: _controllerPhone.text== "" ? Color(0xFFE7E3E3):Color(0xFF32A060), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
height: 30.h, |
|
|
|
|
child: Visibility( |
|
|
|
|
visible: statusPhoneVisible, |
|
|
|
|
child: Text( |
|
|
|
|
S.of(context).phone_error, |
|
|
|
|
style: TextStyle( |
|
|
|
|
color: Color(0xFFF72626), |
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
// child: Visibility( |
|
|
|
|
// visible: statusPhoneVisible, |
|
|
|
|
// child: Text( |
|
|
|
|
// S.of(context).phone_error, |
|
|
|
|
// style: TextStyle( |
|
|
|
|
// color: Color(0xFFF72626), |
|
|
|
|
// fontSize: 12.sp, |
|
|
|
|
// ), |
|
|
|
|
// ), |
|
|
|
|
// ), |
|
|
|
|
), |
|
|
|
|
Text( |
|
|
|
|
S.of(context).yanzhengma, |
|
|
|
|