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-01 16:14:15 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d3c85bb512bd4368dc029a2055a8de0ee259cee8
d3c85bb5
1 parent
4ae8546a
修改客户手机号闪退
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
src/pages/Customer/edit.js
src/pages/Customer/edit.js
View file @
d3c85bb
...
...
@@ -177,9 +177,13 @@ export default class Edit extends Component {
}
AlertIOS_input
(
title
,
statusName
)
{
AlertIOS
.
prompt
(
title
,
null
,
d
=>
{
if
(
statusName
==
"phone"
&&
!
(
/^1
[
34578
]\d{9}
$/
.
test
(
d
)))
{
Alert
.
alert
(
"手机号码有误,请重新填写"
);
}
else
{
this
.
setState
({
[
statusName
]:
d
});
}
});
}
...
...
Please
register
or
login
to post a comment