|
|
@@ -89,7 +89,7 @@ class _LoginPageContainerState extends State<LoginPageContainer> { |
|
|
|
|
|
|
|
/// 微信or手机登陆 |
|
|
|
void _loginClick(String type, LoginStyleModel model) { |
|
|
|
if(!isCheck()){ |
|
|
|
if (!isCheck()) { |
|
|
|
return; |
|
|
|
} |
|
|
|
print('登陆$type'); |
|
|
@@ -147,7 +147,7 @@ class _LoginPageContainerState extends State<LoginPageContainer> { |
|
|
|
|
|
|
|
/// 第三方登陆 |
|
|
|
void _otherLoginClick(BottomIcons model) async { |
|
|
|
if(!isCheck()){ |
|
|
|
if (!isCheck()) { |
|
|
|
return; |
|
|
|
} |
|
|
|
print('第三方登陆${model.type}'); |
|
|
@@ -357,9 +357,11 @@ class _LoginPageContainerState extends State<LoginPageContainer> { |
|
|
|
/// 按钮 |
|
|
|
_buttonsWidget(model), |
|
|
|
_sizedHeight9, |
|
|
|
|
|
|
|
///账号密码登录 |
|
|
|
_buildOrderLogin(), |
|
|
|
_sizedHeight9, |
|
|
|
_buildOrderLogin(), |
|
|
|
_sizedHeight9, |
|
|
|
|
|
|
|
/// 协议 |
|
|
|
_protocolWidget(model), |
|
|
|
|
|
|
@@ -415,10 +417,18 @@ class _LoginPageContainerState extends State<LoginPageContainer> { |
|
|
|
), |
|
|
|
|
|
|
|
/// logo 名字 |
|
|
|
CachedNetworkImage( |
|
|
|
imageUrl: model?.main?.appNameImg ?? '', |
|
|
|
width: 90, |
|
|
|
), |
|
|
|
// CachedNetworkImage( |
|
|
|
// imageUrl: model?.main?.appNameImg ?? '', |
|
|
|
// width: 90, |
|
|
|
// ), |
|
|
|
Container( |
|
|
|
margin: EdgeInsets.only(top: 0, bottom: 6), |
|
|
|
child: Center( |
|
|
|
child: Text( |
|
|
|
model?.main?.appName ?? "", |
|
|
|
style: TextStyle(color: HexColor.fromHex("#FF333333"), fontSize: 20,fontWeight: FontWeight.bold), |
|
|
|
)), |
|
|
|
) |
|
|
|
], |
|
|
|
), |
|
|
|
], |
|
|
@@ -465,7 +475,7 @@ class _LoginPageContainerState extends State<LoginPageContainer> { |
|
|
|
child: Icon( |
|
|
|
checkBool ? Icons.check_box : Icons.check_box_outline_blank, |
|
|
|
size: 16, |
|
|
|
color: checkBool?Colors.red:Colors.black12, |
|
|
|
color: checkBool ? Colors.red : Colors.black12, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
@@ -571,21 +581,24 @@ class _LoginPageContainerState extends State<LoginPageContainer> { |
|
|
|
return Center( |
|
|
|
child: GestureDetector( |
|
|
|
behavior: HitTestBehavior.opaque, |
|
|
|
onTap: (){ |
|
|
|
if(isCheck()){ |
|
|
|
onTap: () { |
|
|
|
if (isCheck()) { |
|
|
|
Navigator.push(context, CupertinoPageRoute(builder: (_) => LoginAccountPage(null))); |
|
|
|
} |
|
|
|
}, |
|
|
|
child: Text("使用账号密码登录",style: TextStyle(color: HexColor.fromHex("#FFFF4242"),fontSize: 14),), |
|
|
|
child: Text( |
|
|
|
"使用账号密码登录", |
|
|
|
style: TextStyle(color: HexColor.fromHex("#FFFF4242"), fontSize: 14), |
|
|
|
), |
|
|
|
), |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
bool isCheck(){ |
|
|
|
if(!checkBool){ |
|
|
|
bool isCheck() { |
|
|
|
if (!checkBool) { |
|
|
|
Fluttertoast.showToast(msg: "请阅读并勾选同意用户协议选项"); |
|
|
|
return false; |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|