diff --git a/lib/pages/security_page/security_bind_alipay/security_bind_alipay_page.dart b/lib/pages/security_page/security_bind_alipay/security_bind_alipay_page.dart index e4c3de1..6653791 100644 --- a/lib/pages/security_page/security_bind_alipay/security_bind_alipay_page.dart +++ b/lib/pages/security_page/security_bind_alipay/security_bind_alipay_page.dart @@ -80,7 +80,7 @@ class _SecurityBindAlipayContainerState void _verifiy() { bool canConfirm = _nameController.text.length > 0 && _accountController.text.length > 0 && - _codeController.text.length == 6; + _codeController.text.length >= 4 && _codeController.text.length <= 4; if (canConfirm != _canConfirm) { setState(() { _canConfirm = canConfirm; diff --git a/lib/pages/security_page/security_mobile/security_mobile_unbind.dart b/lib/pages/security_page/security_mobile/security_mobile_unbind.dart index 9d44f54..8381dd0 100644 --- a/lib/pages/security_page/security_mobile/security_mobile_unbind.dart +++ b/lib/pages/security_page/security_mobile/security_mobile_unbind.dart @@ -130,7 +130,7 @@ class _SecurityMobileUnbindState extends State { } void _verifiy() { - bool canConfirm = _codeController.text.length == 6; + bool canConfirm = _codeController.text.length >= 4 && _codeController.text.length <= 6; if (canConfirm != _canConfirm) { setState(() { _canConfirm = canConfirm; diff --git a/lib/pages/security_page/security_password/security_password.dart b/lib/pages/security_page/security_password/security_password.dart index d02d79b..1b0715b 100644 --- a/lib/pages/security_page/security_password/security_password.dart +++ b/lib/pages/security_page/security_password/security_password.dart @@ -145,7 +145,8 @@ class _SecurityPasswordState extends State { } void _verifiy() { - bool canConfirm = _passwordController.text.length >= 6 && _confirmController.text.length >= 6 && _codeController.text.length == 6; + bool canConfirm = _passwordController.text.length >= 6 && _confirmController.text.length >= 6 && + _codeController.text.length >= 4 && _codeController.text.length <= 6; if (canConfirm != _canConfirm) { setState(() { _canConfirm = canConfirm; diff --git a/lib/pages/security_page/security_unbind_alipay/security_unbin_alipay.dart b/lib/pages/security_page/security_unbind_alipay/security_unbin_alipay.dart index 82b5300..3e96b9a 100644 --- a/lib/pages/security_page/security_unbind_alipay/security_unbin_alipay.dart +++ b/lib/pages/security_page/security_unbind_alipay/security_unbin_alipay.dart @@ -36,7 +36,7 @@ class _SecurityUnbinAlipayState extends State { } void _verifiy() { - bool canConfirm = _codeController.text.length == 6; + bool canConfirm = _codeController.text.length >= 4 && _codeController.text.length <= 6; if (canConfirm != _canConfirm) { setState(() { _canConfirm = canConfirm; diff --git a/lib/widgets/custom/search/custom_search_widget.dart b/lib/widgets/custom/search/custom_search_widget.dart index 11a98db..1c5bd42 100644 --- a/lib/widgets/custom/search/custom_search_widget.dart +++ b/lib/widgets/custom/search/custom_search_widget.dart @@ -48,12 +48,18 @@ class CustomSearchWidget extends StatelessWidget { if (EmptyUtil.isEmpty(model)) return Container(); Widget rlt; switch (model.moduleType) { - case 'search_1': + case 'search_1': // 右1图标 rlt = _buildStyle1Widget(context); break; - case 'search_2': + case 'search_2': // 无图标 rlt = _buildStyle2Widget(context); break; + case 'search_3': // 左1右1图标 + rlt = Container(); + break; + case 'search_4': // 右按钮 + rlt = Container(); + break; default: rlt = Container(); break; diff --git a/lib/widgets/restart_widget/restart_widget.dart b/lib/widgets/restart_widget/restart_widget.dart index 2ac7ba2..98dbd0e 100644 --- a/lib/widgets/restart_widget/restart_widget.dart +++ b/lib/widgets/restart_widget/restart_widget.dart @@ -73,6 +73,7 @@ class _RestartWidgetState extends State { // ///debug阶段可重启 // isFirst=true; // } + isFirst = true; return StreamBuilder(stream: outData,builder: (context,asyn){ if(asyn.data==null&&!isFirst){ return Scaffold( @@ -82,6 +83,7 @@ class _RestartWidgetState extends State { isFirst=false; return widget?.child; } + // return widget?.child; }); }