Browse Source

1.优化登录页面

tags/0.0.9
“yanghuaxuan” 3 years ago
parent
commit
c874d4412b
3 changed files with 17 additions and 9 deletions
  1. +3
    -3
      .dart_tool/package_config.json
  2. +12
    -4
      lib/pages/login_page/login_page.dart
  3. +2
    -2
      pubspec.yaml

+ 3
- 3
.dart_tool/package_config.json View File

@@ -135,7 +135,7 @@
}, },
{ {
"name": "flutter_alibc", "name": "flutter_alibc",
"rootUri": "file:///Users/fnuser02/flutter/.pub-cache/git/zhiying_flutter_alibc-f0974bf1ee4e647c00f749707017841dc3685436/",
"rootUri": "file:///Users/fnuser02/flutter/.pub-cache/git/zhiying_flutter_alibc-159f123705b3e3dc28d6991df5b39b24a54c41a0/",
"packageUri": "lib/", "packageUri": "lib/",
"languageVersion": "2.1" "languageVersion": "2.1"
}, },
@@ -351,7 +351,7 @@
}, },
{ {
"name": "provider", "name": "provider",
"rootUri": "file:///Users/fnuser02/flutter/.pub-cache/hosted/pub.flutter-io.cn/provider-4.3.2+2",
"rootUri": "file:///Users/fnuser02/flutter/.pub-cache/hosted/pub.flutter-io.cn/provider-4.3.3",
"packageUri": "lib/", "packageUri": "lib/",
"languageVersion": "2.7" "languageVersion": "2.7"
}, },
@@ -566,7 +566,7 @@
"languageVersion": "2.1" "languageVersion": "2.1"
} }
], ],
"generated": "2021-03-17T10:33:04.688615Z",
"generated": "2021-03-22T01:44:09.769099Z",
"generator": "pub", "generator": "pub",
"generatorVersion": "2.10.1" "generatorVersion": "2.10.1"
} }

+ 12
- 4
lib/pages/login_page/login_page.dart View File

@@ -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),
), ),
), ),


+ 2
- 2
pubspec.yaml View File

@@ -12,7 +12,7 @@ dependencies:
sdk: flutter sdk: flutter


dio: ^3.0.9 dio: ^3.0.9
provider: ^4.0.0
provider: ^4.3.3
package_info: ^0.4.0+17 package_info: ^0.4.0+17
device_info: ^0.4.0+1 device_info: ^0.4.0+1
flutter_native_image: ^0.0.5 flutter_native_image: ^0.0.5
@@ -42,7 +42,7 @@ dependencies:
flutter_alibc: flutter_alibc:
# path: ../zhiying_flutter_alibc # path: ../zhiying_flutter_alibc
git: git:
ref: 0.0.5
ref: 0.0.6
url: http://192.168.0.138:3000/FnuoOS_ZhiYing/zhiying_flutter_alibc.git url: http://192.168.0.138:3000/FnuoOS_ZhiYing/zhiying_flutter_alibc.git
url_launcher: ^5.6.0 url_launcher: ^5.6.0
#图片预览控件 #图片预览控件


Loading…
Cancel
Save