From ed524b5ccfd574ff934a9932d3001503410c4c17 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Thu, 16 Jun 2022 09:36:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E3=80=90=E8=90=A5=E9=94=80?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E3=80=91=E6=96=B0=E5=A2=9E=E7=AB=8B=E5=87=8F?= =?UTF-8?q?=E9=87=91=E5=95=86=E5=93=81=E6=97=B6=EF=BC=8C=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E2=80=9D=E9=9D=A2=E9=A2=9D=E5=BF=85=E9=A1=BB?= =?UTF-8?q?=E5=B0=8F=E4=BA=8E=E6=88=96=E7=AD=89=E4=BA=8E=E5=85=85=E5=80=BC?= =?UTF-8?q?=E6=89=B9=E6=AC=A1=E9=87=91=E9=A2=9D=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/knockGold/index.jsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/knockGold/index.jsx b/src/components/knockGold/index.jsx index 99ed0de3..cae8d98a 100644 --- a/src/components/knockGold/index.jsx +++ b/src/components/knockGold/index.jsx @@ -502,6 +502,14 @@ export default class addKnockGold extends Component { return false } + if ( + this.state.model.recharge_amount - 0 < + this.state.model.reduce_amount - 0 + ) { + Notify.error('面额不允许大于批次充值金额') + return false + } + if ( Math.trunc(this.state.model.all_budget / this.state.model.reduce_amount) < this.state.model.receive_number - 0