|
@@ -485,22 +485,24 @@ class InvicationPageState extends State<InvicationPage> |
|
@@ -485,22 +485,24 @@ class InvicationPageState extends State<InvicationPage> |
|
485
|
: detailModel.depositPrice;
|
485
|
: detailModel.depositPrice;
|
|
486
|
}
|
486
|
}
|
|
487
|
}
|
487
|
}
|
|
|
|
488
|
+ if (!noticeSms) {
|
|
|
|
489
|
+ if (detailModel.smsInfo == '0') {
|
|
|
|
490
|
+ if (!mounted) {
|
|
|
|
491
|
+ return;
|
|
|
|
492
|
+ }
|
|
488
|
|
493
|
|
|
489
|
- if (detailModel.smsInfo == '0') {
|
|
|
|
490
|
- if (!mounted) {
|
|
|
|
491
|
- return;
|
|
|
|
492
|
- }
|
494
|
+ showErroInfo = true;
|
|
|
|
495
|
+ erroInfo = '短信余额不足,请充值短信条数';
|
|
|
|
496
|
+ } else {
|
|
|
|
497
|
+ if (!mounted) {
|
|
|
|
498
|
+ return;
|
|
|
|
499
|
+ }
|
|
493
|
|
500
|
|
|
494
|
- showErroInfo = true;
|
|
|
|
495
|
- erroInfo = '短信余额不足,请充值短信条数';
|
|
|
|
496
|
- } else {
|
|
|
|
497
|
- if (!mounted) {
|
|
|
|
498
|
- return;
|
501
|
+ showErroInfo = false;
|
|
|
|
502
|
+ erroInfo = '';
|
|
499
|
}
|
503
|
}
|
|
500
|
-
|
|
|
|
501
|
- showErroInfo = false;
|
|
|
|
502
|
- erroInfo = '';
|
|
|
|
503
|
}
|
504
|
}
|
|
|
|
505
|
+
|
|
504
|
setState(() {});
|
506
|
setState(() {});
|
|
505
|
}
|
507
|
}
|
|
506
|
|
508
|
|
|
@@ -2360,7 +2362,9 @@ class InvicationPageState extends State<InvicationPage> |
|
@@ -2360,7 +2362,9 @@ class InvicationPageState extends State<InvicationPage> |
|
2360
|
controller: _baseIndoProvider.phoneController,
|
2362
|
controller: _baseIndoProvider.phoneController,
|
|
2361
|
focusNode: _phoneNode,
|
2363
|
focusNode: _phoneNode,
|
|
2362
|
inputFormatters: <TextInputFormatter>[
|
2364
|
inputFormatters: <TextInputFormatter>[
|
|
2363
|
- LengthLimitingTextInputFormatter(11) //限制长度
|
2365
|
+ LengthLimitingTextInputFormatter(11), //限制长度
|
|
|
|
2366
|
+ FilteringTextInputFormatter.allow(
|
|
|
|
2367
|
+ RegExp(r'[0-9]')), //设置只允许输入数字
|
|
2364
|
],
|
2368
|
],
|
|
2365
|
// textAlignVertical: TextAlignVertical.top,
|
2369
|
// textAlignVertical: TextAlignVertical.top,
|
|
2366
|
decoration: InputDecoration(
|
2370
|
decoration: InputDecoration(
|
|
@@ -4786,7 +4790,7 @@ class InvicationPageState extends State<InvicationPage> |
|
@@ -4786,7 +4790,7 @@ class InvicationPageState extends State<InvicationPage> |
|
4786
|
_goSendSmsPage() async {
|
4790
|
_goSendSmsPage() async {
|
|
4787
|
if (reserverPhone == null ||
|
4791
|
if (reserverPhone == null ||
|
|
4788
|
reserverPhone.isEmpty ||
|
4792
|
reserverPhone.isEmpty ||
|
|
4789
|
- !Utils.isInteger(reserverPhone)) {
|
4793
|
+ !Utils.isInteger(reserverPhone) || reserverPhone.length != 11) {
|
|
4790
|
//跳转到录入联系人页面
|
4794
|
//跳转到录入联系人页面
|
|
4791
|
// String temp = await NavigatorUtil.goEditReserverPage(
|
4795
|
// String temp = await NavigatorUtil.goEditReserverPage(
|
|
4792
|
// context, widget.rid, name, sex,
|
4796
|
// context, widget.rid, name, sex,
|
|
@@ -5008,7 +5012,7 @@ class InvicationPageState extends State<InvicationPage> |
|
@@ -5008,7 +5012,7 @@ class InvicationPageState extends State<InvicationPage> |
|
5008
|
if (canSendSms) {
|
5012
|
if (canSendSms) {
|
|
5009
|
if (reserverPhone == null ||
|
5013
|
if (reserverPhone == null ||
|
|
5010
|
reserverPhone.isEmpty ||
|
5014
|
reserverPhone.isEmpty ||
|
|
5011
|
- !Utils.isInteger(reserverPhone)) {
|
5015
|
+ !Utils.isInteger(reserverPhone) || reserverPhone.length != 11) {
|
|
5012
|
//跳转到录入联系人页面
|
5016
|
//跳转到录入联系人页面
|
|
5013
|
// String temp = await NavigatorUtil.goEditReserverPage(
|
5017
|
// String temp = await NavigatorUtil.goEditReserverPage(
|
|
5014
|
// context, widget.rid, name, sex,
|
5018
|
// context, widget.rid, name, sex,
|
|
@@ -5142,7 +5146,7 @@ class InvicationPageState extends State<InvicationPage> |
|
@@ -5142,7 +5146,7 @@ class InvicationPageState extends State<InvicationPage> |
|
5142
|
if (canSendSms) {
|
5146
|
if (canSendSms) {
|
|
5143
|
if (reserverPhone == null ||
|
5147
|
if (reserverPhone == null ||
|
|
5144
|
reserverPhone.isEmpty ||
|
5148
|
reserverPhone.isEmpty ||
|
|
5145
|
- !Utils.isInteger(reserverPhone)) {
|
5149
|
+ !Utils.isInteger(reserverPhone) ||reserverPhone.length != 11 ) {
|
|
5146
|
//显示请输入11位手机号码
|
5150
|
//显示请输入11位手机号码
|
|
5147
|
setState(() {
|
5151
|
setState(() {
|
|
5148
|
showErroInfo = true;
|
5152
|
showErroInfo = true;
|