From e46c82fb38cd175a5838298ff60cd249f4664f95 Mon Sep 17 00:00:00 2001 From: wangxiaowei <1121133807@qq.com> Date: Sun, 8 Sep 2024 13:10:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B6=88=E8=B4=B9=E5=8F=8D?= =?UTF-8?q?=E8=A1=A5=E5=BC=82=E6=AD=A5=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bundle_b/pages/subsidy_shop/subsidy_shop.vue | 29 +++++++++++++++----- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/bundle_b/pages/subsidy_shop/subsidy_shop.vue b/bundle_b/pages/subsidy_shop/subsidy_shop.vue index cd30cf9..bb73fa2 100644 --- a/bundle_b/pages/subsidy_shop/subsidy_shop.vue +++ b/bundle_b/pages/subsidy_shop/subsidy_shop.vue @@ -97,7 +97,8 @@ applyWithdraw, getBillionsWithdrawConfig, applyBillionsWithdrawl, - rechargeBalance + rechargeBalance, + postBillions } from "@/api/user"; import {mapGetters} from 'vuex' @@ -316,22 +317,36 @@ mask: true }) + data.money = data.recharge_money const result = await rechargeBalance(data) if (result.code == 1) { - uni.$emit('refreshSubsidyPage') - this.showPopup = true - this.tipsText = '已成功充值¥' + data.recharge_money + this.postBillionsFunc(data.recharge_money, result.data) + + setTimeout(() => { + uni.$emit('refreshSubsidyPage') + this.showPopup = true + this.tipsText = '已成功充值¥' + data.recharge_money + this.form.recharge_money = '' + uni.hideLoading() + }, 2500) } - - this.form.recharge_money = '' - uni.hideLoading() } this.showPay = false this.getBillionsWithdrawConfigFun(); } }, + + // 异步请求 + postBillionsFunc(money, data) { + postBillions({ + money, + id: data.id, + order_sn: data.order_sn + }) + }, + onShowPopup() { this.showPopup = !this.showPopup if (this.currentTab == 1) {