|
...
|
...
|
@@ -485,22 +485,24 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
: detailModel.depositPrice;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!noticeSms) {
|
|
|
|
if (detailModel.smsInfo == '0') {
|
|
|
|
if (!mounted) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (detailModel.smsInfo == '0') {
|
|
|
|
if (!mounted) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
showErroInfo = true;
|
|
|
|
erroInfo = '短信余额不足,请充值短信条数';
|
|
|
|
} else {
|
|
|
|
if (!mounted) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
showErroInfo = true;
|
|
|
|
erroInfo = '短信余额不足,请充值短信条数';
|
|
|
|
} else {
|
|
|
|
if (!mounted) {
|
|
|
|
return;
|
|
|
|
showErroInfo = false;
|
|
|
|
erroInfo = '';
|
|
|
|
}
|
|
|
|
|
|
|
|
showErroInfo = false;
|
|
|
|
erroInfo = '';
|
|
|
|
}
|
|
|
|
|
|
|
|
setState(() {});
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -2360,7 +2362,9 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
controller: _baseIndoProvider.phoneController,
|
|
|
|
focusNode: _phoneNode,
|
|
|
|
inputFormatters: <TextInputFormatter>[
|
|
|
|
LengthLimitingTextInputFormatter(11) //限制长度
|
|
|
|
LengthLimitingTextInputFormatter(11), //限制长度
|
|
|
|
FilteringTextInputFormatter.allow(
|
|
|
|
RegExp(r'[0-9]')), //设置只允许输入数字
|
|
|
|
],
|
|
|
|
// textAlignVertical: TextAlignVertical.top,
|
|
|
|
decoration: InputDecoration(
|
|
...
|
...
|
@@ -4786,7 +4790,7 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
_goSendSmsPage() async {
|
|
|
|
if (reserverPhone == null ||
|
|
|
|
reserverPhone.isEmpty ||
|
|
|
|
!Utils.isInteger(reserverPhone)) {
|
|
|
|
!Utils.isInteger(reserverPhone) || reserverPhone.length != 11) {
|
|
|
|
//跳转到录入联系人页面
|
|
|
|
// String temp = await NavigatorUtil.goEditReserverPage(
|
|
|
|
// context, widget.rid, name, sex,
|
|
...
|
...
|
@@ -5008,7 +5012,7 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
if (canSendSms) {
|
|
|
|
if (reserverPhone == null ||
|
|
|
|
reserverPhone.isEmpty ||
|
|
|
|
!Utils.isInteger(reserverPhone)) {
|
|
|
|
!Utils.isInteger(reserverPhone) || reserverPhone.length != 11) {
|
|
|
|
//跳转到录入联系人页面
|
|
|
|
// String temp = await NavigatorUtil.goEditReserverPage(
|
|
|
|
// context, widget.rid, name, sex,
|
|
...
|
...
|
@@ -5142,7 +5146,7 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
if (canSendSms) {
|
|
|
|
if (reserverPhone == null ||
|
|
|
|
reserverPhone.isEmpty ||
|
|
|
|
!Utils.isInteger(reserverPhone)) {
|
|
|
|
!Utils.isInteger(reserverPhone) ||reserverPhone.length != 11 ) {
|
|
|
|
//显示请输入11位手机号码
|
|
|
|
setState(() {
|
|
|
|
showErroInfo = true;
|
...
|
...
|
|