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(()=>{