Showing
1 changed file
with
20 additions
and
10 deletions
| @@ -556,7 +556,7 @@ class InvicationPageSimState extends State<InvicationPageSim> | @@ -556,7 +556,7 @@ class InvicationPageSimState extends State<InvicationPageSim> | ||
| 556 | _showConfirmWidget( | 556 | _showConfirmWidget( |
| 557 | {needBack = false, | 557 | {needBack = false, |
| 558 | needSex = false, | 558 | needSex = false, |
| 559 | - needHistory = false, | 559 | + needHistoryTemp = false, |
| 560 | needWechat = false, | 560 | needWechat = false, |
| 561 | needRemark = false, | 561 | needRemark = false, |
| 562 | int? index, | 562 | int? index, |
| @@ -589,9 +589,9 @@ class InvicationPageSimState extends State<InvicationPageSim> | @@ -589,9 +589,9 @@ class InvicationPageSimState extends State<InvicationPageSim> | ||
| 589 | } else { | 589 | } else { |
| 590 | if (needBack) { | 590 | if (needBack) { |
| 591 | needBack = false; | 591 | needBack = false; |
| 592 | - if (Navigator.canPop(context)) { | ||
| 593 | - Navigator.pop(context); | ||
| 594 | - } | 592 | + if (Navigator.canPop(context)) { |
| 593 | + Navigator.pop(context); | ||
| 594 | + } | ||
| 595 | } | 595 | } |
| 596 | if (needSex) { | 596 | if (needSex) { |
| 597 | needSex = false; | 597 | needSex = false; |
| @@ -599,7 +599,7 @@ class InvicationPageSimState extends State<InvicationPageSim> | @@ -599,7 +599,7 @@ class InvicationPageSimState extends State<InvicationPageSim> | ||
| 599 | // if (needRemark) { | 599 | // if (needRemark) { |
| 600 | // needRemark = false; | 600 | // needRemark = false; |
| 601 | // } | 601 | // } |
| 602 | - if (needHistory) { | 602 | + if (needHistoryTemp) { |
| 603 | setState(() { | 603 | setState(() { |
| 604 | showPhoneHistory = false; | 604 | showPhoneHistory = false; |
| 605 | _baseIndoProvider.phoneController.text = | 605 | _baseIndoProvider.phoneController.text = |
| @@ -747,9 +747,9 @@ class InvicationPageSimState extends State<InvicationPageSim> | @@ -747,9 +747,9 @@ class InvicationPageSimState extends State<InvicationPageSim> | ||
| 747 | } else { | 747 | } else { |
| 748 | if (needBack) { | 748 | if (needBack) { |
| 749 | needBack = false; | 749 | needBack = false; |
| 750 | - if (Navigator.canPop(context)) { | ||
| 751 | - Navigator.pop(context); | ||
| 752 | - } | 750 | + if (Navigator.canPop(context)) { |
| 751 | + Navigator.pop(context); | ||
| 752 | + } | ||
| 753 | } | 753 | } |
| 754 | if (needWechat) { | 754 | if (needWechat) { |
| 755 | needWechat = false; | 755 | needWechat = false; |
| @@ -2783,7 +2783,8 @@ class InvicationPageSimState extends State<InvicationPageSim> | @@ -2783,7 +2783,8 @@ class InvicationPageSimState extends State<InvicationPageSim> | ||
| 2783 | userHistoryEntity.phone); | 2783 | userHistoryEntity.phone); |
| 2784 | needHistory = true; | 2784 | needHistory = true; |
| 2785 | _showConfirmWidget( | 2785 | _showConfirmWidget( |
| 2786 | - needHistory: true, index: index); | 2786 | + needHistoryTemp: true, |
| 2787 | + index: index); | ||
| 2787 | }, | 2788 | }, |
| 2788 | child: Container( | 2789 | child: Container( |
| 2789 | width: double.infinity, | 2790 | width: double.infinity, |
| @@ -4089,6 +4090,15 @@ class InvicationPageSimState extends State<InvicationPageSim> | @@ -4089,6 +4090,15 @@ class InvicationPageSimState extends State<InvicationPageSim> | ||
| 4089 | child: InputDoneView( | 4090 | child: InputDoneView( |
| 4090 | callback: () { | 4091 | callback: () { |
| 4091 | // _updateMoney(); | 4092 | // _updateMoney(); |
| 4093 | + if (_nameNode.hasFocus) { | ||
| 4094 | + _nameNode.unfocus(); | ||
| 4095 | + } else if (_phoneNode.hasFocus) { | ||
| 4096 | + _phoneNode.unfocus(); | ||
| 4097 | + } else if (_pnumNode.hasFocus) { | ||
| 4098 | + _pnumNode.unfocus(); | ||
| 4099 | + } else if (_cusdemNode.hasFocus) { | ||
| 4100 | + _cusdemNode.unfocus(); | ||
| 4101 | + } | ||
| 4092 | }, | 4102 | }, |
| 4093 | )); | 4103 | )); |
| 4094 | }); | 4104 | }); |
| @@ -4194,7 +4204,7 @@ class InvicationPageSimState extends State<InvicationPageSim> | @@ -4194,7 +4204,7 @@ class InvicationPageSimState extends State<InvicationPageSim> | ||
| 4194 | 4204 | ||
| 4195 | _getIsMemberByPhone(userHistoryEntity.phone); | 4205 | _getIsMemberByPhone(userHistoryEntity.phone); |
| 4196 | needHistory = true; | 4206 | needHistory = true; |
| 4197 | - _showConfirmWidget(needHistory: true, index: value[0]); | 4207 | + _showConfirmWidget(needHistoryTemp: true, index: value[0]); |
| 4198 | } | 4208 | } |
| 4199 | }, title: '从通话记录选择客人电话', selecteds: [ | 4209 | }, title: '从通话记录选择客人电话', selecteds: [ |
| 4200 | // _getFirSelected(hourAndMinute, data), | 4210 | // _getFirSelected(hourAndMinute, data), |
-
Please register or login to post a comment