Commit 606fec0f7b9e3d6d215fb3126155594d6e6b5ad9

Authored by weixin_45529955
1 parent 7ac17147

店铺电话输入的时候自动加入横杠

... ... @@ -1444,7 +1444,7 @@ class _StoreBaseInfoPageState extends State<StoreBaseInfoPage> {
// String string3 = textTemp.substring(0, 3);
if (textTemp.length > 4) {
if (textTemp.length >= 4) {
bool hasNumber4 =
areaCode.any((number) => number == textTemp.substring(0, 4));
... ... @@ -1459,7 +1459,7 @@ class _StoreBaseInfoPageState extends State<StoreBaseInfoPage> {
numMax = 7;
}
}
} else if (textTemp.length > 3) {
} else if (textTemp.length >= 3) {
bool hasNumber3 =
areaCode.any((number) => number == textTemp.substring(0, 3));
if (hasNumber3) {
... ...
... ... @@ -489,7 +489,7 @@ class _StoreBaseInfoPageSimState extends State<StoreBaseInfoPageSim> {
// String string3 = textTemp.substring(0, 3);
if (textTemp.length > 4) {
if (textTemp.length >= 4) {
bool hasNumber4 =
areaCode.any((number) => number == textTemp.substring(0, 4));
... ... @@ -504,7 +504,7 @@ class _StoreBaseInfoPageSimState extends State<StoreBaseInfoPageSim> {
numMax = 7;
}
}
} else if (textTemp.length > 3) {
} else if (textTemp.length >= 3) {
bool hasNumber3 =
areaCode.any((number) => number == textTemp.substring(0, 3));
if (hasNumber3) {
... ...