Showing
1 changed file
with
17 additions
and
13 deletions
| @@ -1060,21 +1060,21 @@ class InvicationPageState extends State<InvicationPage> | @@ -1060,21 +1060,21 @@ class InvicationPageState extends State<InvicationPage> | ||
| 1060 | customController.text.trim().length == 0) { | 1060 | customController.text.trim().length == 0) { |
| 1061 | return; | 1061 | return; |
| 1062 | } | 1062 | } |
| 1063 | - if ((nameStr == null || nameStr.trim().length == 0) && | ||
| 1064 | - _baseIndoProvider.phoneController.text.replaceAll(' ', '').length > 0 && | ||
| 1065 | - oldName == null) { | ||
| 1066 | - Utils.showToast('请输入顾客姓名!'); | 1063 | + // if ((nameStr == null || nameStr.trim().length == 0) && |
| 1064 | + // _baseIndoProvider.phoneController.text.replaceAll(' ', '').length > 0 && | ||
| 1065 | + // oldName == null) { | ||
| 1066 | + // Utils.showToast('请输入顾客姓名!'); | ||
| 1067 | 1067 | ||
| 1068 | - return; | ||
| 1069 | - } | ||
| 1070 | - if ((nameStr != null && nameStr.trim().length > 0) && | ||
| 1071 | - _baseIndoProvider.phoneController.text.replaceAll(' ', '').length == | ||
| 1072 | - 0 && | ||
| 1073 | - oldPhone == null) { | ||
| 1074 | - Utils.showToast('请输入顾客电话!'); | 1068 | + // return; |
| 1069 | + // } | ||
| 1070 | + // if ((nameStr != null && nameStr.trim().length > 0) && | ||
| 1071 | + // _baseIndoProvider.phoneController.text.replaceAll(' ', '').length == | ||
| 1072 | + // 0 && | ||
| 1073 | + // oldPhone == null) { | ||
| 1074 | + // Utils.showToast('请输入顾客电话!'); | ||
| 1075 | 1075 | ||
| 1076 | - return; | ||
| 1077 | - } | 1076 | + // return; |
| 1077 | + // } | ||
| 1078 | String phone; | 1078 | String phone; |
| 1079 | String name; | 1079 | String name; |
| 1080 | String sex; | 1080 | String sex; |
| @@ -2119,6 +2119,10 @@ class InvicationPageState extends State<InvicationPage> | @@ -2119,6 +2119,10 @@ class InvicationPageState extends State<InvicationPage> | ||
| 2119 | }); | 2119 | }); |
| 2120 | return; | 2120 | return; |
| 2121 | } | 2121 | } |
| 2122 | + if (erroInfo == '请正确输入11位手机号码' && showErroInfo) { | ||
| 2123 | + showErroInfo = false; | ||
| 2124 | + setState(() {}); | ||
| 2125 | + } | ||
| 2122 | Map<String, String> params = { | 2126 | Map<String, String> params = { |
| 2123 | "keywords": value.trim(), | 2127 | "keywords": value.trim(), |
| 2124 | "sid": Provider.of<UserModel>(context, listen: false) | 2128 | "sid": Provider.of<UserModel>(context, listen: false) |
-
Please register or login to post a comment