|
@@ -291,33 +291,22 @@ const Expert = React.createClass({
|
|
|
e.preventDefault();
|
|
|
this.props.form.validateFields((err, values) => {
|
|
|
if(!err){
|
|
|
- if(this.state.authenticationState==undefined||this.state.authentication=='0'){
|
|
|
- if(!this.state.authentication&&(this.state.auditStatus=='0'||this.state.auditStatus=='3'||!this.state.auditStatus)){
|
|
|
- this.setState({
|
|
|
- visible: true,
|
|
|
- values :values
|
|
|
- });
|
|
|
- }else{
|
|
|
- this.newSubmit(values)
|
|
|
+ if(this.state.authenticationState=='0'||this.state.authenticationState=='1'){
|
|
|
+ if(!(this.state.headPortraitUrl.length)){
|
|
|
+ message.warning(this.state.authenticationState=='1'?'请上传顾问照片!':'请上传专家照片');
|
|
|
+ return;
|
|
|
}
|
|
|
- }else{
|
|
|
- if(this.state.authenticationState=='0'||this.state.authenticationState=='1'){
|
|
|
- if(!(this.state.headPortraitUrl.length)){
|
|
|
- message.warning(this.state.authenticationState?'请上传顾问照片!':'请上传专家照片');
|
|
|
- return;
|
|
|
- }
|
|
|
- if(!(this.state.oppositeIdUrl.length)||!(this.state.positiveIdUrl.length)){
|
|
|
- message.warning('请上传您的身份证正反照片!');
|
|
|
- return;
|
|
|
- }
|
|
|
- this.setState({
|
|
|
- visible: true,
|
|
|
- values :values
|
|
|
- });
|
|
|
- }else{
|
|
|
- this.newSubmit(values)
|
|
|
+ if(!(this.state.oppositeIdUrl.length)||!(this.state.positiveIdUrl.length)){
|
|
|
+ message.warning('请上传您的身份证正反照片!');
|
|
|
+ return;
|
|
|
}
|
|
|
- }
|
|
|
+ this.setState({
|
|
|
+ visible: true,
|
|
|
+ values :values
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ this.newSubmit(values)
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -446,12 +435,6 @@ const Expert = React.createClass({
|
|
|
initialValue: theData.postalAddress
|
|
|
})(<Input placeholder="输入通信地址" maxLength={255}/>)}
|
|
|
</FormItem>
|
|
|
- {/* <FormItem className="half-item" {...formItemLayout} label="手机号码">
|
|
|
- {getFieldDecorator('mobile', {
|
|
|
- rules: [ { required: true, message: '此项为必填项!' } ],
|
|
|
- initialValue: theData.mobile
|
|
|
- })(<Input placeholder="输入手机号码" maxLength={16}/>)}
|
|
|
- </FormItem> */}
|
|
|
<FormItem className="half-item" {...formItemLayout} label="固定电话">
|
|
|
{getFieldDecorator('fixedTel', {
|
|
|
initialValue: theData.fixedTel
|