|
|
@@ -53,6 +53,7 @@ class _LoginPageContainerState extends State<LoginPageContainer> { |
|
|
|
var _wxUserData; |
|
|
|
String _appleData; |
|
|
|
bool checkBool = false; |
|
|
|
LoginStyleModel loginStyleModel; |
|
|
|
|
|
|
|
@override |
|
|
|
void initState() { |
|
|
@@ -97,7 +98,9 @@ class _LoginPageContainerState extends State<LoginPageContainer> { |
|
|
|
if ('mobile' == type) { |
|
|
|
if (model?.flashLoginEnable == '1') { |
|
|
|
// mob 一键登录 |
|
|
|
MobUtil.openQuickLoginPage(context, model?.quick); |
|
|
|
// MobUtil.openQuickLoginPage(context, model?.quick); |
|
|
|
Navigator.push(context, CupertinoPageRoute(builder: (_) => LoginAccountPage(null))); |
|
|
|
|
|
|
|
} else { |
|
|
|
Navigator.push(context, CupertinoPageRoute(builder: (_) => LoginAccountPage(null))); |
|
|
|
} |
|
|
@@ -442,6 +445,10 @@ class _LoginPageContainerState extends State<LoginPageContainer> { |
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 27.5), |
|
|
|
child: Column( |
|
|
|
children: model.main.importanceLogin.map((item) { |
|
|
|
if(item?.type=="mobile"){ |
|
|
|
item?.btnText="密码登录"; |
|
|
|
loginStyleModel=model; |
|
|
|
} |
|
|
|
return Padding( |
|
|
|
padding: const EdgeInsets.only(bottom: 8), |
|
|
|
child: _customButton( |
|
|
@@ -576,18 +583,19 @@ class _LoginPageContainerState extends State<LoginPageContainer> { |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
///账号密码登录 |
|
|
|
///账号密码登录 update:与手机一键登录互换 |
|
|
|
_buildOrderLogin() { |
|
|
|
return Center( |
|
|
|
child: GestureDetector( |
|
|
|
behavior: HitTestBehavior.opaque, |
|
|
|
onTap: () { |
|
|
|
if (isCheck()) { |
|
|
|
Navigator.push(context, CupertinoPageRoute(builder: (_) => LoginAccountPage(null))); |
|
|
|
//Navigator.push(context, CupertinoPageRoute(builder: (_) => LoginAccountPage(null))); |
|
|
|
MobUtil.openQuickLoginPage(context, loginStyleModel?.quick); |
|
|
|
} |
|
|
|
}, |
|
|
|
child: Text( |
|
|
|
"使用账号密码登录", |
|
|
|
"本机号码登录", |
|
|
|
style: TextStyle(color: HexColor.fromHex("#FFFF4242"), fontSize: 14), |
|
|
|
), |
|
|
|
), |
|
|
|