Authored by QC-L

更新有赚绑定银行卡逻辑判断 review by sunkai

... ... @@ -60,7 +60,13 @@ export default class BankCard extends Component {
let bankBranch = this.state.bankBranch;
if (!bankBranch || !bankBranch.trim()) {
this.setState({messageTips: '请输入分行/支行信息'});
this.setState({messageTips: '请输入正确的分行和支行信息'});
return
}
bankBranch = bankBranch.trim();
if (bankBranch.length < 4) {
this.setState({messageTips: '请输入正确的分行和支行信息'});
return
}
... ... @@ -72,7 +78,7 @@ export default class BankCard extends Component {
}
this.setState({messageTips: '', isUpdate: true});
this.props.checkBankCard && this.props.checkBankCard(this.state.name, this.state.number, this.state.bankCode, this.state.cardNo,this.state.bankBranch);
this.props.checkBankCard && this.props.checkBankCard(this.state.name, this.state.number, this.state.bankCode, this.state.cardNo,bankBranch);
}
renderUnBind() {
... ...