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