|
|
|
@ -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>
|
|
|
|
|
|
|
|
|
|