Toggle navigation
Toggle navigation
This project
Loading...
Sign in
罗广聪
/
ProtectGod
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
罗广聪
2017-10-14 11:35:34 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5084fb407d0c1a3d9f938d78eac22bcf08faf26e
5084fb40
1 parent
db3a1e58
隐藏导入通信录 优化bug 可打包提交
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
src/pages/Customer/edit.js
src/pages/Customer/edit.js
View file @
5084fb4
...
...
@@ -114,6 +114,14 @@ export default class Edit extends Component {
const
that
=
this
;
const
{
USER_ID
}
=
this
.
state
;
const
{
goBack
,
state
}
=
this
.
props
.
navigation
;
if
(
!
that
.
state
.
name
)
{
Alert
.
alert
(
'请填写姓名'
)
return
}
if
(
!
that
.
state
.
phone
||
!
(
/^1
[
34578
]\d{9}
$/
.
test
(
that
.
state
.
phone
)))
{
Alert
.
alert
(
'请正确填写手机号码'
)
return
}
post
(
`/test/insurance/contact/add`
,
{
...
...
Please
register
or
login
to post a comment