feat(抽奖活动页): 可提现金额不到10时不显示提取按钮

This commit is contained in:
hzj 2025-11-03 12:17:14 +08:00
parent bd849ff724
commit b149d58e27

View File

@ -383,6 +383,7 @@
<div
style="display: flex; justify-content: space-between; align-items: center"
@click="goToWithdraw"
v-if="currentAmount.availableAmount >= 10"
>
<div>Go to withdraw</div>
<img src="/src/assets/icon/arrowWhite.png" alt="" style="width: 1em; display: block" />
@ -888,7 +889,7 @@ const ranking = ref([]) //奖品排名
const activeIndex = ref(-1) //
const isRolling = ref(false) //
const rollTimes = ref(0) //
const currentAmount = ref(0) //
const currentAmount = ref({ availableAmount: 0 }) //
const result = ref([]) //
const resultShowIndex = ref(0)
const myRecords = ref([]) //
@ -1396,8 +1397,6 @@ const getDrawableAmount = async () => {
const resDrawableAmount = await withdrawableAmount(activityId.value)
if (resDrawableAmount.status && resDrawableAmount.body) {
currentAmount.value = resDrawableAmount.body
} else {
currentAmount.value = 0
}
}