dev_home
杨树林 5 years ago
parent ec2b0f1cbc
commit 02e8e09854

@ -41,39 +41,6 @@ class Bankcardnumberverification extends Component {
}
componentDidUpdate = (prevProps) => {
if (prevProps.bank_account != this.props.bank_account) {
console.log("componentDidUpdate");
console.log(this.props);
console.log(prevProps);
////console.log("Registration");
////console.log("componentDidUpdate");
////console.log(this.props.user.admin);
try {
if(this.props.bank_account){
this.props.form.setFieldsValue({
openingbank: this.props.bank_account.bank,
subbranch: this.props.bank_account.second_bank,
subbranchs: this.props.bank_account.card_no,
})
}
}catch (e) {
}
try {
if(prevProps.bank_account){
this.props.form.setFieldsValue({
openingbank:prevProps.bank_account.bank,
subbranch: prevProps.bank_account.second_bank,
subbranchs: prevProps.bank_account.card_no,
})
}
}catch (e) {
}
}
}
yhBankstrue = () => {
@ -90,9 +57,22 @@ class Bankcardnumberverification extends Component {
try {
if (result.data.status == 0) {
// console.log(JSON.stringify(result));
this.props.showNotification(`提交成功,等待审核!`);
this.props.getdata(this.props.userdata.id);
this.props.GetawardinformationAPI();
try {
this.props.showNotification(`提交成功,等待审核!`);
}catch (e) {
}
try {
this.props.getdata(this.props.userdata.id);
}catch (e) {
}
try {
this.props.GetawardinformationAPI();
}catch (e) {
}
}
} catch (e) {
@ -109,6 +89,9 @@ class Bankcardnumberverification extends Component {
render() {
const {getFieldDecorator} = this.props.form;
const {updating, seconds, secondsFlag, basicInfo, phonebool, emailbool, certification, formationdata, bank_account_editable, leader, bank_account} = this.state
const bank=this.props.bank_account.bank;
const second_bank =this.props.bank_account.second_bank;
const card_no=this.props.bank_account.card_no;
return (
<div>
<div className="flexdirections mt36">
@ -188,7 +171,7 @@ class Bankcardnumberverification extends Component {
>
{getFieldDecorator('openingbank', {
rules: [{
initialValue: this.state.openingbank&&this.state.openingbank,
initialValue:bank&&bank,
required: true,
message: '请输入开户行',
}],
@ -203,7 +186,7 @@ class Bankcardnumberverification extends Component {
>
{getFieldDecorator('subbranch', {
rules: [{
initialValue: this.props.subbranch&&this.props.subbranch,
initialValue: second_bank&&second_bank,
required: true,
message: '请输入支行',
}],
@ -218,7 +201,7 @@ class Bankcardnumberverification extends Component {
>
{getFieldDecorator('subbranchs', {
rules: [{
initialValue: this.props.subbranchs&&this.props.subbranchs,
initialValue: card_no&&card_no,
required: true,
message: '请输入账号',
}],

Loading…
Cancel
Save