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

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

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

Loading…
Cancel
Save