From 3ac51e0d83ab92a65c1717f2a715b36a8e2197f2 Mon Sep 17 00:00:00 2001 From: wangxiaowei <1121133807@qq.com> Date: Wed, 27 Nov 2024 15:48:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bundle_b/pages/subsidy_shop/subsidy_shop.vue | 24 +++++++++++++++----- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/bundle_b/pages/subsidy_shop/subsidy_shop.vue b/bundle_b/pages/subsidy_shop/subsidy_shop.vue index 74ff290..67f094f 100644 --- a/bundle_b/pages/subsidy_shop/subsidy_shop.vue +++ b/bundle_b/pages/subsidy_shop/subsidy_shop.vue @@ -36,7 +36,8 @@ 全部提现 - 可提现金额 ¥ {{widthDrawConfig.able_withdraw ? widthDrawConfig.able_withdraw : 0}} + 可提现金额 ¥ {{widthDrawConfig.able_withdraw ? widthDrawConfig.able_withdraw : 0}} + 可提现金额 ¥ {{form.withdrawl_money}} @@ -112,7 +113,8 @@ getBillionsWithdrawConfig, applyBillionsWithdrawl, rechargeBalance, - postBillions + postBillions, + advance } from "@/api/user"; import {mapGetters} from 'vuex' @@ -159,6 +161,8 @@ showPay: false, payInfo: '', payMoney: '', + isWithdrawl: false, + withdrawlBillionId: 0 }; }, onLoad(options) { @@ -252,8 +256,6 @@ title: '可充值金额不足' }); return; - - } this.onSubmit(true) // this.payMoney = data.recharge_money @@ -280,8 +282,11 @@ }, setSubsidyWithdrawl(data) { + this.isWithdrawl = true this.currentTab = 1 - this.form.withdrawl_money = data.order_price + const price = data.withdrawal_amount.split('.') + this.form.withdrawl_money = price[0] + this.withdrawlBillionId = data.billions_id }, changeShow(index) { @@ -327,7 +332,14 @@ }) data.money = data.withdrawl_money - const result = await applyBillionsWithdrawl(data); + if (this.isWithdrawl) { + const result = await advance({ + billions_id: this.withdrawlBillionId, + money: data.money + }); + } else { + const result = await applyBillionsWithdrawl(data); + } if (result.code == 1) { setTimeout(() => {