dev_home
杨树林 5 years ago
parent 9056032ede
commit c957fcc879

@ -34,7 +34,7 @@ class CompetitionContentspdfpeopledata extends Component {
window.document.title = '竞赛';
console.log("获取用户信息");
console.log(this.props);
this.getdata();
this.GetawardinformationAPI();
let query=this.props.location&&this.props.location.search;
const types = query.split('user_id=')
@ -44,6 +44,7 @@ class CompetitionContentspdfpeopledata extends Component {
}else{
userid=types[1];
}
this.getdata(userid);
this.GetuseridApi(userid);
}
@ -133,7 +134,7 @@ class CompetitionContentspdfpeopledata extends Component {
this.setState({
phonebool: false
})
this.getdata();
this.getdata(this.state.userdata.id);
}
}).catch((error) => {
console.log(error);
@ -161,7 +162,7 @@ class CompetitionContentspdfpeopledata extends Component {
this.setState({
emailbool: false
})
this.getdata();
this.getdata(this.state.userdata.id);
}
}).catch((error) => {
console.log(error);
@ -313,7 +314,7 @@ class CompetitionContentspdfpeopledata extends Component {
if (result.data.status == 0) {
// console.log(JSON.stringify(result));
this.props.showNotification(`提交成功成功`);
this.getdata();
this.getdata(this.state.userdata.id);
this.GetawardinformationAPI();
}
} catch (e) {
@ -330,7 +331,7 @@ class CompetitionContentspdfpeopledata extends Component {
//取消认证弹框
onCancel = () => {
this.getdata();
this.getdata(this.state.userdata.id);
}
@ -352,7 +353,7 @@ class CompetitionContentspdfpeopledata extends Component {
} else if (index === 2) {
this.props.showNotification('撤销职业认证成功')
}
this.getdata();
this.getdata(this.state.userdata.id);
}
} catch (e) {
@ -380,7 +381,7 @@ class CompetitionContentspdfpeopledata extends Component {
<RealNameCertificationModal {...this.props} {...this.state} basicInfo={userdata}
wrappedComponentRef={(form) => this.realNameCertificationModal1 = form}
certification={certification}
Getdata={() => this.getdata()}
Getdata={(id) => this.getdata(id)}
onCancel={() => this.onCancel()}
></RealNameCertificationModal>
@ -391,7 +392,7 @@ class CompetitionContentspdfpeopledata extends Component {
<RealNameCertificationModal {...this.props} {...this.state} basicInfo={userdata}
wrappedComponentRef={(form) => this.realNameCertificationModal2 = form}
certification={certification}
Getdata={() => this.getdata()}
Getdata={(id) => this.getdata(id)}
onCancel={() => this.onCancel()}
></RealNameCertificationModal> : ""}
@ -505,7 +506,7 @@ class CompetitionContentspdfpeopledata extends Component {
phonebool === true &&userdata ?
<Phonenumberverifications {...this.props} {...this.state} basicInfo={userdata}
hideUpdating={(i) => this.hideUpdating(i)}
getdata={() => this.getdata()}></Phonenumberverifications>
getdata={(id) => this.getdata(id)}></Phonenumberverifications>
: ""
}
@ -522,7 +523,7 @@ class CompetitionContentspdfpeopledata extends Component {
userdata?
<Mailboxvalidations {...this.props} {...this.state} basicInfo={userdata}
hideUpdating={(i) => this.hideUpdating(i)}
getdata={() => this.getdata()}></Mailboxvalidations>
getdata={(id) => this.getdata(id)}></Mailboxvalidations>
:""
)
}
@ -533,7 +534,7 @@ class CompetitionContentspdfpeopledata extends Component {
bank_account_editable === true ?
<Bankcardnumberverifications {...this.props} {...this.state} basicInfo={userdata}
hideUpdating={(i) => this.hideUpdating(i)}
getdata={() => this.getdata()}
getdata={(id) => this.getdata(id)}
GetawardinformationAPI={() => this.GetawardinformationAPI()}
bank_account={this.state.bank_account}
></Bankcardnumberverifications>

@ -288,7 +288,7 @@ class RealNameCertificationModal extends Component{
} catch (e) {
}
try {
this.props.Getdata();
this.props.Getdata(this.props.userdata.id);
} catch (e) {
}
@ -321,7 +321,7 @@ class RealNameCertificationModal extends Component{
}
try {
this.props.Getdata();
this.props.Getdata(this.props.userdata.id);
} catch (e) {
}

Loading…
Cancel
Save