Commit 589ef131 authored by xuexirong's avatar xuexirong

提交订单手机号改成座机加手机

parent 681aed67
......@@ -182,10 +182,17 @@ class OrderPageState extends State<OrderPage> {
Toast.showToast(context, '请选择详细地址');
return false;
}
if (orderPayEntity.tel == null ||
orderPayEntity.tel.length == 0 ||
orderPayEntity.tel.length < 11 ||
!isChinaPhoneLegal(orderPayEntity.tel)) {
bool isPhone = false;
if (orderPayEntity.tel != null) {
if (orderPayEntity.tel.length == 11) {
if (isChinaPhoneLegal(orderPayEntity.tel)) {
isPhone = true;
}
} else if (orderPayEntity.tel.length == 8) {
isPhone = true;
}
}
if (!isPhone) {
Toast.showToast(context, '请输入正确联系电话');
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment