罗广聪

隐藏导入通信录 优化bug 可打包提交

... ... @@ -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`,
{
... ...