Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flutter_1.5_doctor
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
享易移动端项目
flutter_1.5_doctor
Commits
589ef131
Commit
589ef131
authored
Apr 02, 2020
by
xuexirong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交订单手机号改成座机加手机
parent
681aed67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
order_page.dart
lib/ui/pages/order/order_page.dart
+11
-4
No files found.
lib/ui/pages/order/order_page.dart
View file @
589ef131
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment