部分接口调整,修复提现页面点击弹窗确认按钮卡死问题

This commit is contained in:
2025-08-05 18:02:39 +08:00
parent d3dc2e8a87
commit 1eb645705d
3 changed files with 21 additions and 13 deletions

View File

@@ -75,9 +75,9 @@
<up-modal :show="data.ruleShow" confirm-text="知道了" title="规则说明" :title="data.rule_title"
:title-style="{fontWeight:'700'}" @confirm="ruleConfirm" confirm-color="rgb(255, 117, 129)">
<view class="u-p-30 u-text-left">
<view class="u-p-30 u-text-left" v-if="data.ruleShow">
<scroll-view scroll-y="true" style="max-height: 50vh;">
<rich-text style="text-align: justify;font-size: 18px;color: #666;"
<rich-text style="text-align: justify;font-size: 18px;color: #666;"
:nodes="data.rule_content"></rich-text>
</scroll-view>
</view>
@@ -409,9 +409,11 @@
/**
* 可提现金额
*/
const totalMoney=ref(0)
function getcashMoney() {
selectUserMoney().then(res => {
data.mayMoney = getMoneys(res.amount) || 0
totalMoney.value=res.amount||0
})
}
@@ -476,8 +478,9 @@
}, 1500)
return;
}
if (parseFloat(data.mayMoney).toFixed(2) >= parseFloat(data.money)) {
console.log(data.mayMoney);
console.log(parseFloat(data.mayMoney));
if (totalMoney.value*1 >= parseFloat(data.money)) {
if (parseFloat(data.money).toFixed(2) >= parseFloat(data.cashMoney)) {
uni.showModal({
title: "提现申请提示",