From 9242dcaf70225495ac0c2695f00d1c8a3bacc2d2 Mon Sep 17 00:00:00 2001 From: userGyl Date: Wed, 1 Apr 2026 15:06:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ln_jq_app/ios/Podfile.lock | 7 ----- .../ios/Runner.xcodeproj/project.pbxproj | 10 ------- ln_jq_app/lib/pages/login/view.dart | 29 ++++--------------- 3 files changed, 6 insertions(+), 40 deletions(-) diff --git a/ln_jq_app/ios/Podfile.lock b/ln_jq_app/ios/Podfile.lock index bcde24b..6ae327e 100644 --- a/ln_jq_app/ios/Podfile.lock +++ b/ln_jq_app/ios/Podfile.lock @@ -47,9 +47,6 @@ PODS: - Masonry (1.1.0) - MBProgressHUD (1.2.0) - MJExtension (3.4.2) - - mobile_scanner (7.0.0): - - Flutter - - FlutterMacOS - OrderedSet (6.0.3) - package_info_plus (0.4.5): - Flutter @@ -78,7 +75,6 @@ DEPENDENCIES: - flutter_pdfview (from `.symlinks/plugins/flutter_pdfview/ios`) - geolocator_apple (from `.symlinks/plugins/geolocator_apple/darwin`) - image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`) - - mobile_scanner (from `.symlinks/plugins/mobile_scanner/darwin`) - package_info_plus (from `.symlinks/plugins/package_info_plus/ios`) - path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`) - permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`) @@ -125,8 +121,6 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/geolocator_apple/darwin" image_picker_ios: :path: ".symlinks/plugins/image_picker_ios/ios" - mobile_scanner: - :path: ".symlinks/plugins/mobile_scanner/darwin" package_info_plus: :path: ".symlinks/plugins/package_info_plus/ios" path_provider_foundation: @@ -162,7 +156,6 @@ SPEC CHECKSUMS: Masonry: 678fab65091a9290e40e2832a55e7ab731aad201 MBProgressHUD: 3ee5efcc380f6a79a7cc9b363dd669c5e1ae7406 MJExtension: e97d164cb411aa9795cf576093a1fa208b4a8dd8 - mobile_scanner: 9157936403f5a0644ca3779a38ff8404c5434a93 OrderedSet: e539b66b644ff081c73a262d24ad552a69be3a94 package_info_plus: af8e2ca6888548050f16fa2f1938db7b5a5df499 path_provider_foundation: bb55f6dbba17d0dccd6737fe6f7f34fbd0376880 diff --git a/ln_jq_app/ios/Runner.xcodeproj/project.pbxproj b/ln_jq_app/ios/Runner.xcodeproj/project.pbxproj index 6ed39fa..c45c31f 100644 --- a/ln_jq_app/ios/Runner.xcodeproj/project.pbxproj +++ b/ln_jq_app/ios/Runner.xcodeproj/project.pbxproj @@ -508,8 +508,6 @@ "-framework", "\"image_picker_ios\"", "-framework", - "\"mobile_scanner\"", - "-framework", "\"package_info_plus\"", "-framework", "\"permission_handler_apple\"", @@ -545,8 +543,6 @@ "-framework", "\"image_picker_ios\"", "-framework", - "\"mobile_scanner\"", - "-framework", "\"package_info_plus\"", "-framework", "\"permission_handler_apple\"", @@ -772,8 +768,6 @@ "-framework", "\"image_picker_ios\"", "-framework", - "\"mobile_scanner\"", - "-framework", "\"package_info_plus\"", "-framework", "\"permission_handler_apple\"", @@ -809,8 +803,6 @@ "-framework", "\"image_picker_ios\"", "-framework", - "\"mobile_scanner\"", - "-framework", "\"package_info_plus\"", "-framework", "\"permission_handler_apple\"", @@ -873,8 +865,6 @@ "-framework", "\"image_picker_ios\"", "-framework", - "\"mobile_scanner\"", - "-framework", "\"package_info_plus\"", "-framework", "\"permission_handler_apple\"", diff --git a/ln_jq_app/lib/pages/login/view.dart b/ln_jq_app/lib/pages/login/view.dart index e6b00fa..d0e0537 100644 --- a/ln_jq_app/lib/pages/login/view.dart +++ b/ln_jq_app/lib/pages/login/view.dart @@ -140,29 +140,10 @@ class _LoginPageState extends State with SingleTickerProviderStateMix children: [ const SizedBox(height: 30), // 根据 Tab 显示不同的输入框 - !_isAgreed - ? GestureDetector( - onTap: () => _handleLogin(controller), - behavior: HitTestBehavior.opaque, - child: Container( - width: double.infinity, - height: 55.h, - padding: const EdgeInsets.symmetric( - horizontal: 24, - ), - alignment: Alignment.centerLeft, - child: Text( - "请先阅读并同意用户协议和隐私政策", - style: TextStyle( - color: Colors.grey, - fontSize: 16, - ), - ), - ), - ) - : (_tabController.index == 0 - ? _buildDriverInputFields(controller) - : _buildStationInputFields(controller)), + if (_isAgreed) + (_tabController.index == 0 + ? _buildDriverInputFields(controller) + : _buildStationInputFields(controller)), const SizedBox(height: 30), // 统一登录按钮 @@ -265,10 +246,12 @@ class _LoginPageState extends State with SingleTickerProviderStateMix child: TextField( controller: controller.phoneController, keyboardType: TextInputType.phone, + maxLength: 11, decoration: const InputDecoration( hintText: '请输入手机号', border: InputBorder.none, contentPadding: EdgeInsets.symmetric(horizontal: 24), + counterText: "" ), ), ),