dev_auth
杨树林 5 years ago
parent fde9accae5
commit ccb72936eb

@ -32,6 +32,34 @@ class Bankcardnumberverification extends Component {
console.log(this.props);
}
yhBankstrue = () => {
this.props.form.validateFieldsAndScroll((err, values) => {
if (!err) {
let url = `/competitions/${this.props.match.params.identifier}/prize_leader_account.json`;
axios.patch(url, {
bank: values.openingbank,
second_bank: values.subbranchs,
card_no: values.subbranch
})
.then((result) => {
try {
if (result.data.status == 0) {
// console.log(JSON.stringify(result));
this.props.showNotification(`提交成功成功`);
this.props.getdata();
this.props.GetawardinformationAPI();
}
} catch (e) {
}
}).catch((error) => {
console.log(error);
})
}
})
}
render() {
const {getFieldDecorator} = this.props.form;
@ -158,7 +186,7 @@ class Bankcardnumberverification extends Component {
<p className="fontcolorsyslhui1 font-14 w300 myysllineheight myyslminwidth"></p>
<div className="myyslminwidth276 flexdirections">
{/*<div className="buttongo mycompitcursor" onClick={()=>this.yhBanksfalse()}><p className="fontwenzi mycompitcursor" >取消</p></div>*/}
<Button type="primary" onClick={() => this.props.yhBankstrue()}>确定</Button>
<Button type="primary" onClick={() => this.yhBankstrue()}>确定</Button>
</div>
</div>

@ -481,7 +481,9 @@ class CompetitionContentspdfpeopledata extends Component {
bank_account_editable === true ?
<Bankcardnumberverifications {...this.props} {...this.state} basicInfo={this.state.basicInfo}
hideUpdating={(i) => this.hideUpdating(i)}
getdata={() => this.getdata()}></Bankcardnumberverifications>
getdata={() => this.getdata()}
GetawardinformationAPI={() => this.GetawardinformationAPI()}
></Bankcardnumberverifications>
:
<div>

Loading…
Cancel
Save