From 7d60d4a013ace6c28c3a0f070f9b2c8844b848cf Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Thu, 20 Jul 2023 17:47:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=94=AF=E4=BB=98=E9=80=BB?= =?UTF-8?q?=E8=BE=91,=E6=96=B0=E5=A2=9E=E6=94=AF=E4=BB=98=E9=98=B2?= =?UTF-8?q?=E6=8A=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- subpkg/topUp/topUp.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/subpkg/topUp/topUp.vue b/subpkg/topUp/topUp.vue index 956f8ce..b594a37 100644 --- a/subpkg/topUp/topUp.vue +++ b/subpkg/topUp/topUp.vue @@ -56,12 +56,15 @@ onShow() {}, methods: { changePrice(index){ - this.changeMoney = index; + if(this.changeMoney == index)this.changeMoney = -1; + else this.changeMoney = index; if(this.priceList[index]=='自定义')this.payMoney.money = ''; else this.payMoney.money = this.priceList[index].split('元')[0]; }, //充值 pay(){ + if(!this.payMoney.money)return Toast('请先填写充值金额!') + if(this.payMoney.money<=0)return Toast('充值金额不能小于0!') if(!this.payTimer){ this.goRecharge(); this.payTimer = setInterval(()=>{