Browse Source

1、邀请人的号码限制3位改成2位

tags/0.0.16+9^0
PH2 3 years ago
parent
commit
d37c34d1d7
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lib/pages/login_page/invite/login_invite_page.dart

+ 2
- 2
lib/pages/login_page/invite/login_invite_page.dart View File

@@ -72,14 +72,14 @@ class _LoginInvitePageContainerState extends State<LoginInvitePageContainer> {
_showInviteInfo = false; _showInviteInfo = false;
}); });
print('$string'); print('$string');
if (!EmptyUtil.isEmpty(string) && string.length >= 3) {
if (!EmptyUtil.isEmpty(string) && string.length >= 2) {
_queryInviteInfo(string); _queryInviteInfo(string);
} }
} }


/// 查询邀请人 /// 查询邀请人
void _queryInviteInfo(String inviteNum) { void _queryInviteInfo(String inviteNum) {
if (!EmptyUtil.isEmpty(inviteNum) && inviteNum.length < 3) {
if (!EmptyUtil.isEmpty(inviteNum) && inviteNum.length < 2) {
return; return;
} }
BlocProvider.of<LoginInviteBloc>(context).add(LoginInviteQueryEvent(num: inviteNum)); BlocProvider.of<LoginInviteBloc>(context).add(LoginInviteQueryEvent(num: inviteNum));


Loading…
Cancel
Save