处理了充值的最大值限制
This commit is contained in:
parent
af13a530ac
commit
88d5b7bcdf
|
|
@ -52,6 +52,9 @@ export default OakComponent({
|
|||
else {
|
||||
let price = ToCent(price2);
|
||||
this.props.onSetPrice(price);
|
||||
if (this.props.depositMaxCent && price > this.props.depositMaxCent) {
|
||||
price = this.props.depositMaxCent;
|
||||
}
|
||||
this.setState({
|
||||
price,
|
||||
priceStr: ToYuan(price),
|
||||
|
|
|
|||
|
|
@ -54,6 +54,9 @@ export default OakComponent({
|
|||
else {
|
||||
let price = ToCent(price2);
|
||||
this.props.onSetPrice!(price);
|
||||
if (this.props.depositMaxCent && price > this.props.depositMaxCent) {
|
||||
price = this.props.depositMaxCent
|
||||
}
|
||||
this.setState({
|
||||
price,
|
||||
priceStr: ToYuan(price),
|
||||
|
|
|
|||
Loading…
Reference in New Issue