罗广聪

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

@@ -114,6 +114,14 @@ export default class Edit extends Component { @@ -114,6 +114,14 @@ export default class Edit extends Component {
114 const that = this; 114 const that = this;
115 const { USER_ID } = this.state; 115 const { USER_ID } = this.state;
116 const { goBack, state } = this.props.navigation; 116 const { goBack, state } = this.props.navigation;
  117 + if (!that.state.name) {
  118 + Alert.alert('请填写姓名')
  119 + return
  120 + }
  121 + if (!that.state.phone || !(/^1[34578]\d{9}$/.test(that.state.phone))) {
  122 + Alert.alert('请正确填写手机号码')
  123 + return
  124 + }
117 post( 125 post(
118 `/test/insurance/contact/add`, 126 `/test/insurance/contact/add`,
119 { 127 {