|
@@ -25,8 +25,8 @@ import $ from 'jquery/src/ajax';
|
|
|
import moment from 'moment';
|
|
|
import './unit.less';
|
|
|
import { areaSelect } from '@/NewDicProvinceList';
|
|
|
-import { socialAttribute, industry } from '@/dataDic.js';
|
|
|
-import { splitUrl } from '@/tools.js';
|
|
|
+import { socialAttribute, industry,adviserType } from '@/dataDic.js';
|
|
|
+import { splitUrl,getAuthState,getAdviserType } from '@/tools.js';
|
|
|
const FormItem = Form.Item;
|
|
|
const monthFormat = 'YYYY/MM';
|
|
|
//图片组件
|
|
@@ -94,8 +94,10 @@ const Expert = React.createClass({
|
|
|
orgCodeUrl: [],
|
|
|
companyLogoUrl: [],
|
|
|
headPortraitUrl: [],
|
|
|
+ adviserUrl:[],
|
|
|
positiveIdUrl: [],
|
|
|
- oppositeIdUrl: []
|
|
|
+ oppositeIdUrl: [],
|
|
|
+ authenticationState:undefined
|
|
|
};
|
|
|
},
|
|
|
loadInformation(record) {
|
|
@@ -127,11 +129,16 @@ const Expert = React.createClass({
|
|
|
InformationId: thisData.id,
|
|
|
InformationUid: thisData.uid,
|
|
|
expertAudit:thisData.expertAudit,
|
|
|
- type:thisData.type,
|
|
|
- authentication:thisData.authentication,
|
|
|
- headPortraitUrl: thisData.headPortraitUrl
|
|
|
+ type:thisData.type, //0-个人认证 1-企业认证
|
|
|
+ authType:thisData.authType||'1', //认证类型 0-专家认证 1-顾问认证
|
|
|
+ authMessage:thisData.authMessage||'消息不真实',
|
|
|
+ authState:thisData.authState||'0', //认证状态 0-未认证 1-认证审核中 2-认证失败 3-已认证
|
|
|
+ headPortraitUrl: thisData.headPortraitUrl //专家照片
|
|
|
? splitUrl(thisData.headPortraitUrl, ',', globalConfig.avatarHost + '/upload')
|
|
|
: [],
|
|
|
+ adviserUrl: thisData.adviserUrl //顾问照片
|
|
|
+ ? splitUrl(thisData.adviserUrl, ',', globalConfig.avatarHost + '/upload')
|
|
|
+ : [],
|
|
|
positiveIdUrl: thisData.positiveIdUrl
|
|
|
? splitUrl(thisData.positiveIdUrl, ',', globalConfig.avatarHost + '/upload')
|
|
|
: [],
|
|
@@ -141,7 +148,16 @@ const Expert = React.createClass({
|
|
|
data: thisData,
|
|
|
ProvinceCity: ProvinceCityArr[0] != null ? ProvinceCityArr : undefined,
|
|
|
yearMonth: month,
|
|
|
-
|
|
|
+ workUnit:thisData.workUnit||'',
|
|
|
+ graduateSchool: thisData.graduateSchool||'',
|
|
|
+ professionalTitle: thisData.professionalTitle||'',
|
|
|
+ qualification: thisData.qualification||'',
|
|
|
+ majorCategory: thisData.majorCategory||'',
|
|
|
+ adviserType: thisData.adviserType||'',
|
|
|
+ headPortraitUrlCopy: thisData.headPortraitUrl,
|
|
|
+ adviserUrlCopy: thisData.adviserUrl,
|
|
|
+ positiveIdUrlCopy: thisData.positiveIdUrl,
|
|
|
+ oppositeIdUrlCopy:thisData.oppositeIdUrl
|
|
|
});
|
|
|
}.bind(this)
|
|
|
}).always(
|
|
@@ -196,55 +212,86 @@ const Expert = React.createClass({
|
|
|
});
|
|
|
thecompanyLogoUrls = picArr.join(',');
|
|
|
}
|
|
|
-
|
|
|
+ //顾问照片
|
|
|
+ let adviserPic = [];
|
|
|
+ if (this.state.adviserUrl.length) {
|
|
|
+ let picArr = [];
|
|
|
+ this.state.adviserUrl.map(function(item) {
|
|
|
+ if (item.response && item.response.data && item.response.data.length) {
|
|
|
+ picArr.push(item.response.data);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ adviserPic = picArr.join(',');
|
|
|
+ }
|
|
|
let years = [];
|
|
|
let yearMonth =
|
|
|
this.state.yearMonth != undefined ? new Date(this.state.yearMonth).toLocaleDateString() : '';
|
|
|
years = yearMonth.split('/');
|
|
|
this.setState({
|
|
|
loading: true
|
|
|
- });
|
|
|
+ });
|
|
|
+ let dataList={};
|
|
|
+ dataList={
|
|
|
+ id: this.state.InformationId,
|
|
|
+ uid: this.state.InformationUid,
|
|
|
+ type:this.state.type,
|
|
|
+ authType:'',
|
|
|
+ societyTag: values.societyTag,
|
|
|
+ identifyName: values.identifyName,
|
|
|
+ industry: values.industry,
|
|
|
+ dateOfBirthYear: years[0], //出生年
|
|
|
+ dateOfBirthMonth: years[1], //出生月
|
|
|
+ province: (values.ProvinceCity)[0], //省-
|
|
|
+ city:(values.ProvinceCity)[1], //市
|
|
|
+ area:(values.ProvinceCity)[2], //区
|
|
|
+ sex: values.sex,
|
|
|
+ mobile: values.mobile,
|
|
|
+ fixedTel: values.fixedTel,
|
|
|
+ qq: values.qq,
|
|
|
+ idNumber: values.idNumber,
|
|
|
+ email: values.email,
|
|
|
+ postalAddress: values.postalAddress,
|
|
|
+ introduction: values.introduction,
|
|
|
+ headPortraitUrl:this.state.headPortraitUrlCopy||'',
|
|
|
+ positiveIdUrl:this.state.positiveIdUrlCopy||'',
|
|
|
+ adviserUrl:this.state.adviserUrlCopy||'',
|
|
|
+ oppositeIdUrl:this.state.oppositeIdUrlCopy||'',
|
|
|
+ workUnit:this.state.workUnit||'',
|
|
|
+ graduateSchool:this.state.graduateSchool||'',
|
|
|
+ professionalTitle:this.state.professionalTitle||'',
|
|
|
+ qualification:this.state.qualification||'',
|
|
|
+ majorCategory:this.state.majorCategory||'',
|
|
|
+ adviserType:this.state.adviserType||''
|
|
|
+ }
|
|
|
+ if(this.state.authenticationState=='0'){
|
|
|
+ dataList.authType='0',
|
|
|
+ dataList.workUnit=values.workUnit;
|
|
|
+ dataList.professionalTitle=values.professionalTitle;
|
|
|
+ dataList.qualification=values.qualification;
|
|
|
+ dataList.majorCategory=values.majorCategory;
|
|
|
+ dataList.graduateSchool=values.graduateSchool;
|
|
|
+ dataList.headPortraitUrl=theorgCodeUrl.length != 0 ? theorgCodeUrl : '';
|
|
|
+ dataList.positiveIdUrl=thecompanyLogoUrl.length != 0 ? thecompanyLogoUrl : '';
|
|
|
+ dataList.oppositeIdUrl=thecompanyLogoUrls.length != 0 ? thecompanyLogoUrls : '';
|
|
|
+ }else if(this.state.authenticationState=='1'){
|
|
|
+ dataList.authType='1';
|
|
|
+ dataList.adviserType=values.adviserType;//顾问类型
|
|
|
+ dataList.adviserUrl=adviserPic; //顾问照片
|
|
|
+ dataList.positiveIdUrl=thecompanyLogoUrl.length != 0 ? thecompanyLogoUrl : '';
|
|
|
+ dataList.oppositeIdUrl=thecompanyLogoUrls.length != 0 ? thecompanyLogoUrls : '';
|
|
|
+ }
|
|
|
$.ajax({
|
|
|
method: 'post',
|
|
|
dataType: 'json',
|
|
|
- url: globalConfig.context + '/api/user/updateExpertDetail',
|
|
|
- data: {
|
|
|
- id: this.state.InformationId,
|
|
|
- uid: this.state.InformationUid,
|
|
|
- type:this.state.type,
|
|
|
- authentication:this.state.authentication,
|
|
|
- societyTag: values.societyTag,
|
|
|
- identifyName: values.identifyName,
|
|
|
- industry: values.industry,
|
|
|
- dateOfBirthYear: years[0], //出生年
|
|
|
- dateOfBirthMonth: years[1], //出生月
|
|
|
- province: (values.ProvinceCity)[0], //省-
|
|
|
- city:(values.ProvinceCity)[1], //市
|
|
|
- area:(values.ProvinceCity)[2], //区
|
|
|
- sex: values.sex,
|
|
|
- mobile: values.mobile,
|
|
|
- fixedTel: values.fixedTel,
|
|
|
- qq: values.qq,
|
|
|
- idNumber: values.idNumber,
|
|
|
- email: values.email,
|
|
|
- postalAddress: values.postalAddress,
|
|
|
- introduction: values.introduction,
|
|
|
- positiveIdUrl: thecompanyLogoUrl.length != 0 ? thecompanyLogoUrl : '',
|
|
|
- oppositeIdUrl: thecompanyLogoUrls.length != 0 ? thecompanyLogoUrls : '',
|
|
|
- headPortraitUrl: theorgCodeUrl.length != 0 ? theorgCodeUrl : '',
|
|
|
- graduateSchool:values.graduateSchool,
|
|
|
- majorCategory:values.majorCategory,
|
|
|
- qualification:values.qualification,
|
|
|
- workUnit:values.workUnit,
|
|
|
- professionalTitle:values.professionalTitle
|
|
|
- }
|
|
|
+ url: globalConfig.context + '/api/user/updateUserDetail',
|
|
|
+ data:dataList,
|
|
|
}).done(
|
|
|
function(data) {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
|
if (!data.error.length) {
|
|
|
- message.success(this.state.expertAudit<1?'认证专家成功!':'保存成功');
|
|
|
+ message.success(this.state.expertAudit<1?'认证审核提交成功,请等待审核结果!':'保存成功');
|
|
|
this.loadInformation();
|
|
|
} else {
|
|
|
message.warning(data.error[0].message);
|
|
@@ -256,15 +303,36 @@ const Expert = React.createClass({
|
|
|
e.preventDefault();
|
|
|
this.props.form.validateFields((err, values) => {
|
|
|
if(!err){
|
|
|
- if(this.state.expertAudit!='0'){
|
|
|
+ if(this.state.expertAudit!='0'&&this.state.authenticationState==undefined){
|
|
|
this.newSubmit(values)
|
|
|
}else{
|
|
|
+ if(this.state.authenticationState=='1'){
|
|
|
+ if(!(this.state.adviserUrl.length)){
|
|
|
+ message.warning('请上传顾问照片!')
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(!(this.state.oppositeIdUrl.length)||!(this.state.positiveIdUrl.length)){
|
|
|
+ message.warning('请上传您的身份证正反照片!')
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(this.state.authenticationState=='0'){
|
|
|
+ if(!(this.state.headPortraitUrl.length)){
|
|
|
+ message.warning('请上传专家照片!');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(!(this.state.oppositeIdUrl.length)||!(this.state.positiveIdUrl.length)){
|
|
|
+ message.warning('请上传您的身份证正反照片!');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
this.setState({
|
|
|
visible: true,
|
|
|
values :values
|
|
|
});
|
|
|
}
|
|
|
- }
|
|
|
+ }
|
|
|
+
|
|
|
})
|
|
|
},
|
|
|
handleOk() {
|
|
@@ -309,7 +377,7 @@ const Expert = React.createClass({
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
<Row style={{ marginBottom: 20 }}>
|
|
|
<Col offset={2} span={4}>
|
|
|
- <h4 style={{ fontSize: 20 }}>专家资料</h4>
|
|
|
+ <h4 style={{ fontSize: 20 }}>个人资料</h4>
|
|
|
</Col>
|
|
|
</Row>
|
|
|
<div className="clearfix">
|
|
@@ -401,86 +469,280 @@ const Expert = React.createClass({
|
|
|
initialValue: theData.email
|
|
|
})(<Input placeholder="输入电子邮箱" maxLength={128}/>)}
|
|
|
</FormItem>
|
|
|
- <FormItem className="half-item" {...formItemLayout} label="毕业院校">
|
|
|
- {getFieldDecorator('graduateSchool', {
|
|
|
- initialValue: theData.graduateSchool
|
|
|
- })(<Input placeholder="输入毕业院校全称" maxLength={32}/>)}
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item" {...formItemLayout} label="专业类别">
|
|
|
- {getFieldDecorator('majorCategory', {
|
|
|
- initialValue: theData.majorCategory
|
|
|
- })(<Input placeholder="输入专业" maxLength={16}/>)}
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item" {...formItemLayout} label="职业资格">
|
|
|
- {getFieldDecorator('qualification', {
|
|
|
- initialValue: theData.qualification
|
|
|
- })(<Input placeholder="输入职业资格" maxLength={32} />)}
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item" {...formItemLayout} label="就职单位">
|
|
|
- {getFieldDecorator('workUnit', {
|
|
|
- initialValue: theData.workUnit
|
|
|
- })(<Input placeholder="输入就职单位全称" maxLength={64}/>)}
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item" {...formItemLayout} label="职称">
|
|
|
- {getFieldDecorator('professionalTitle', {
|
|
|
- initialValue: theData.professionalTitle
|
|
|
- })(<Input placeholder="输入职称" maxLength={32}/>)}
|
|
|
- </FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
<FormItem
|
|
|
labelCol={{ span: 3 }}
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
- label="专家简介"
|
|
|
+ label="个人简介"
|
|
|
>
|
|
|
{getFieldDecorator('introduction', {
|
|
|
initialValue: theData.introduction
|
|
|
- })(<Input type="textarea" rows={4} maxLength={512}/>)}
|
|
|
+ })(<Input type="textarea" rows={4} maxLength={512} placeholder="输入个人简介"/>)}
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
- <div className="clearfix pictures">
|
|
|
- <FormItem
|
|
|
- className="picWidth"
|
|
|
- labelCol={{ span: 10 }}
|
|
|
- wrapperCol={{ span: 10 }}
|
|
|
- label="身份证正面"
|
|
|
- >
|
|
|
- <PicturesWall fileList={this.getPositiveIdUrl} pictureUrl={this.state.positiveIdUrl} />
|
|
|
- <p>建议:图片要清晰。</p>
|
|
|
+ {this.state.authState=='0'||this.state.authState=="2"&&this.state.type=='0'?
|
|
|
+ <div>
|
|
|
+ <div className="clearfix btnGrounp">
|
|
|
+ <Radio.Group
|
|
|
+ value={this.state.authenticationState}
|
|
|
+ onChange={(e)=>{this.setState({
|
|
|
+ authenticationState:e.target.value
|
|
|
+ })}}>
|
|
|
+ <Radio.Button value="0">专家认证</Radio.Button>
|
|
|
+ <Radio.Button value="1">顾问认证</Radio.Button>
|
|
|
+ </Radio.Group>
|
|
|
+ <Button type="dashed" style={{marginLeft:20}} onClick={(e)=>{this.setState({authenticationState:undefined})}}>暂不认证</Button>
|
|
|
+ <span style={{marginLeft:10,color:'#f00'}}>{this.state.authState=='2'?"(认证失败:"+this.state.authMessage+')':''}</span>
|
|
|
+ </div>
|
|
|
+ {this.state.authenticationState=='0'?<div className="patentBody">
|
|
|
+ <FormItem className="half-item" {...formItemLayout} label="毕业院校">
|
|
|
+ {getFieldDecorator('graduateSchool', {
|
|
|
+ initialValue: theData.graduateSchool,
|
|
|
+ rules: [ { required: true, message: '此项为必填项!' } ],
|
|
|
+ })(<Input placeholder="输入毕业院校全称" maxLength={32}/>)}
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item" {...formItemLayout} label="专业类别">
|
|
|
+ {getFieldDecorator('majorCategory', {
|
|
|
+ initialValue: theData.majorCategory,
|
|
|
+ rules: [ { required: true, message: '此项为必填项!' } ],
|
|
|
+ })(<Input placeholder="输入专业" maxLength={16}/>)}
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item" {...formItemLayout} label="职业资格">
|
|
|
+ {getFieldDecorator('qualification', {
|
|
|
+ initialValue: theData.qualification,
|
|
|
+ rules: [ { required: true, message: '此项为必填项!' } ],
|
|
|
+ })(<Input placeholder="输入职业资格" maxLength={32} />)}
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item" {...formItemLayout} label="就职单位">
|
|
|
+ {getFieldDecorator('workUnit', {
|
|
|
+ initialValue: theData.workUnit,
|
|
|
+ rules: [ { required: true, message: '此项为必填项!' } ],
|
|
|
+ })(<Input placeholder="输入就职单位全称" maxLength={64}/>)}
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item" {...formItemLayout} label="职称">
|
|
|
+ {getFieldDecorator('professionalTitle', {
|
|
|
+ initialValue: theData.professionalTitle,
|
|
|
+ rules: [ { required: true, message: '此项为必填项!' } ],
|
|
|
+ })(<Input placeholder="输入职称" maxLength={32}/>)}
|
|
|
+ </FormItem>
|
|
|
+ <div className="clearfix">
|
|
|
+ <FormItem
|
|
|
+ className="picWidth"
|
|
|
+ labelCol={{ span: 9 }}
|
|
|
+ wrapperCol={{ span: 10 }}
|
|
|
+ label={<div style={{marginRight:10}}><strong style={{color:"#f00"}}>*</strong><span>专家照片 : </span></div> }
|
|
|
+ >
|
|
|
+ <PicturesWall
|
|
|
+ fileList={this.getHeadPortraitUrl}
|
|
|
+ pictureUrl={this.state.headPortraitUrl}
|
|
|
+ />
|
|
|
+ <p>建议:图片要清晰。</p>
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
+ </div>:this.state.authenticationState=='1'?
|
|
|
+ <div>
|
|
|
+ <FormItem className="half-item" {...formItemLayout} label="顾问类型">
|
|
|
+ {getFieldDecorator('adviserType', {
|
|
|
+ rules: [ { required: true, message: '此项为必填项!' } ],
|
|
|
+ initialValue: theData.adviserType
|
|
|
+ })(
|
|
|
+ <Select placeholder="选择类型">
|
|
|
+ {adviserType.map(function(item) {
|
|
|
+ return <Select.Option key={item.value}>{item.key}</Select.Option>;
|
|
|
+ })}
|
|
|
+ </Select>
|
|
|
+ )}
|
|
|
+ </FormItem>
|
|
|
+ <div className="clearfix">
|
|
|
+ <FormItem
|
|
|
+ className="picWidth"
|
|
|
+ labelCol={{ span: 9 }}
|
|
|
+ wrapperCol={{ span: 8 }}
|
|
|
+ label={<div style={{marginRight:10}}><strong style={{color:"#f00"}}>*</strong><span>顾问照片 : </span></div> }
|
|
|
+ >
|
|
|
+ <PicturesWall
|
|
|
+ fileList={(e)=>{this.setState({adviserUrl:e})}}
|
|
|
+ pictureUrl={this.state.adviserUrl}
|
|
|
+ />
|
|
|
+ <p>建议:图片要清晰。</p>
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
+ </div>:''}
|
|
|
+ {this.state.authenticationState=='1'||this.state.authenticationState=='0'?<div className="clearfix pictures">
|
|
|
+ <FormItem
|
|
|
+ className="picWidth"
|
|
|
+ labelCol={{ span: 9 }}
|
|
|
+ wrapperCol={{ span: 10 }}
|
|
|
+ label={<div style={{marginRight:10}}><strong style={{color:"#f00"}}>*</strong><span>身份证正面 : </span></div> }
|
|
|
+ >
|
|
|
+ <PicturesWall fileList={this.getPositiveIdUrl} pictureUrl={this.state.positiveIdUrl} />
|
|
|
+ <p>建议:图片要清晰。</p>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem
|
|
|
+ className="picWidth"
|
|
|
+ labelCol={{ span: 9 }}
|
|
|
+ wrapperCol={{ span: 10 }}
|
|
|
+ label={<div style={{marginRight:10}}><strong style={{color:"#f00"}}>*</strong><span>身份证反面 : </span></div> }
|
|
|
+ >
|
|
|
+ <PicturesWall fileList={this.getOppositeIdUrl} pictureUrl={this.state.oppositeIdUrl} />
|
|
|
+ <p>建议:图片要清晰。</p>
|
|
|
+ </FormItem>
|
|
|
+ </div>:''}
|
|
|
+ </div>:this.state.authState=='3'||this.state.authState=='1'&&this.state.authType=='0'?
|
|
|
+ <div>
|
|
|
+ <div className="authState">{this.state.authType=='0'?'专家认证':'顾问认证'}<span>({getAuthState(this.state.authState)})</span></div>
|
|
|
+ <FormItem className="half-item" {...formItemLayout} label="毕业院校">
|
|
|
+ <span>{theData.graduateSchool}</span>
|
|
|
</FormItem>
|
|
|
- <FormItem
|
|
|
- className="picWidth"
|
|
|
- labelCol={{ span: 10 }}
|
|
|
- wrapperCol={{ span: 10 }}
|
|
|
- label="身份证反面"
|
|
|
- >
|
|
|
- <PicturesWall fileList={this.getOppositeIdUrl} pictureUrl={this.state.oppositeIdUrl} />
|
|
|
- <p>建议:图片要清晰。</p>
|
|
|
+ <FormItem className="half-item" {...formItemLayout} label="专业类别">
|
|
|
+ <span>{theData.majorCategory}</span>
|
|
|
</FormItem>
|
|
|
- <FormItem
|
|
|
- className="picWidth"
|
|
|
- labelCol={{ span: 10 }}
|
|
|
- wrapperCol={{ span: 10 }}
|
|
|
- label="专家照片"
|
|
|
- >
|
|
|
- <PicturesWall
|
|
|
- fileList={this.getHeadPortraitUrl}
|
|
|
- pictureUrl={this.state.headPortraitUrl}
|
|
|
- />
|
|
|
- <p>建议:图片要清晰。</p>
|
|
|
+ <FormItem className="half-item" {...formItemLayout} label="职业资格">
|
|
|
+ <span>{theData.qualification}</span>
|
|
|
</FormItem>
|
|
|
+ <FormItem className="half-item" {...formItemLayout} label="就职单位">
|
|
|
+ <span>{theData.workUnit}</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item" {...formItemLayout} label="职称">
|
|
|
+ <span>{theData.professionalTitle}</span>
|
|
|
+ </FormItem>
|
|
|
+ <div className="clearfix">
|
|
|
+ <FormItem labelCol={{ span: 3 }} wrapperCol={{ span: 13 }} label="专家照片">
|
|
|
+ <Upload className="demandDetailShow-upload"
|
|
|
+ listType="picture-card"
|
|
|
+ fileList={this.state.headPortraitUrl}
|
|
|
+ onPreview={(file) => {
|
|
|
+ this.setState({
|
|
|
+ previewImage: file.url || file.thumbUrl,
|
|
|
+ previewVisible: true,
|
|
|
+ });
|
|
|
+ }} >
|
|
|
+ </Upload>
|
|
|
+ <Modal maskClosable={false} footer={null}
|
|
|
+ visible={this.state.previewVisible}
|
|
|
+ onCancel={() => { this.setState({ previewVisible: false }) }}>
|
|
|
+ <img alt="" style={{ width: '100%' }} src={this.state.previewImage || ''} />
|
|
|
+ </Modal>
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
+ <FormItem labelCol={{ span: 3 }} wrapperCol={{ span: 10 }} label="身份证正面">
|
|
|
+ <div className="clearfix">
|
|
|
+ <Upload className="demandDetailShow-upload"
|
|
|
+ listType="picture-card"
|
|
|
+ fileList={this.state.positiveIdUrl}
|
|
|
+ onPreview={(file) => {
|
|
|
+ this.setState({
|
|
|
+ previewImage: file.url || file.thumbUrl,
|
|
|
+ previewVisible: true,
|
|
|
+ });
|
|
|
+ }} >
|
|
|
+ </Upload>
|
|
|
+ <Modal maskClosable={false} footer={null}
|
|
|
+ visible={this.state.previewVisible}
|
|
|
+ onCancel={() => { this.setState({ previewVisible: false }) }}>
|
|
|
+ <img alt="" style={{ width: '100%' }} src={this.state.previewImage || ''} />
|
|
|
+ </Modal>
|
|
|
+ </div>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem labelCol={{ span:3 }} wrapperCol={{ span: 10 }} label="身份证反面">
|
|
|
+ <div className="clearfix">
|
|
|
+ <Upload className="demandDetailShow-upload"
|
|
|
+ listType="picture-card"
|
|
|
+ fileList={this.state.oppositeIdUrl}
|
|
|
+ onPreview={(file) => {
|
|
|
+ this.setState({
|
|
|
+ previewImage: file.url || file.thumbUrl,
|
|
|
+ previewVisible: true,
|
|
|
+ });
|
|
|
+ }} >
|
|
|
+ </Upload>
|
|
|
+ <Modal maskClosable={false} footer={null}
|
|
|
+ visible={this.state.previewVisible}
|
|
|
+ onCancel={() => { this.setState({ previewVisible: false }) }}>
|
|
|
+ <img alt="" style={{ width: '100%' }} src={this.state.previewImage || ''} />
|
|
|
+ </Modal>
|
|
|
+ </div>
|
|
|
+ </FormItem>
|
|
|
+ </div>:this.state.authState=='3'||this.state.authState=='1'&&this.state.authType=='1'?
|
|
|
+ <div className="clearfix">
|
|
|
+ <div className="authState">{this.state.authType=='0'?'专家认证':'顾问认证'}<span>({getAuthState(this.state.authState)})</span></div>
|
|
|
+ <FormItem className="half-item" {...formItemLayout} label="顾问类型">
|
|
|
+ <span>{getAdviserType(theData.adviserType)}</span>
|
|
|
+ </FormItem>
|
|
|
+ <div className="clearfix">
|
|
|
+ <FormItem labelCol={{ span: 3 }} wrapperCol={{ span: 13 }} label="顾问照片">
|
|
|
+ <Upload className="demandDetailShow-upload"
|
|
|
+ listType="picture-card"
|
|
|
+ fileList={this.state.adviserUrl}
|
|
|
+ onPreview={(file) => {
|
|
|
+ this.setState({
|
|
|
+ previewImage: file.url || file.thumbUrl,
|
|
|
+ previewVisible: true,
|
|
|
+ });
|
|
|
+ }} >
|
|
|
+ </Upload>
|
|
|
+ <Modal maskClosable={false} footer={null}
|
|
|
+ visible={this.state.previewVisible}
|
|
|
+ onCancel={() => { this.setState({ previewVisible: false }) }}>
|
|
|
+ <img alt="" style={{ width: '100%' }} src={this.state.previewImage || ''} />
|
|
|
+ </Modal>
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
+ <FormItem labelCol={{ span: 3 }} wrapperCol={{ span: 10 }} label="身份证正面">
|
|
|
+ <div className="clearfix">
|
|
|
+ <Upload className="demandDetailShow-upload"
|
|
|
+ listType="picture-card"
|
|
|
+ fileList={this.state.positiveIdUrl}
|
|
|
+ onPreview={(file) => {
|
|
|
+ this.setState({
|
|
|
+ previewImage: file.url || file.thumbUrl,
|
|
|
+ previewVisible: true,
|
|
|
+ });
|
|
|
+ }} >
|
|
|
+ </Upload>
|
|
|
+ <Modal maskClosable={false} footer={null}
|
|
|
+ visible={this.state.previewVisible}
|
|
|
+ onCancel={() => { this.setState({ previewVisible: false }) }}>
|
|
|
+ <img alt="" style={{ width: '100%' }} src={this.state.previewImage || ''} />
|
|
|
+ </Modal>
|
|
|
+ </div>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem labelCol={{ span:3 }} wrapperCol={{ span: 10 }} label="身份证反面">
|
|
|
+ <div className="clearfix">
|
|
|
+ <Upload className="demandDetailShow-upload"
|
|
|
+ listType="picture-card"
|
|
|
+ fileList={this.state.oppositeIdUrl}
|
|
|
+ onPreview={(file) => {
|
|
|
+ this.setState({
|
|
|
+ previewImage: file.url || file.thumbUrl,
|
|
|
+ previewVisible: true,
|
|
|
+ });
|
|
|
+ }} >
|
|
|
+ </Upload>
|
|
|
+ <Modal maskClosable={false} footer={null}
|
|
|
+ visible={this.state.previewVisible}
|
|
|
+ onCancel={() => { this.setState({ previewVisible: false }) }}>
|
|
|
+ <img alt="" style={{ width: '100%' }} src={this.state.previewImage || ''} />
|
|
|
+ </Modal>
|
|
|
+ </div>
|
|
|
+ </FormItem>
|
|
|
+ </div>:''}
|
|
|
+ <div className="clearfix">
|
|
|
+ <Row style={{ marginBottom: 20 }} >
|
|
|
+ <Col offset={3} span={4}>
|
|
|
+ <Button size="large" className="set-submit" type="primary" htmlType="submit">
|
|
|
+ 保存
|
|
|
+ </Button>
|
|
|
+ </Col>
|
|
|
+ </Row>
|
|
|
</div>
|
|
|
- <Row style={{ marginBottom: 20 }}>
|
|
|
- <Col offset={3} span={4}>
|
|
|
- <Button size="large" className="set-submit" type="primary" htmlType="submit">
|
|
|
- 保存
|
|
|
- </Button>
|
|
|
- </Col>
|
|
|
- </Row>
|
|
|
</Spin>
|
|
|
</Form>
|
|
|
<Modal visible={this.state.visible} onOk={this.handleOk} onCancel={this.handleCancel}>
|
|
|
- <p>是否申请专家认证?</p>
|
|
|
+ {this.state.authenticationState=='0'&&<p>是否申请专家认证?注意:认证成功后,您的信息将在本平台展示。</p>}
|
|
|
+ {this.state.authenticationState=='1'&&<p>是否申请顾问认证?注意:认证成功后,您的信息将在本平台展示。</p>}
|
|
|
+ {this.state.type!='1'&&this.state.type!='0'?<p>是否申请个人认证?</p>:''}
|
|
|
</Modal>
|
|
|
</div>
|
|
|
);
|