function handleConfirm({ maintain, hasBeyond, beyondDesc, rechargeWay, id, systemBusinessCode, faceValueAmount, payAmount, jumpUrl, maintainDescription, disabled, couponNo, couponId }) { if (!this.valid || maintain === 1) { this.$toast({ message: maintainDescription, }); return; }

if (hasBeyond) { this.$dialog({ title: '提示', className: 'phoneBill', message: beyondDesc, confirmButtonText: '我知道了', }); return; }

if (systemBusinessCode === 'LFMC') { if (disabled) { this.$dialog .confirm({ title: '温馨提示', className: 'dialog-style', message: '您当前没有话费优惠券,需要立即购买吗?', confirmButtonText: '立即购买', }) .then(() => { this.navigateTo(this.url); }) .catch(() => {}); } else { if (this.isSwitch) { this.$dialog .confirm({ title: '温馨提示', className: 'dialog-style', message: '您可能为携号转网用户,此充值暂不支持此类号码,建议您更换号码充值', showCancelButton: false, confirmButtonText: '知道了', }) .then(() => {}) .catch(() => {}); } else { const { operatorCode } = this.operator; const params = { consNo: this.phone, orderType: 1, couponId, couponNo, orderAmt: faceValueAmount, payAmt: payAmount, type: 1, operatorCode, }; this.show = true; this.params = params; } } } else { switch (rechargeWay) { case this.rechargeWay.接口: const params = { consNo: this.phone, orderAmt: faceValueAmount, payAmt: payAmount, rechargeAmountId: id, systemBusinessCode: systemBusinessCode, type: 0, }; this.show = true; this.params = params; break; case this.rechargeWay.跳转H5: this.dcb.navigateTo({ url: jumpUrl, }); break; } } }

手机充值确认逻辑处理函数

原文地址: https://www.cveoy.top/t/topic/pblc 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录