From c874d4412bf7c224e747ad02fd9c565797d6c149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cyanghuaxuan=E2=80=9D?= <“646903573@qq.com”> Date: Mon, 22 Mar 2021 16:01:27 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BC=98=E5=8C=96=E7=99=BB=E5=BD=95=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dart_tool/package_config.json | 6 +++--- lib/pages/login_page/login_page.dart | 16 ++++++++++++---- pubspec.yaml | 4 ++-- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/.dart_tool/package_config.json b/.dart_tool/package_config.json index 88fa00e..11888f9 100644 --- a/.dart_tool/package_config.json +++ b/.dart_tool/package_config.json @@ -135,7 +135,7 @@ }, { "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/", "languageVersion": "2.1" }, @@ -351,7 +351,7 @@ }, { "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/", "languageVersion": "2.7" }, @@ -566,7 +566,7 @@ "languageVersion": "2.1" } ], - "generated": "2021-03-17T10:33:04.688615Z", + "generated": "2021-03-22T01:44:09.769099Z", "generator": "pub", "generatorVersion": "2.10.1" } diff --git a/lib/pages/login_page/login_page.dart b/lib/pages/login_page/login_page.dart index d8445e1..73e81bb 100644 --- a/lib/pages/login_page/login_page.dart +++ b/lib/pages/login_page/login_page.dart @@ -53,6 +53,7 @@ class _LoginPageContainerState extends State { var _wxUserData; String _appleData; bool checkBool = false; + LoginStyleModel loginStyleModel; @override void initState() { @@ -97,7 +98,9 @@ class _LoginPageContainerState extends State { 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 { 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 { ); } - ///账号密码登录 + ///账号密码登录 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), ), ), diff --git a/pubspec.yaml b/pubspec.yaml index 3200c81..c7c57d3 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -12,7 +12,7 @@ dependencies: sdk: flutter dio: ^3.0.9 - provider: ^4.0.0 + provider: ^4.3.3 package_info: ^0.4.0+17 device_info: ^0.4.0+1 flutter_native_image: ^0.0.5 @@ -42,7 +42,7 @@ dependencies: flutter_alibc: # path: ../zhiying_flutter_alibc git: - ref: 0.0.5 + ref: 0.0.6 url: http://192.168.0.138:3000/FnuoOS_ZhiYing/zhiying_flutter_alibc.git url_launcher: ^5.6.0 #图片预览控件