Pārlūkot izejas kodu

1、验证码位数的修改支持4~6位

2、appUI重启的bug修改
3、自定义搜索的key
tags/0.0.9+12
PH2 pirms 3 gadiem
vecāks
revīzija
bdf24bd952
6 mainītis faili ar 15 papildinājumiem un 6 dzēšanām
  1. +1
    -1
      lib/pages/security_page/security_bind_alipay/security_bind_alipay_page.dart
  2. +1
    -1
      lib/pages/security_page/security_mobile/security_mobile_unbind.dart
  3. +2
    -1
      lib/pages/security_page/security_password/security_password.dart
  4. +1
    -1
      lib/pages/security_page/security_unbind_alipay/security_unbin_alipay.dart
  5. +8
    -2
      lib/widgets/custom/search/custom_search_widget.dart
  6. +2
    -0
      lib/widgets/restart_widget/restart_widget.dart

+ 1
- 1
lib/pages/security_page/security_bind_alipay/security_bind_alipay_page.dart Parādīt failu

@@ -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;


+ 1
- 1
lib/pages/security_page/security_mobile/security_mobile_unbind.dart Parādīt failu

@@ -130,7 +130,7 @@ class _SecurityMobileUnbindState extends State<SecurityMobileUnbind> {
}

void _verifiy() {
bool canConfirm = _codeController.text.length == 6;
bool canConfirm = _codeController.text.length >= 4 && _codeController.text.length <= 6;
if (canConfirm != _canConfirm) {
setState(() {
_canConfirm = canConfirm;


+ 2
- 1
lib/pages/security_page/security_password/security_password.dart Parādīt failu

@@ -145,7 +145,8 @@ class _SecurityPasswordState extends State<SecurityPassword> {
}

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;


+ 1
- 1
lib/pages/security_page/security_unbind_alipay/security_unbin_alipay.dart Parādīt failu

@@ -36,7 +36,7 @@ class _SecurityUnbinAlipayState extends State<SecurityUnbinAlipay> {
}

void _verifiy() {
bool canConfirm = _codeController.text.length == 6;
bool canConfirm = _codeController.text.length >= 4 && _codeController.text.length <= 6;
if (canConfirm != _canConfirm) {
setState(() {
_canConfirm = canConfirm;


+ 8
- 2
lib/widgets/custom/search/custom_search_widget.dart Parādīt failu

@@ -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;


+ 2
- 0
lib/widgets/restart_widget/restart_widget.dart Parādīt failu

@@ -73,6 +73,7 @@ class _RestartWidgetState extends State<RestartWidget> {
// ///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<RestartWidget> {
isFirst=false;
return widget?.child;
}
// return widget?.child;
});

}


Notiek ielāde…
Atcelt
Saglabāt